Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Kroužek
safe-soldering-station
Commits
c10f7299
Commit
c10f7299
authored
May 07, 2016
by
Martin Vítek
Browse files
Add basic code for programming testing
parent
2b724ac8
Pipeline
#299
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
SW/CMakeLists.txt
0 → 100644
View file @
c10f7299
cmake_minimum_required
(
VERSION 3.0
)
set
(
AVR_UPLOADTOOL avrdude
)
set
(
AVR_PROGRAMMER usbasp
)
set
(
AVR_UPLOADTOOL_PORT usb
)
set
(
AVR_MCU atxmega16d4
)
set
(
AVR_H_FUSE 0xC8
)
set
(
AVR_L_FUSE 0x1F
)
#set(CMAKE_BUILD_TYPE RelWithDebInfo)
set
(
CMAKE_BUILD_TYPE Release
)
set
(
MCU_SPEED
"14745600UL"
)
set
(
WITH_MCU OFF
)
set
(
WITH_MCU OFF CACHE BOOL
"Add the mCU type to the target file name."
FORCE
)
find_package
(
avr
)
project
(
safe-soldering-station
)
add_definitions
(
"-DF_CPU=
${
MCU_SPEED
}
"
)
add_definitions
(
"-fpack-struct"
)
add_definitions
(
"-fshort-enums"
)
add_definitions
(
"-Wall"
)
add_definitions
(
"-funsigned-char"
)
add_definitions
(
"-funsigned-bitfields"
)
add_definitions
(
"-ffunction-sections"
)
add_definitions
(
"-fdata-sections"
)
add_definitions
(
"-fno-exceptions"
)
add_definitions
(
"-mcall-prologues"
)
add_definitions
(
"-mrelax"
)
add_definitions
(
"-c"
)
add_definitions
(
"-std=c++14"
)
set
(
CMAKE_CXX_FLAGS
${
CMAKE_CXX_FLAGS
}
"-Wl,--gc-sections -Wl,--relax -Os -mrelax"
)
set
(
SOURCE_FILES
main.cpp
)
add_avr_executable
(
safe-soldering-station
${
SOURCE_FILES
}
)
SW/main.cpp
0 → 100644
View file @
c10f7299
#include
<avr/io.h>
#include
<util/delay.h>
int
main
()
{
for
(;;)
{
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment