aboutsummaryrefslogtreecommitdiff
path: root/example-led/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'example-led/Makefile')
-rw-r--r--example-led/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/example-led/Makefile b/example-led/Makefile
index 89cbe21..35968e6 100644
--- a/example-led/Makefile
+++ b/example-led/Makefile
@@ -2,9 +2,14 @@
PROJECT = sample
+### Currently, it's for STM32F0 Discovery.
+### Please change lines started with '###' for Cortex-M3 board.
+
CHOPSTX = ..
LDSCRIPT= sample.ld
-CSRC = sys.c aes-constant-ft.c sample.c
+### LDSCRIPT= sample.ld.m3
+CSRC = sys.c sample.c
+### CSRC = sys.c aes-constant-ft.c sample.c
###################################
CROSS = arm-none-eabi-
@@ -12,11 +17,11 @@ CC = $(CROSS)gcc
LD = $(CROSS)gcc
OBJCOPY = $(CROSS)objcopy
-# MCU = cortex-m3
+### MCU = cortex-m3
MCU = cortex-m0
CWARN = -Wall -Wextra -Wstrict-prototypes
DEFS = -DHAVE_SYS_H -DFREE_STANDING -DMHZ=48
-# DEFS = -DFREE_STANDING -DHAVE_SYS_H -DBUSY_LOOP -DCHX_FLAGS_MAIN=CHOPSTX_SCHED_RR
+### DEFS = -DFREE_STANDING -DHAVE_SYS_H -DBUSY_LOOP -DCHX_FLAGS_MAIN=CHOPSTX_SCHED_RR
OPT = -O3 -Os -g
LIBS =