From 3a4e1f2bd59a5185e638a2552c64344d78e0f54f Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka <gniibe@fsij.org> Date: Tue, 31 May 2016 11:49:01 +0900 Subject: Cleanup of sys and its macro --- example-fs-bb48/Makefile | 2 +- example-fs-bb48/command.c | 7 +------ example-fs-bb48/sample.ld | 10 +++++----- 3 files changed, 7 insertions(+), 12 deletions(-) (limited to 'example-fs-bb48') 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 { -- cgit v1.2.3