mirror of
https://github.com/Derisis13/AT-VFD.git
synced 2025-12-06 19:32:49 +01:00
Innitial commit, blinky
This commit is contained in:
22
CMakeLists.txt
Normal file
22
CMakeLists.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
cmake_minimum_required(VERSION 3.21)
|
||||
set(CMAKE_SYSTEM_NAME Generic)
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
project(vfdprog C)
|
||||
|
||||
set(CMAKE_C_COMPILER avr-gcc)
|
||||
set(TARGET_CPU ATmega88)
|
||||
|
||||
add_compile_definitions("__AVR_${TARGET_CPU}__")
|
||||
include_directories(/usr/lib/avr/include)
|
||||
|
||||
add_link_options(-Wl,--print-memory-usage)
|
||||
add_executable(${PROJECT_NAME} main.c
|
||||
#PT6302.c PT6302.h
|
||||
)
|
||||
|
||||
add_custom_target(
|
||||
FLASH
|
||||
avrdude -p ${TARGET_CPU} -c USBasp -v -U flash:w:${PROJECT_BINARY_DIR}/${PROJECT_NAME}:a
|
||||
DEPENDS ${PROJECT_NAME}
|
||||
COMMENT "Flash to ${TARGET_CPU}"
|
||||
)
|
||||
Reference in New Issue
Block a user