summaryrefslogtreecommitdiff
path: root/entry.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2015-07-31 17:56:23 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2015-07-31 17:56:35 +0900
commit2c9e6b69d2232b18af028048bd5d3a1904927361 (patch)
tree9c994ebd86674f571f904ec0edc6c3ed7f56de6d /entry.c
parent1d38c24233b3c061cedf503bf44b1307bb0e1fa2 (diff)
update example-fsm-55
Diffstat (limited to 'entry.c')
-rw-r--r--entry.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/entry.c b/entry.c
index f79a207..be79af6 100644
--- a/entry.c
+++ b/entry.c
@@ -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"