big PWM refactor: drive both LEDs and buzzer from TCC

This commit is contained in:
Joey Castillo
2021-08-29 17:40:44 -04:00
parent 7dc4b0fdc6
commit 6353d25d46
8 changed files with 120 additions and 76 deletions

View File

@@ -25,5 +25,11 @@
/// Called by main.c while setting up the app. You should not call this from your app.
void _watch_init();
/// Called by buzzer and LED setup functions. You should not call this from your app.
void _watch_enable_tcc();
/// Called by buzzer and LED teardown functions. You should not call this from your app.
void _watch_disable_tcc();
/// Called by main.c if plugged in to USB. You should not call this from your app.
void _watch_enable_usb();