26 #include "inc/hw_nvic.h"
27 #include "inc/hw_types.h"
35 static void NmiSR(
void);
36 static void FaultISR(
void);
37 static void IntDefaultHandler(
void);
44 extern int main(
void);
51 extern char *__StackTop;
60 #pragma GCC diagnostic push // Save GCC Warnings state
61 #pragma GCC diagnostic ignored "-Wpedantic" // Disable pendantic flag
63 __attribute__ ((section(
".intvecs")))
64 void (* const g_pfnVectors[])(
void) =
66 (void (*)(void))&__StackTop,
224 #pragma GCC diagnostic pop // Restore GCC Warnings state
233 extern uint32_t __data_load__;
234 extern uint32_t __data_start__;
235 extern uint32_t __data_end__;
236 extern uint32_t __bss_start__;
237 extern uint32_t __bss_end__;
252 uint32_t *pui32Src, *pui32Dest;
257 pui32Src = &__data_load__;
258 for(pui32Dest = &__data_start__; pui32Dest < &__data_end__; )
260 *pui32Dest++ = *pui32Src++;
266 __asm(
" ldr r0, =__bss_start__\n"
267 " ldr r1, =__bss_end__\n"
273 " strlt r2, [r0], #4\n"
286 HWREG(NVIC_CPAC) = ((HWREG(NVIC_CPAC) &
287 (uint32_t)~(NVIC_CPAC_CP10_M | NVIC_CPAC_CP11_M)) |
288 NVIC_CPAC_CP10_FULL | NVIC_CPAC_CP11_FULL);
340 IntDefaultHandler(
void)
int main(void)
Runs all module tests.