aboutsummaryrefslogtreecommitdiff
path: root/common.h
AgeCommit message (Collapse)AuthorFilesLines
2015-06-09Replace array size calculation with macroLars-Dominik Braun1-0/+2
2015-02-27Add licenseLars-Dominik Braun1-0/+23
2015-02-26accel: Stop pollingLars-Dominik Braun1-4/+5
Use freefall interrupts instead. This drop the fancy horizon/shake detection algorithms, but it works surprisingly well and is way more energy-efficient. Shake detection is a little too sensitive imo and horizon detection needs some tweaking too.
2015-02-10Reduce CPU frequencyLars-Dominik Braun1-1/+1
Also reduces PWM frequency. The speakers resonance frequency is 2kHz, with 1MHz clock speed and prescaler 256 we get pretty close.
2015-01-29Replace enums with uint8_tLars-Dominik Braun1-6/+4
Saves a few bytes, since enums are 16 bit
2014-12-09accel: Fix shake gesture detectionLars-Dominik Braun1-0/+2
2014-09-30LED error code for assert()Lars-Dominik Braun1-4/+3
2014-09-30Add wakeup source mechanismLars-Dominik Braun1-0/+22
Should reduce amount of cpu wakeups with expensive computations.
2014-07-22Convert printf into putsLars-Dominik Braun1-2/+12
Removes ~1.5k code size, still not working.
2014-07-08Enable assert messagesLars-Dominik Braun1-0/+2
2014-05-27Fix compiler warningsLars-Dominik Braun1-0/+2
2014-04-22Increase CPU and UART speedLars-Dominik Braun1-2/+2
Re-enable interrupt based accel.
2014-04-22Add common.hLars-Dominik Braun1-0/+13