Basic vanilla C boilerplate for STM32L100xC (Discovery L100C). Uses GCC. This was some class project without much practical use
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
TEMPLATE = app
|
|
|
|
CONFIG += console
|
|
|
|
CONFIG -= app_bundle
|
|
|
|
CONFIG -= qt
|
|
|
|
|
|
|
|
INCLUDEPATH += \
|
|
|
|
lib \
|
|
|
|
/usr/arm-none-eabi/include
|
|
|
|
|
|
|
|
DEFINES += STM32F3 __ARM_ARCH_7M__ ARM_MATH_CM4
|
|
|
|
|
|
|
|
|
|
|
|
DISTFILES += \
|
|
|
|
Makefile \
|
|
|
|
style.astylerc \
|
|
|
|
startup_stm32l100xc.s \
|
|
|
|
stm32l100rc.ld
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
main.c \
|
|
|
|
lib/gpio.c \
|
|
|
|
lib/usart.c \
|
|
|
|
init.c \
|
|
|
|
timebase.c \
|
|
|
|
gpio.c \
|
|
|
|
usart.c \
|
|
|
|
utils/gpio.c \
|
|
|
|
utils/timebase.c \
|
|
|
|
utils/usart.c \
|
|
|
|
utils/debounce.c \
|
|
|
|
blink.c
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
lib/common.h \
|
|
|
|
lib/defs_base.h \
|
|
|
|
lib/defs_flash.h \
|
|
|
|
lib/defs_gpio.h \
|
|
|
|
lib/defs_rcc.h \
|
|
|
|
lib/defs_systick.h \
|
|
|
|
lib/defs_usart.h \
|
|
|
|
lib/usart.h \
|
|
|
|
init.h \
|
|
|
|
timebase.h \
|
|
|
|
gpio.h \
|
|
|
|
usart.h \
|
|
|
|
utils/gpio.h \
|
|
|
|
utils/timebase.h \
|
|
|
|
utils/usart.h \
|
|
|
|
utils/debounce.h \
|
|
|
|
blink.h
|
|
|
|
|