mirror of
https://github.com/sweetlilmre/tapuino.git
synced 2026-07-27 19:55:41 +00:00
removed tabs, properly cased integer.h include for real OS' :)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include <avr/io.h>
|
||||
#include "Integer.h"
|
||||
#include "integer.h"
|
||||
#include "spi.h"
|
||||
|
||||
|
||||
|
||||
@@ -282,7 +282,7 @@ ISR(TIMER1_COMPA_vect) {
|
||||
}
|
||||
|
||||
ISR(TIMER2_COMPA_vect) {
|
||||
disk_timerproc(); // Drive timer procedure for FatFs low level disk I/O module
|
||||
disk_timerproc(); // Drive timer procedure for FatFs low level disk I/O module
|
||||
input_callback();
|
||||
g_timer_tick++; // system ticker for timing
|
||||
}
|
||||
@@ -291,10 +291,10 @@ void disk_timer_setup() {
|
||||
TCCR2A = 0;
|
||||
TCCR2B = 0;
|
||||
|
||||
OCR2A = F_CPU / 1024 / 100 - 1; // 100Hz timer
|
||||
TCCR2A = _BV(WGM21); // CTC Mode
|
||||
OCR2A = F_CPU / 1024 / 100 - 1; // 100Hz timer
|
||||
TCCR2A = _BV(WGM21); // CTC Mode
|
||||
TCCR2B |= (1 << CS22) | (1 << CS21) | (1 << CS20); //pre-scaler 1024
|
||||
TIMSK2 |= _BV(OCIE2A);
|
||||
TIMSK2 |= _BV(OCIE2A);
|
||||
}
|
||||
|
||||
void signal_timer_start(uint8_t recording) {
|
||||
|
||||
Reference in New Issue
Block a user