revert to use __USE_LPCOPEN
properly init fpu on LPC M4
This commit is contained in:
@@ -5,7 +5,7 @@ CFLAGS += \
|
||||
-mcpu=cortex-m3 \
|
||||
-nostdlib \
|
||||
-DCORE_M3 \
|
||||
-D__USE_CMSIS \
|
||||
-D__USE_LPCOPEN \
|
||||
-DCFG_TUSB_MCU=OPT_MCU_LPC175X_6X \
|
||||
-DRTC_EV_SUPPORT=0
|
||||
|
||||
|
||||
@@ -89,9 +89,11 @@ static const PINMUX_GRP_T pin_usb_mux[] =
|
||||
// Invoked by startup code
|
||||
void SystemInit(void)
|
||||
{
|
||||
#ifdef __USE_LPCOPEN
|
||||
extern void (* const g_pfnVectors[])(void);
|
||||
unsigned int *pSCB_VTOR = (unsigned int *) 0xE000ED08;
|
||||
*pSCB_VTOR = (unsigned int) &g_pfnVectors;
|
||||
#endif
|
||||
|
||||
Chip_IOCON_Init(LPC_IOCON);
|
||||
Chip_IOCON_SetPinMuxing(LPC_IOCON, pinmuxing, sizeof(pinmuxing) / sizeof(PINMUX_GRP_T));
|
||||
|
||||
Reference in New Issue
Block a user