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-cdc/Makefile  |  2 +-
 example-cdc/sample.c  |  6 +-----
 example-cdc/sample.ld | 10 +++++-----
 3 files changed, 7 insertions(+), 11 deletions(-)

(limited to 'example-cdc')

diff --git a/example-cdc/Makefile b/example-cdc/Makefile
index 2e6e667..4eebd81 100644
--- a/example-cdc/Makefile
+++ b/example-cdc/Makefile
@@ -19,7 +19,7 @@ OBJCOPY   = $(CROSS)objcopy
 
 MCU   = cortex-m3
 CWARN = -Wall -Wextra -Wstrict-prototypes
-DEFS  = -DHAVE_SYS_H -DFREE_STANDING
+DEFS  = -DUSE_SYS3 -DFREE_STANDING
 OPT   = -O3 -Os -g
 LIBS  =
 
diff --git a/example-cdc/sample.c b/example-cdc/sample.c
index db23133..0acd6a8 100644
--- a/example-cdc/sample.c
+++ b/example-cdc/sample.c
@@ -8,11 +8,7 @@
 
 /* For set_led */
 #include "board.h"
-#ifdef MCU_KINETIS_L
-#include "mcu/sys-mkl27z.h"
-#else
-#include "mcu/sys-stm32f103.h"
-#endif
+#include "sys.h"
 
 static chopstx_mutex_t mtx;
 static chopstx_cond_t cnd0;
diff --git a/example-cdc/sample.ld b/example-cdc/sample.ld
index 5bb17e1..0e66d51 100644
--- a/example-cdc/sample.ld
+++ b/example-cdc/sample.ld
@@ -1,11 +1,11 @@
 /*
  * ST32F103 memory setup.
  */
-__main_stack_size__     = 0x0100;  /* Exception handlers     */
-__process0_stack_size__  = 0x0400; /* Main program           */
-__process1_stack_size__  = 0x0200; /* first thread program   */
-__process2_stack_size__  = 0x0200; /* second thread program  */
-__process3_stack_size__  = 0x0200; /* third thread program   */
+__main_stack_size__      = 0x0100; /* Idle+Exception handlers */
+__process0_stack_size__  = 0x0400; /* Main program            */
+__process1_stack_size__  = 0x0200; /* first thread program    */
+__process2_stack_size__  = 0x0200; /* second thread program   */
+__process3_stack_size__  = 0x0200; /* third thread program    */
 
 MEMORY
 {
-- 
cgit v1.2.3