overdue refactor: compile all watch modules separately

This commit is contained in:
Joey Castillo
2021-09-28 13:42:08 -04:00
parent 152ba8aec6
commit 39a17c99b9
27 changed files with 91 additions and 13 deletions

View File

@@ -22,6 +22,8 @@
* SOFTWARE.
*/
#include "watch_extint.h"
void watch_enable_external_interrupts() {
// Configure EIC to use GCLK3 (the 32.768 kHz crystal)
hri_gclk_write_PCHCTRL_reg(GCLK, EIC_GCLK_ID, GCLK_PCHCTRL_GEN_GCLK3_Val | (1 << GCLK_PCHCTRL_CHEN_Pos));