Mercurial > nand-ecoscentric
diff packages/hal/cortexm/arch/current/src/hal_misc.c @ 3106:9aec6a8ff9b9
* cdl/cortexm.cdl: Remove M1 CPU family from architecture config
file (as not supported for now). [Bugzilla 1001186]
* cdl/cortexm.cdl: Add M4 CPU family to CYGHWR_HAL_CORTEXM. Add
FPU (Floating Point Unit) interface.
* include/hal_io.h: Add CYGHWR_HAL_CORTEXM_M4 to some preprocessor
conditions. [Bugzilla 1001186]
| author | sergeig |
|---|---|
| date | Wed, 06 Apr 2011 16:54:16 +0000 |
| parents | 996c69429643 |
| children | 9dd3ea41e5b6 |
line wrap: on
line diff
--- a/packages/hal/cortexm/arch/current/src/hal_misc.c +++ b/packages/hal/cortexm/arch/current/src/hal_misc.c @@ -163,11 +163,10 @@ void hal_reset_vsr( void ) // Ensure that the CPU will use the vector table we have just set // up. -# if defined(CYGHWR_HAL_CORTEXM_M3) +# if defined(CYGHWR_HAL_CORTEXM_M3) || defined(CYGHWR_HAL_CORTEXM_M4) - // On M3 parts, the NVIC contains a vector table base register. We - // program this to relocate the vector table base to the base of - // SRAM. + // On M3 and M4 parts, the NVIC contains a vector table base register. + // We program this to relocate the vector table base to the base of SRAM. HAL_WRITE_UINT32( CYGARC_REG_NVIC_BASE+CYGARC_REG_NVIC_VTOR, CYGARC_REG_NVIC_VTOR_TBLOFF(0)|
