From 3ec53a0d34016839cf6583117dd549da88aa63c7 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Mon, 7 Nov 2011 22:55:20 +0000 Subject: [PATCH] Rename 32L specific examples --- example/{lcd => 32l_lcd}/Makefile | 16 ++++++---------- example/{lcd => 32l_lcd}/discover_board.h | 0 example/{lcd => 32l_lcd}/linker_stm32l.lds | 0 example/{lcd => 32l_lcd}/main.c | 0 example/{lcd => 32l_lcd}/stm32l_discovery_lcd.c | 0 example/{lcd => 32l_lcd}/stm32l_discovery_lcd.h | 0 6 files changed, 6 insertions(+), 10 deletions(-) rename example/{lcd => 32l_lcd}/Makefile (56%) rename example/{lcd => 32l_lcd}/discover_board.h (100%) rename example/{lcd => 32l_lcd}/linker_stm32l.lds (100%) rename example/{lcd => 32l_lcd}/main.c (100%) rename example/{lcd => 32l_lcd}/stm32l_discovery_lcd.c (100%) rename example/{lcd => 32l_lcd}/stm32l_discovery_lcd.h (100%) diff --git a/example/lcd/Makefile b/example/32l_lcd/Makefile similarity index 56% rename from example/lcd/Makefile rename to example/32l_lcd/Makefile index 8bfdbbb..fce2194 100644 --- a/example/lcd/Makefile +++ b/example/32l_lcd/Makefile @@ -11,20 +11,16 @@ CFLAGS+=-I. PLATFORM=stm32l1xx LIBS_STM_PATH=../libs_stm -INC_CORE_SUPPORT=$(LIBS_STM_PATH)/inc/core_support -SRC_CORE_SUPPORT=$(LIBS_STM_PATH)/inc/core_support -INC_DEVICE_SUPPORT=$(LIBS_STM_PATH)/inc/device_support -INC_PLATFORM=$(LIBS_STM_PATH)/inc/$(PLATFORM) - -CFLAGS+=-I$(INC_CORE_SUPPORT) -CFLAGS+=-I$(INC_DEVICE_SUPPORT) -CFLAGS+=-I$(INC_PLATFORM) CFLAGS+=-I$(LIBS_STM_PATH)/inc/base - +CFLAGS+=-I$(LIBS_STM_PATH)/inc/core_support +CFLAGS+=-I$(LIBS_STM_PATH)/inc/device_support +CFLAGS+=-I$(LIBS_STM_PATH)/inc/$(PLATFORM) # to run from SRAM CFLAGS+=-Wl,-T,linker_stm32l.lds +LDFLAGS+=-L$(LIBS_STM_PATH)/build -lstm32l_discovery + SRCS=\ main.c\ stm32l_discovery_lcd.c @@ -34,7 +30,7 @@ OBJS=$(SRCS:.c=.o) all: $(ELF) $(ELF): $(OBJS) - $(CC) $(CFLAGS) -o $@ $(OBJS) -L$(LIBS_STM_PATH)/build -lstm32l_discovery + $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS) %.o: %.c $(CC) $(CFLAGS) -c -o $@ $^ diff --git a/example/lcd/discover_board.h b/example/32l_lcd/discover_board.h similarity index 100% rename from example/lcd/discover_board.h rename to example/32l_lcd/discover_board.h diff --git a/example/lcd/linker_stm32l.lds b/example/32l_lcd/linker_stm32l.lds similarity index 100% rename from example/lcd/linker_stm32l.lds rename to example/32l_lcd/linker_stm32l.lds diff --git a/example/lcd/main.c b/example/32l_lcd/main.c similarity index 100% rename from example/lcd/main.c rename to example/32l_lcd/main.c diff --git a/example/lcd/stm32l_discovery_lcd.c b/example/32l_lcd/stm32l_discovery_lcd.c similarity index 100% rename from example/lcd/stm32l_discovery_lcd.c rename to example/32l_lcd/stm32l_discovery_lcd.c diff --git a/example/lcd/stm32l_discovery_lcd.h b/example/32l_lcd/stm32l_discovery_lcd.h similarity index 100% rename from example/lcd/stm32l_discovery_lcd.h rename to example/32l_lcd/stm32l_discovery_lcd.h -- 2.47.2