diff options
author | joeycastillo <joeycastillo@utexas.edu> | 2021-08-26 16:32:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-26 16:32:42 -0400 |
commit | 6050aff2358c1535d967e13548bf54e7358a1b29 (patch) | |
tree | 9047066f6e241b3008199241f6146439b4455a9d /watch-library/hw/driver_init.c | |
parent | ef9736a3c96d3e345b7184c678921b5243bbbb99 (diff) | |
parent | d09d3c3c95a412ce5f5af8068205c416938510e7 (diff) | |
download | Sensor-Watch-6050aff2358c1535d967e13548bf54e7358a1b29.tar.gz Sensor-Watch-6050aff2358c1535d967e13548bf54e7358a1b29.tar.bz2 Sensor-Watch-6050aff2358c1535d967e13548bf54e7358a1b29.zip |
Merge pull request #8 from joeycastillo/external-interrupts
External interrupt refactor (closes #4, closes #5)
Diffstat (limited to 'watch-library/hw/driver_init.c')
-rw-r--r-- | watch-library/hw/driver_init.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/watch-library/hw/driver_init.c b/watch-library/hw/driver_init.c index 02907feb..6d910d22 100644 --- a/watch-library/hw/driver_init.c +++ b/watch-library/hw/driver_init.c @@ -35,52 +35,6 @@ void ADC_0_init(void) { adc_sync_init(&ADC_0, ADC, (void *)NULL); } -void EXTERNAL_IRQ_0_init(void) { - hri_gclk_write_PCHCTRL_reg(GCLK, EIC_GCLK_ID, CONF_GCLK_EIC_SRC | (1 << GCLK_PCHCTRL_CHEN_Pos)); - hri_mclk_set_APBAMASK_EIC_bit(MCLK); - - // Set pin direction to input - gpio_set_pin_direction(BTN_ALARM, GPIO_DIRECTION_IN); - - gpio_set_pin_pull_mode(BTN_ALARM, - // <y> Pull configuration - // <id> pad_pull_config - // <GPIO_PULL_OFF"> Off - // <GPIO_PULL_UP"> Pull-up - // <GPIO_PULL_DOWN"> Pull-down - GPIO_PULL_DOWN); - - gpio_set_pin_function(BTN_ALARM, PINMUX_PA02A_EIC_EXTINT2); - - // Set pin direction to input - gpio_set_pin_direction(BTN_LIGHT, GPIO_DIRECTION_IN); - - gpio_set_pin_pull_mode(BTN_LIGHT, - // <y> Pull configuration - // <id> pad_pull_config - // <GPIO_PULL_OFF"> Off - // <GPIO_PULL_UP"> Pull-up - // <GPIO_PULL_DOWN"> Pull-down - GPIO_PULL_DOWN); - - gpio_set_pin_function(BTN_LIGHT, PINMUX_PA22A_EIC_EXTINT6); - - // Set pin direction to input - gpio_set_pin_direction(BTN_MODE, GPIO_DIRECTION_IN); - - gpio_set_pin_pull_mode(BTN_MODE, - // <y> Pull configuration - // <id> pad_pull_config - // <GPIO_PULL_OFF"> Off - // <GPIO_PULL_UP"> Pull-up - // <GPIO_PULL_DOWN"> Pull-down - GPIO_PULL_DOWN); - - gpio_set_pin_function(BTN_MODE, PINMUX_PA23A_EIC_EXTINT7); - - ext_irq_init(); -} - void CALENDAR_0_CLOCK_init(void) { hri_mclk_set_APBAMASK_RTC_bit(MCLK); } |