d43405f6b575ff2dd93f341a3d69f526ac020235
Stefan Schuermans CCCamp2015: alternative fir...

Stefan Schuermans authored 9 years ago

1) cmake_minimum_required(VERSION 2.8  )
2) 
Stefan Schuermans some fixes for alternative...

Stefan Schuermans authored 9 years ago

3) include(generic-gcc-avr.cmake)
4) 
Stefan Schuermans CCCamp2015: alternative fir...

Stefan Schuermans authored 9 years ago

5) project(bulb_mm C ASM)
6) 
7) set(CMAKE_BUILD_TYPE MinSizeRel)
Stefan Schuermans some fixes for alternative...

Stefan Schuermans authored 9 years ago

8)  
9) # Adjust for your ISP
Stefan Schuermans CCCamp2015: alternative fir...

Stefan Schuermans authored 9 years ago

10) set(AVR_MCU attiny2313)
11) 
Stefan Schuermans some fixes for alternative...

Stefan Schuermans authored 9 years ago

12) #set(AVR_PROGRAMMER usbtiny)
13) #set(AVR_PROGRAMMER avr910)
14) set(AVR_PROGRAMMER avrisp2)
15) #set(AVR_UPLOADTOOL_PORT /dev/ttyUSB0)
16) #set(AVR_UPLOADTOOL_OPTIONS -b 115200)
17) 
18) set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -std=c99)
19) 
20) include_directories(/usr/avr/include/avr)
21) set_source_files_properties(bulb.asm PROPERTIES COMPILE_FLAGS "-x assembler-with-cpp")