Compare commits

..

1 Commits
main ... dev

Author SHA1 Message Date
Jake Goodwin b103fe2b97 removed error line, causes issues with LSP. 2025-02-22 21:31:52 -08:00
4 changed files with 5 additions and 7 deletions

View File

@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.20)
# Use the fancy version substitution
project(main
VERSION 0.2.4
VERSION 0.2.2
DESCRIPTION "template for cmake + cpputest"
LANGUAGES C CXX
)

View File

@ -16,10 +16,9 @@ set(AVR_MCU attiny13a)
#set(F_CPU 16000000UL)
#set(F_CPU 8000000UL)
#set(F_CPU 9600000UL)#AVR without prescaler
set(F_CPU 1200000UL) #AVR (9.6MHz) with prescaler 8DIV
#set(F_CPU 4800000UL) #AVR without prescaler
#set(F_CPU 600000UL) #AVR (4.8MHz) with prescaler 8DIV
#set(F_CPU 9600000UL)
set(F_CPU 1200000UL)
#set(F_CPU 4800000UL)
add_compile_definitions(F_CPU=${F_CPU})
# add_compile_definitions(MCU=atmega328p)

View File

@ -49,7 +49,7 @@
#define SPEED_PIN PB2 // Pin 7/ADC1
#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

View File

@ -1,5 +1,4 @@
#ifndef F_CPU
#error "F_CPU not defined: defaulting to 9.6MHz"
#define F_CPU 1200000UL
#endif