Skip to content

Commit a5815e0

Browse files
committed
Revert to messy code with minor changes
1 parent 4f082d2 commit a5815e0

File tree

136 files changed

+6247
-3585
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+6247
-3585
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
[InternetShortcut]
3+
URL=https://docs.platformio.org/page/projectconf/section_platformio.html#build-dir

.pioenvs/structure.hash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1af480a9226a665c9651ae77be946ced21d62367

.vscode/.browse.c_cpp.db

30.6 MB
Binary file not shown.

.vscode/c_cpp_properties.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"!!! WARNING !!!": "PLEASE DO NOT MODIFY THIS FILE! USE https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags",
3+
"configurations": [
4+
{
5+
"name": "Linux",
6+
"includePath": [
7+
"/home/frozen/firmware-shield/Inc",
8+
"/home/frozen/firmware-shield/Drivers",
9+
"/home/frozen/.platformio/packages/framework-stm32cube/f0/Drivers/CMSIS/Include",
10+
"/home/frozen/.platformio/packages/framework-stm32cube/f0/Drivers/CMSIS/Device/ST/STM32F0xx/Include",
11+
"/home/frozen/.platformio/packages/framework-stm32cube/f0/Drivers/STM32F0xx_HAL_Driver/Inc",
12+
"/home/frozen/.platformio/packages/tool-unity",
13+
""
14+
],
15+
"browse": {
16+
"limitSymbolsToIncludedHeaders": true,
17+
"databaseFilename": "${workspaceRoot}/.vscode/.browse.c_cpp.db",
18+
"path": [
19+
"/home/frozen/firmware-shield/Inc",
20+
"/home/frozen/firmware-shield/Drivers",
21+
"/home/frozen/.platformio/packages/framework-stm32cube/f0/Drivers/CMSIS/Include",
22+
"/home/frozen/.platformio/packages/framework-stm32cube/f0/Drivers/CMSIS/Device/ST/STM32F0xx/Include",
23+
"/home/frozen/.platformio/packages/framework-stm32cube/f0/Drivers/STM32F0xx_HAL_Driver/Inc",
24+
"/home/frozen/.platformio/packages/tool-unity",
25+
""
26+
]
27+
},
28+
"defines": [
29+
"PLATFORMIO=30601",
30+
"STM32F030x8",
31+
"USE_HAL_DRIVER",
32+
"F_CPU=48000000L",
33+
""
34+
],
35+
"intelliSenseMode": "clang-x64",
36+
"compilerPath": "/home/frozen/.platformio/packages/toolchain-gccarmnoneeabi/bin/arm-none-eabi-gcc",
37+
"cStandard": "c11",
38+
"cppStandard": "c++17"
39+
}
40+
],
41+
"version": 4
42+
}

.vscode/launch.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// AUTOMATICALLY GENERATED FILE. PLEASE DO NOT MODIFY IT MANUALLY
2+
3+
// PIO Unified Debugger
4+
//
5+
// Documentation: https://docs.platformio.org/page/plus/debugging.html
6+
// Configuration: https://docs.platformio.org/page/projectconf/section_env_debug.html
7+
8+
{
9+
"version": "0.2.0",
10+
"configurations": [
11+
{
12+
"type": "platformio-debug",
13+
"request": "launch",
14+
"name": "PIO Debug",
15+
"executable": "/home/frozen/firmware-shield/.pioenvs/genericSTM32F030C8/firmware.elf",
16+
"toolchainBinDir": "/home/frozen/.platformio/packages/toolchain-gccarmnoneeabi/bin",
17+
"svdPath": "/home/frozen/.platformio/platforms/ststm32/misc/svd/STM32F030.svd",
18+
"preLaunchTask": {
19+
"type": "PlatformIO",
20+
"task": "Pre-Debug"
21+
},
22+
"internalConsoleOptions": "openOnSessionStart"
23+
},
24+
{
25+
"type": "platformio-debug",
26+
"request": "launch",
27+
"name": "PIO Debug (skip Pre-Debug)",
28+
"executable": "/home/frozen/firmware-shield/.pioenvs/genericSTM32F030C8/firmware.elf",
29+
"toolchainBinDir": "/home/frozen/.platformio/packages/toolchain-gccarmnoneeabi/bin",
30+
"svdPath": "/home/frozen/.platformio/platforms/ststm32/misc/svd/STM32F030.svd",
31+
"internalConsoleOptions": "openOnSessionStart"
32+
}
33+
]
34+
}

Debug/makefile

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
################################################################################
2+
# Automatically-generated file. Do not edit!
3+
################################################################################
4+
5+
-include ../makefile.init
6+
7+
RM := rm -rf
8+
9+
# All of the sources participating in the build are defined here
10+
-include sources.mk
11+
-include system/src/stm32f0xx/subdir.mk
12+
-include system/src/newlib/subdir.mk
13+
-include system/src/diag/subdir.mk
14+
-include system/src/cortexm/subdir.mk
15+
-include system/src/cmsis/subdir.mk
16+
-include src/subdir.mk
17+
-include subdir.mk
18+
-include objects.mk
19+
20+
ifneq ($(MAKECMDGOALS),clean)
21+
ifneq ($(strip $(CC_DEPS)),)
22+
-include $(CC_DEPS)
23+
endif
24+
ifneq ($(strip $(C++_DEPS)),)
25+
-include $(C++_DEPS)
26+
endif
27+
ifneq ($(strip $(C_UPPER_DEPS)),)
28+
-include $(C_UPPER_DEPS)
29+
endif
30+
ifneq ($(strip $(CXX_DEPS)),)
31+
-include $(CXX_DEPS)
32+
endif
33+
ifneq ($(strip $(ASM_DEPS)),)
34+
-include $(ASM_DEPS)
35+
endif
36+
ifneq ($(strip $(S_UPPER_DEPS)),)
37+
-include $(S_UPPER_DEPS)
38+
endif
39+
ifneq ($(strip $(C_DEPS)),)
40+
-include $(C_DEPS)
41+
endif
42+
ifneq ($(strip $(CPP_DEPS)),)
43+
-include $(CPP_DEPS)
44+
endif
45+
endif
46+
47+
-include ../makefile.defs
48+
49+
# Add inputs and outputs from these tool invocations to the build variables
50+
SECONDARY_FLASH += \
51+
turtle.hex \
52+
53+
SECONDARY_SIZE += \
54+
turtle.siz \
55+
56+
57+
# All Target
58+
all: turtle.elf secondary-outputs
59+
60+
# Tool invocations
61+
turtle.elf: $(OBJS) $(USER_OBJS)
62+
@echo 'Building target: $@'
63+
@echo 'Invoking: Cross ARM GNU C++ Linker'
64+
arm-none-eabi-g++ -mcpu=cortex-m0 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra -g3 -T mem.ld -T libs.ld -T sections.ld -nostartfiles -Xlinker --gc-sections -L"../ldscripts" -Wl,-Map,"turtle.map" --specs=nano.specs -o "turtle.elf" $(OBJS) $(USER_OBJS) $(LIBS)
65+
@echo 'Finished building target: $@'
66+
@echo ' '
67+
68+
turtle.hex: turtle.elf
69+
@echo 'Invoking: Cross ARM GNU Create Flash Image'
70+
arm-none-eabi-objcopy -O ihex "turtle.elf" "turtle.hex"
71+
@echo 'Finished building: $@'
72+
@echo ' '
73+
74+
turtle.siz: turtle.elf
75+
@echo 'Invoking: Cross ARM GNU Print Size'
76+
arm-none-eabi-size --format=berkeley "turtle.elf"
77+
@echo 'Finished building: $@'
78+
@echo ' '
79+
80+
# Other Targets
81+
clean:
82+
-$(RM) $(CC_DEPS)$(C++_DEPS)$(OBJS)$(C_UPPER_DEPS)$(CXX_DEPS)$(SECONDARY_FLASH)$(SECONDARY_SIZE)$(ASM_DEPS)$(S_UPPER_DEPS)$(C_DEPS)$(CPP_DEPS) turtle.elf
83+
-@echo ' '
84+
85+
secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_SIZE)
86+
87+
.PHONY: all clean dependents
88+
89+
-include ../makefile.targets

Debug/objects.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
################################################################################
2+
# Automatically-generated file. Do not edit!
3+
################################################################################
4+
5+
USER_OBJS :=
6+
7+
LIBS :=
8+

Debug/[email protected]

900 KB
Binary file not shown.

Debug/sources.mk

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
################################################################################
2+
# Automatically-generated file. Do not edit!
3+
################################################################################
4+
5+
ELF_SRCS :=
6+
C_UPPER_SRCS :=
7+
CXX_SRCS :=
8+
C++_SRCS :=
9+
OBJ_SRCS :=
10+
CC_SRCS :=
11+
ASM_SRCS :=
12+
C_SRCS :=
13+
CPP_SRCS :=
14+
S_UPPER_SRCS :=
15+
O_SRCS :=
16+
CC_DEPS :=
17+
C++_DEPS :=
18+
OBJS :=
19+
C_UPPER_DEPS :=
20+
CXX_DEPS :=
21+
SECONDARY_FLASH :=
22+
SECONDARY_SIZE :=
23+
ASM_DEPS :=
24+
S_UPPER_DEPS :=
25+
C_DEPS :=
26+
CPP_DEPS :=
27+
28+
# Every subdirectory with source files must be described here
29+
SUBDIRS := \
30+
src \
31+
system/src/cmsis \
32+
system/src/cortexm \
33+
system/src/diag \
34+
system/src/newlib \
35+
system/src/stm32f0xx \
36+

Debug/src/subdir.mk

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
################################################################################
2+
# Automatically-generated file. Do not edit!
3+
################################################################################
4+
5+
# Add inputs and outputs from these tool invocations to the build variables
6+
C_SRCS += \
7+
../src/adc.c \
8+
../src/dma.c \
9+
../src/gpio.c \
10+
../src/i2c.c \
11+
../src/main.c \
12+
../src/mani.c \
13+
../src/motors.c \
14+
../src/spi.c \
15+
../src/stm32f0xx_hal_msp.c \
16+
../src/stm32f0xx_it.c \
17+
../src/tim.c \
18+
../src/usart.c
19+
20+
OBJS += \
21+
./src/adc.o \
22+
./src/dma.o \
23+
./src/gpio.o \
24+
./src/i2c.o \
25+
./src/main.o \
26+
./src/mani.o \
27+
./src/motors.o \
28+
./src/spi.o \
29+
./src/stm32f0xx_hal_msp.o \
30+
./src/stm32f0xx_it.o \
31+
./src/tim.o \
32+
./src/usart.o
33+
34+
C_DEPS += \
35+
./src/adc.d \
36+
./src/dma.d \
37+
./src/gpio.d \
38+
./src/i2c.d \
39+
./src/main.d \
40+
./src/mani.d \
41+
./src/motors.d \
42+
./src/spi.d \
43+
./src/stm32f0xx_hal_msp.d \
44+
./src/stm32f0xx_it.d \
45+
./src/tim.d \
46+
./src/usart.d
47+
48+
49+
# Each subdirectory must supply rules for building sources it contributes
50+
src/%.o: ../src/%.c
51+
@echo 'Building file: $<'
52+
@echo 'Invoking: Cross ARM GNU C Compiler'
53+
arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra -g3 -DDEBUG -DTRACE -DSTM32F030x8 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f0xx" -I"../system/include/cmsis/device" -std=gnu11 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
54+
@echo 'Finished building: $<'
55+
@echo ' '
56+
57+

0 commit comments

Comments
 (0)