aboutsummaryrefslogtreecommitdiff
path: root/example-fs-bb48
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2016-05-31 11:49:01 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2016-05-31 11:49:01 +0900
commit3a4e1f2bd59a5185e638a2552c64344d78e0f54f (patch)
treea25424f8b4264ab8c8485b5c086102061e885e4d /example-fs-bb48
parent421fd8019b31386c6e689753cf0a2ff35bd2af50 (diff)
Cleanup of sys and its macro
Diffstat (limited to 'example-fs-bb48')
-rw-r--r--example-fs-bb48/Makefile2
-rw-r--r--example-fs-bb48/command.c7
-rw-r--r--example-fs-bb48/sample.ld10
3 files changed, 7 insertions, 12 deletions
diff --git a/example-fs-bb48/Makefile b/example-fs-bb48/Makefile
index 06a68bd..bf1fed7 100644
--- a/example-fs-bb48/Makefile
+++ b/example-fs-bb48/Makefile
@@ -21,7 +21,7 @@ OBJCOPY = $(CROSS)objcopy
MCU = cortex-m0plus
CWARN = -Wall -Wextra -Wstrict-prototypes
-DEFS = -DFREE_STANDING -DMHZ=48 -DHAVE_SYS_H
+DEFS = -DFREE_STANDING -DMHZ=48 -DUSE_SYS3
OPT = -O3 -Os -g
LIBS =
diff --git a/example-fs-bb48/command.c b/example-fs-bb48/command.c
index 15df6dd..70861d8 100644
--- a/example-fs-bb48/command.c
+++ b/example-fs-bb48/command.c
@@ -8,12 +8,7 @@
static int adc_initialized = 0;
#endif
#include "board.h"
-#ifdef MCU_KINETIS_L
-#include "mcu/sys-mkl27z.h"
-#else
-#include "mcu/sys-stm32.h"
-#undef STM32F10X_MD /* Prepare for high density device, too. */
-#endif
+#include "sys.h"
struct command_table
{
diff --git a/example-fs-bb48/sample.ld b/example-fs-bb48/sample.ld
index fa75271..bf24e5c 100644
--- a/example-fs-bb48/sample.ld
+++ b/example-fs-bb48/sample.ld
@@ -1,11 +1,11 @@
/*
* MK27Z memory setup.
*/
-__main_stack_size__ = 0x0100; /* Exception handlers */
-__process0_stack_size__ = 0x0300; /* Main program */
-__process1_stack_size__ = 0x0200; /* first thread program */
-__process2_stack_size__ = 0x0100; /* second thread program */
-__process3_stack_size__ = 0x0200; /* third thread program */
+__main_stack_size__ = 0x0100; /* Idle+Exception handlers */
+__process0_stack_size__ = 0x0300; /* Main program */
+__process1_stack_size__ = 0x0200; /* first thread program */
+__process2_stack_size__ = 0x0100; /* second thread program */
+__process3_stack_size__ = 0x0200; /* third thread program */
MEMORY
{