diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-09-13 09:48:31 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-09-13 09:48:31 -0400 |
commit | 66d45c521edded56ef867b4fe89759d2bce7b75f (patch) | |
tree | a6a239de4224b63873c2793493345f11f8ac5583 /watch-library/hw/driver_init.c | |
parent | 71e411d8609b940ebd42b6aeaaad7d1ce106a424 (diff) | |
download | Sensor-Watch-66d45c521edded56ef867b4fe89759d2bce7b75f.tar.gz Sensor-Watch-66d45c521edded56ef867b4fe89759d2bce7b75f.tar.bz2 Sensor-Watch-66d45c521edded56ef867b4fe89759d2bce7b75f.zip |
implement ADC functionality
Diffstat (limited to 'watch-library/hw/driver_init.c')
-rw-r--r-- | watch-library/hw/driver_init.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/watch-library/hw/driver_init.c b/watch-library/hw/driver_init.c index daf3901d..564ec7a7 100644 --- a/watch-library/hw/driver_init.c +++ b/watch-library/hw/driver_init.c @@ -15,8 +15,6 @@ struct slcd_sync_descriptor SEGMENT_LCD_0; -struct adc_sync_descriptor ADC_0; - struct calendar_descriptor CALENDAR_0; struct i2c_m_sync_desc I2C_0; @@ -25,16 +23,6 @@ struct pwm_descriptor PWM_0; struct pwm_descriptor PWM_1; -void ADC_0_CLOCK_init(void) { - hri_mclk_set_APBCMASK_ADC_bit(MCLK); - hri_gclk_write_PCHCTRL_reg(GCLK, ADC_GCLK_ID, CONF_GCLK_ADC_SRC | (1 << GCLK_PCHCTRL_CHEN_Pos)); -} - -void ADC_0_init(void) { - ADC_0_CLOCK_init(); - adc_sync_init(&ADC_0, ADC, (void *)NULL); -} - void CALENDAR_0_CLOCK_init(void) { hri_mclk_set_APBAMASK_RTC_bit(MCLK); } |