diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2015-07-31 17:56:23 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2015-07-31 17:56:35 +0900 |
commit | 2c9e6b69d2232b18af028048bd5d3a1904927361 (patch) | |
tree | 9c994ebd86674f571f904ec0edc6c3ed7f56de6d /entry.c | |
parent | 1d38c24233b3c061cedf503bf44b1307bb0e1fa2 (diff) |
update example-fsm-55
Diffstat (limited to 'entry.c')
-rw-r--r-- | entry.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -41,6 +41,12 @@ #endif +#ifdef MAKE_ENTRY_PUBLIC +#define STATIC_ENTRY +#else +#define STATIC_ENTRY static +#endif + extern uint8_t __main_stack_end__; extern void svc (void); extern void preempt (void); @@ -98,7 +104,7 @@ uint32_t vectors_in_ram[48]; /* * This routine only changes PSP and not MSP. */ -static __attribute__ ((naked,section(".text.startup.0"))) +STATIC_ENTRY __attribute__ ((naked,section(".text.startup.0"))) void entry (void) { asm volatile ("bl clock_init\n\t" |