Compare commits

...

5 Commits
dev ... main

Author SHA1 Message Date
jakeg00dwin b377eab7c0 Updated with comments on prescaler usage for F_CPU 2025-02-20 16:05:23 -08:00
jakeg00dwin 43d15247ad Updated version number from changes. 2025-02-20 15:55:34 -08:00
jakeg00dwin a29e16963f Merge branch 'dev' 2025-02-20 15:50:00 -08:00
jakeg00dwin 4d229a973c updated version number 2025-02-18 19:30:01 -08:00
jakeg00dwin cc57692a1d Updated the motor pulse define, too fast of a pulse doesn't wakeup the motor driver. 2025-02-18 19:29:30 -08:00
3 changed files with 6 additions and 5 deletions

View File

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

View File

@ -16,9 +16,10 @@ set(AVR_MCU attiny13a)
#set(F_CPU 16000000UL)
#set(F_CPU 8000000UL)
#set(F_CPU 9600000UL)
set(F_CPU 1200000UL)
#set(F_CPU 4800000UL)
#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
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 1 //uS motor base pulse
#define MOTOR_PULSE 6 //uS motor base pulse
/*The timing of "ticks" is dependent on the AVR timer's counter register