generated from TDD-Templates/cmake_cpputest_template
updated the toolchain file for attiny404 usage and the serialupdi programmer
This commit is contained in:
parent
90ed839db5
commit
d70e9f4c46
|
@ -8,9 +8,9 @@ set(CMAKE_SYSTEM_VERSION 1)
|
||||||
set(CMAKE_SYSTEM_PROCESSOR avr)
|
set(CMAKE_SYSTEM_PROCESSOR avr)
|
||||||
|
|
||||||
# Specify the compiler and linker
|
# Specify the compiler and linker
|
||||||
set(AVR_MCU atmega328p) # The old Classic
|
#set(AVR_MCU atmega328p) # The old Classic
|
||||||
#set(AVR_MCU attiny85) # The older ATtiny series, avr25
|
#set(AVR_MCU attiny85) # The older ATtiny series, avr25
|
||||||
#set(AVR_MCU attiny404) # this is the avrxmega3 series
|
set(AVR_MCU attiny404) # this is the avrxmega3 series
|
||||||
#set(AVR_MCU avr64dd28) # Newer DX series, avrxmega2
|
#set(AVR_MCU avr64dd28) # Newer DX series, avrxmega2
|
||||||
|
|
||||||
# The default frequency of an 328p devboard using the external crystal.
|
# The default frequency of an 328p devboard using the external crystal.
|
||||||
|
@ -18,11 +18,13 @@ set(F_CPU 16000000UL)
|
||||||
#set(F_CPU 8000000)
|
#set(F_CPU 8000000)
|
||||||
add_compile_definitions(F_CPU=${F_CPU})
|
add_compile_definitions(F_CPU=${F_CPU})
|
||||||
# add_compile_definitions(MCU=atmega328p)
|
# add_compile_definitions(MCU=atmega328p)
|
||||||
add_compile_definitions(__AVR_ATmega328P__)
|
#add_compile_definitions(__AVR_ATmega328P__)
|
||||||
|
add_compile_definitions(__AVR_ATtiny404__)
|
||||||
|
|
||||||
# Set up the programmer for it
|
# Set up the programmer for it
|
||||||
#set(PROGRAMMER usbasp-clone)
|
#set(PROGRAMMER usbasp-clone)
|
||||||
set(PROGRAMMER arduino)
|
#set(PROGRAMMER arduino)
|
||||||
|
set(PROGRAMMER serialupdi)
|
||||||
|
|
||||||
# Set the Port for the programmer
|
# Set the Port for the programmer
|
||||||
set(PORT /dev/ttyUSB0)
|
set(PORT /dev/ttyUSB0)
|
||||||
|
|
Loading…
Reference in New Issue