mirror of
https://github.com/Derisis13/AT-VFD.git
synced 2025-12-07 03:42:49 +01:00
* optimisation: -C3 compiler flag for optimised size
* bugfix: correct order of setting `DDRn` and `PORTn` * optimisation: `enum` and `static const` instead of macros * optimisation: `PT6302_startup` is now `inline` * optimisation: functions are now static * bugfix: `data` is now rotated and stored instead of just rotating * special thanks to @kissadamfkut for pointing all of this out to me
This commit is contained in:
@@ -8,11 +8,10 @@ set(TARGET_CPU ATmega88)
|
||||
|
||||
add_compile_definitions("__AVR_${TARGET_CPU}__")
|
||||
include_directories(/usr/lib/avr/include)
|
||||
set(CMAKE_C_FLAGS "-O3 -Wall")
|
||||
|
||||
add_link_options(-Wl,--print-memory-usage)
|
||||
add_executable(${PROJECT_NAME} main.c
|
||||
PT6302.c PT6302.h
|
||||
)
|
||||
add_executable(${PROJECT_NAME} main.c)
|
||||
|
||||
add_custom_target(
|
||||
FLASH
|
||||
|
||||
Reference in New Issue
Block a user