nand-ecoscentric

changeset 2978:fbb6348661fe

stm3210e: update for NAND interface changes. Add -Werror to the HAL by default.
author Ross Younger <wry@ecoscentric.com>
date Mon Nov 09 13:26:24 2009 +0000 (2009-11-09)
parents 7a3f0b89a102
children 013b321ed7df
files packages/hal/cortexm/stm32/stm3210e_eval/current/ChangeLog packages/hal/cortexm/stm32/stm3210e_eval/current/cdl/hal_cortexm_stm32_stm3210e_eval.cdl packages/hal/cortexm/stm32/stm3210e_eval/current/src/stm3210e_eval_nand.c
line diff
     1.1 --- a/packages/hal/cortexm/stm32/stm3210e_eval/current/ChangeLog	Fri Nov 06 17:54:20 2009 +0000
     1.2 +++ b/packages/hal/cortexm/stm32/stm3210e_eval/current/ChangeLog	Mon Nov 09 13:26:24 2009 +0000
     1.3 @@ -1,3 +1,10 @@
     1.4 +2009-11-09  Ross Younger  <wry@ecoscentric.com>
     1.5 +
     1.6 +	* src/stm3210e_eval_nand.c: Update for nand interface changes.
     1.7 +	* cdl/hal_cortexm_stm32_stm3210e_eval.cdl: Add 
     1.8 +	  CYGPKG_HAL_CORTEXM_STM32_STM3210E_EVAL_CFLAGS_{ADD,REMOVE},
     1.9 +	  default to -Werror.
    1.10 +
    1.11  2009-10-28  Ross Younger  <wry@ecoscentric.com>
    1.12  
    1.13  	* src/stm3210e_eval_nand.c: Implement hardware ECC.
     2.1 --- a/packages/hal/cortexm/stm32/stm3210e_eval/current/cdl/hal_cortexm_stm32_stm3210e_eval.cdl	Fri Nov 06 17:54:20 2009 +0000
     2.2 +++ b/packages/hal/cortexm/stm32/stm3210e_eval/current/cdl/hal_cortexm_stm32_stm3210e_eval.cdl	Mon Nov 09 13:26:24 2009 +0000
     2.3 @@ -233,6 +233,36 @@
     2.4          }
     2.5      }
     2.6  
     2.7 +    cdl_component CYGPKG_HAL_CORTEXM_STM32_STM3210E_EVAL_OPTIONS {
     2.8 +        display "stm3210e HAL build options"
     2.9 +                flavor  none
    2.10 +                description   "
    2.11 +                        Package specific build options including control over
    2.12 +                        compiler flags used only in building this HAL."
    2.13 +
    2.14 +                cdl_option CYGPKG_HAL_CORTEXM_STM32_STM3210E_EVAL_CFLAGS_ADD {
    2.15 +                        display "Additional compiler flags"
    2.16 +                        flavor  data
    2.17 +                        no_define
    2.18 +                        default_value { "-Werror" }
    2.19 +                        description   "
    2.20 +                                This option modifies the set of compiler flags
    2.21 +                                for building this HAL. These flags are used
    2.22 +                                in addition to the set of global flags."
    2.23 +                        }
    2.24 +                cdl_option CYGPKG_HAL_CORTEXM_STM32_STM3210E_EVAL_CFLAGS_REMOVE {
    2.25 +                        display "Suppressed compiler flags"
    2.26 +                        flavor  data
    2.27 +                        no_define
    2.28 +                        default_value { "" }
    2.29 +                        description   "
    2.30 +                                This option modifies the set of compiler flags
    2.31 +                                for building this HAL. These flags are
    2.32 +                                removed from the set of global flags if
    2.33 +                                present."
    2.34 +                }
    2.35 +        }
    2.36 +
    2.37      cdl_option CYGSEM_HAL_ROM_MONITOR {
    2.38          display       "Behave as a ROM monitor"
    2.39          flavor        bool
     3.1 --- a/packages/hal/cortexm/stm32/stm3210e_eval/current/src/stm3210e_eval_nand.c	Fri Nov 06 17:54:20 2009 +0000
     3.2 +++ b/packages/hal/cortexm/stm32/stm3210e_eval/current/src/stm3210e_eval_nand.c	Mon Nov 09 13:26:24 2009 +0000
     3.3 @@ -353,7 +353,7 @@
     3.4      HAL_WRITE_UINT32(reg, cur);
     3.5  }
     3.6  
     3.7 -static void stm3210e_ecc_calc(cyg_nand_device *dev, const CYG_BYTE *dat, size_t nbytes, CYG_BYTE *ecc)
     3.8 +static void stm3210e_ecc_calc(cyg_nand_device *dev, const CYG_BYTE *dat, CYG_BYTE *ecc)
     3.9  {
    3.10      cyg_uint32 code,set;
    3.11      CYG_ADDRWORD eccr= CYGHWR_HAL_STM32_FSMC + CYGHWR_HAL_STM32_FSMC_ECCR2,