summaryrefslogtreecommitdiffstats
path: root/movement/movement.h
diff options
context:
space:
mode:
authorTheOnePerson <a.nebinger@web.de>2023-01-10 22:31:32 +0100
committerGitHub <noreply@github.com>2023-01-10 16:31:32 -0500
commitd0a3fd23778fec57c6010c0ee04d038a0bae34e4 (patch)
tree26f15527a251ffc55723a5c987879a041f51cd80 /movement/movement.h
parent529bad306d94624cb2eefbfd16b17fc9fd7e4773 (diff)
downloadSensor-Watch-d0a3fd23778fec57c6010c0ee04d038a0bae34e4.tar.gz
Sensor-Watch-d0a3fd23778fec57c6010c0ee04d038a0bae34e4.tar.bz2
Sensor-Watch-d0a3fd23778fec57c6010c0ee04d038a0bae34e4.zip
Add stock stopwatch face (#140)
* buzzer sequences: first draft, does not work on hardware yet (but in simulator) * buzzer sequences: add changes to movement.c * buzzer sequences: add demo face to Makefile * buzzer sequences: fix problem of interrupted sounds. Add logic for repeating sub sequences. Tidy up (move logic to watch_buzzer files, remove buzzer_demo_face) * buzzer sequences: tidy up even more * buzzer sequences: disable registering a 32 Hz tick callback for watch faces, so it will be used exclusively by the buzzer sequences functionality * buzzer sequences: add callback slot functionality to watch_rtc and make watch_buzzer use it. Switch internal buzzer sequences tick frequency to 64 Hz. Revert changes to movement.c * buzzer sequences: fix parameter sanity check in watch_rtc code * stock stopwatch: first fully functional implementation * stock stopwatch: fix typo in comment * stock stopwatch: handle resuming from deep sleep mode properly * buzzer sequences/watch_rtc: optimize calling tick callbacks in RTC_Handler * buzzer sequences/watch_rtc: fix error in calling callback functions * stock stopwatch: implement workaround for sleep mode * stock stopwatch: merge current main into stock-stopwatch * stock stopwatch: use TC counters as source for callbacks * stock-stopwatch: revert unnecessary changes to watch_buzzer Co-authored-by: joeycastillo <joeycastillo@utexas.edu>
Diffstat (limited to 'movement/movement.h')
-rw-r--r--movement/movement.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/movement/movement.h b/movement/movement.h
index 9dc5fe82..7b5c4647 100644
--- a/movement/movement.h
+++ b/movement/movement.h
@@ -61,7 +61,7 @@ typedef union {
// altimeter to display feet or meters as easily as it tells a thermometer to display degrees in F or C.
bool clock_mode_24h : 1; // indicates whether clock should use 12 or 24 hour mode.
bool use_imperial_units : 1; // indicates whether to use metric units (the default) or imperial.
- bool alarm_enabled : 1; // indicates wheter there is at least one alarm enabled.
+ bool alarm_enabled : 1; // indicates whether there is at least one alarm enabled.
uint8_t reserved : 6; // room for more preferences if needed.
} bit;
uint32_t reg;