generated from TDD-Templates/cmake_cpputest_template_avr
Compare commits
No commits in common. "main" and "dev" have entirely different histories.
|
@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.20)
|
||||||
|
|
||||||
# Use the fancy version substitution
|
# Use the fancy version substitution
|
||||||
project(main
|
project(main
|
||||||
VERSION 0.2.4
|
VERSION 0.2.2
|
||||||
DESCRIPTION "template for cmake + cpputest"
|
DESCRIPTION "template for cmake + cpputest"
|
||||||
LANGUAGES C CXX
|
LANGUAGES C CXX
|
||||||
)
|
)
|
||||||
|
|
|
@ -16,10 +16,9 @@ set(AVR_MCU attiny13a)
|
||||||
|
|
||||||
#set(F_CPU 16000000UL)
|
#set(F_CPU 16000000UL)
|
||||||
#set(F_CPU 8000000UL)
|
#set(F_CPU 8000000UL)
|
||||||
#set(F_CPU 9600000UL)#AVR without prescaler
|
#set(F_CPU 9600000UL)
|
||||||
set(F_CPU 1200000UL) #AVR (9.6MHz) with prescaler 8DIV
|
set(F_CPU 1200000UL)
|
||||||
#set(F_CPU 4800000UL) #AVR without prescaler
|
#set(F_CPU 4800000UL)
|
||||||
#set(F_CPU 600000UL) #AVR (4.8MHz) with prescaler 8DIV
|
|
||||||
|
|
||||||
add_compile_definitions(F_CPU=${F_CPU})
|
add_compile_definitions(F_CPU=${F_CPU})
|
||||||
# add_compile_definitions(MCU=atmega328p)
|
# add_compile_definitions(MCU=atmega328p)
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
#define SPEED_PIN PB2 // Pin 7/ADC1
|
#define SPEED_PIN PB2 // Pin 7/ADC1
|
||||||
#define BUTTON_PIN PB4 // Pin 3 - Button input
|
#define BUTTON_PIN PB4 // Pin 3 - Button input
|
||||||
|
|
||||||
#define MOTOR_PULSE 6 //uS motor base pulse
|
#define MOTOR_PULSE 1 //uS motor base pulse
|
||||||
|
|
||||||
|
|
||||||
/*The timing of "ticks" is dependent on the AVR timer's counter register
|
/*The timing of "ticks" is dependent on the AVR timer's counter register
|
||||||
|
|
Loading…
Reference in New Issue