Rev 45 | Rev 48 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 45 | Rev 46 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ########################################################################################################################## |
1 | ########################################################################################################################## |
2 | # File automatically-generated by tool: [projectgenerator] version: [3.16.0] date: [Tue Sep 06 12:00:50 BST 2022] |
2 | # File automatically-generated by tool: [projectgenerator] version: [3.16.0] date: [Sun Sep 11 14:57:08 BST 2022] |
3 | ########################################################################################################################## |
3 | ########################################################################################################################## |
4 | 4 | ||
5 | # ------------------------------------------------ |
5 | # ------------------------------------------------ |
6 | # Generic Makefile (based on gcc) |
6 | # Generic Makefile (based on gcc) |
7 | # |
7 | # |
Line 36... | Line 36... | ||
36 | ###################################### |
36 | ###################################### |
37 | # C sources |
37 | # C sources |
38 | C_SOURCES = \ |
38 | C_SOURCES = \ |
39 | Core/Src/main.c \ |
39 | Core/Src/main.c \ |
40 | Core/Src/stm32f1xx_it.c \ |
40 | Core/Src/stm32f1xx_it.c \ |
41 | Core/Src/stm32f1xx_hal_msp.c |
41 | Core/Src/stm32f1xx_hal_msp.c \ |
- | 42 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c \ |
|
- | 43 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.c \ |
|
- | 44 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc_ex.c \ |
|
- | 45 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c \ |
|
- | 46 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c \ |
|
- | 47 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c \ |
|
- | 48 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c \ |
|
- | 49 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c \ |
|
- | 50 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c \ |
|
- | 51 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c \ |
|
- | 52 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c \ |
|
- | 53 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c \ |
|
- | 54 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c \ |
|
- | 55 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_can.c \ |
|
- | 56 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c \ |
|
- | 57 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c \ |
|
- | 58 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c \ |
|
- | 59 | Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c \ |
|
- | 60 | Core/Src/system_stm32f1xx.c |
|
42 | 61 | ||
43 | # ASM sources |
62 | # ASM sources |
44 | ASM_SOURCES = \ |
63 | ASM_SOURCES = \ |
45 | startup_stm32f103xb.s |
64 | startup_stm32f103xb.s |
46 | 65 | ||
47 | 66 | ||
48 | - | ||
49 | - | ||
50 | ####################################### |
67 | ####################################### |
51 | # binaries |
68 | # binaries |
52 | ####################################### |
69 | ####################################### |
53 | PREFIX = arm-none-eabi- |
70 | PREFIX = arm-none-eabi- |
54 | # The gcc compiler bin path can be either defined in make command via GCC_PATH variable (> make GCC_PATH=xxx) |
71 | # The gcc compiler bin path can be either defined in make command via GCC_PATH variable (> make GCC_PATH=xxx) |
Line 95... | Line 112... | ||
95 | # AS includes |
112 | # AS includes |
96 | AS_INCLUDES = |
113 | AS_INCLUDES = |
97 | 114 | ||
98 | # C includes |
115 | # C includes |
99 | C_INCLUDES = \ |
116 | C_INCLUDES = \ |
100 | -IDrivers/CMSIS/Include \ |
- | |
101 | -ICore/Inc \ |
117 | -ICore/Inc \ |
102 | -IDrivers/STM32F1xx_HAL_Driver/Inc \ |
118 | -IDrivers/STM32F1xx_HAL_Driver/Inc \ |
103 | -IDrivers/STM32F1xx_HAL_Driver/Inc/Legacy \ |
119 | -IDrivers/STM32F1xx_HAL_Driver/Inc/Legacy \ |
104 | -IDrivers/CMSIS/Device/ST/STM32F1xx/Include |
120 | -IDrivers/CMSIS/Device/ST/STM32F1xx/Include \ |
105 | - | ||
106 | - | ||
107 | - | ||
108 | - | ||
- | 121 | -IDrivers/CMSIS/Include |
|
109 | 122 | ||
110 | ####################################################### |
123 | ####################################################### |
111 | # Additional code |
124 | # Additional code |
112 | 125 | ||
113 | C_INCLUDES += -IInc |
126 | C_INCLUDES += -IInc |
Line 116... | Line 129... | ||
116 | 129 | ||
117 | # PLX code library |
130 | # PLX code library |
118 | LIBPLX=../libPLX |
131 | LIBPLX=../libPLX |
119 | include $(LIBPLX)/libPLX.mk |
132 | include $(LIBPLX)/libPLX.mk |
120 | 133 | ||
121 | - | ||
122 | - | ||
123 | # Using UART1 with LibSerial. |
134 | # Using UART1 with LibSerial. |
124 | C_DEFS += -DSERIAL_UART1 |
135 | C_DEFS += -DSERIAL_UART1 |
125 | 136 | ||
126 | LIBSERIAL=../libSerial |
137 | LIBSERIAL=../libSerial |
127 | include $(LIBSERIAL)/libSerial.mk |
138 | include $(LIBSERIAL)/libSerial.mk |
128 | 139 | ||
129 | 140 | ||
130 | ####################################################### |
- | |
131 | # compile gcc flags |
141 | # compile gcc flags |
132 | ASFLAGS = $(MCU) $(AS_DEFS) $(AS_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections |
142 | ASFLAGS = $(MCU) $(AS_DEFS) $(AS_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections |
133 | 143 | ||
134 | CFLAGS = $(MCU) $(C_DEFS) $(C_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections |
144 | CFLAGS += $(MCU) $(C_DEFS) $(C_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections |
135 | 145 | ||
136 | ifeq ($(DEBUG), 1) |
146 | ifeq ($(DEBUG), 1) |
137 | CFLAGS += -g -gdwarf-2 |
147 | CFLAGS += -g -gdwarf-2 |
138 | endif |
148 | endif |
139 | 149 | ||
Line 195... | Line 205... | ||
195 | ####################################### |
205 | ####################################### |
196 | # dependencies |
206 | # dependencies |
197 | ####################################### |
207 | ####################################### |
198 | -include $(wildcard $(BUILD_DIR)/*.d) |
208 | -include $(wildcard $(BUILD_DIR)/*.d) |
199 | 209 | ||
200 | # *** EOF *** |
210 | # *** EOF *** |
201 | 211 |