Home
last modified time | relevance | path

Searched refs:CTRLA (Results 1 – 16 of 16) sorted by relevance

/Zephyr-latest/drivers/pwm/
Dpwm_sam0_tc.c107 regs->COUNT8.CTRLA.bit.ENABLE = 0; in pwm_sam0_set_cycles()
111 regs->COUNT8.CTRLA.bit.ENABLE = 1; in pwm_sam0_set_cycles()
121 regs->COUNT16.CTRLA.bit.ENABLE = 0; in pwm_sam0_set_cycles()
125 regs->COUNT16.CTRLA.bit.ENABLE = 1; in pwm_sam0_set_cycles()
157 regs->COUNT8.CTRLA.bit.SWRST = 1; in pwm_sam0_init()
160 regs->COUNT8.CTRLA.reg = cfg->prescaler | TC_CTRLA_MODE_COUNT8 | in pwm_sam0_init()
165 regs->COUNT8.CTRLA.bit.ENABLE = 1; in pwm_sam0_init()
168 regs->COUNT16.CTRLA.bit.SWRST = 1; in pwm_sam0_init()
171 regs->COUNT16.CTRLA.reg = cfg->prescaler | TC_CTRLA_MODE_COUNT16 | in pwm_sam0_init()
176 regs->COUNT16.CTRLA.bit.ENABLE = 1; in pwm_sam0_init()
Dpwm_sam0_tcc.c92 regs->CTRLA.bit.ENABLE = 0; in pwm_sam0_set_cycles()
96 regs->CTRLA.bit.ENABLE = 1; in pwm_sam0_set_cycles()
125 regs->CTRLA.bit.SWRST = 1; in pwm_sam0_init()
128 regs->CTRLA.reg = cfg->prescaler; in pwm_sam0_init()
132 regs->CTRLA.bit.ENABLE = 1; in pwm_sam0_init()
/Zephyr-latest/drivers/i2c/
Di2c_sam0.c554 uint32_t CTRLA = i2c->CTRLA.reg; in i2c_sam0_set_apply_bitrate() local
557 CTRLA &= ~SERCOM_I2CM_CTRLA_SPEED_Msk; in i2c_sam0_set_apply_bitrate()
559 CTRLA &= ~SERCOM_I2CM_CTRLA_SDAHOLD_Msk; in i2c_sam0_set_apply_bitrate()
564 CTRLA |= SERCOM_I2CM_CTRLA_SPEED(0); in i2c_sam0_set_apply_bitrate()
566 CTRLA |= SERCOM_I2CM_CTRLA_SDAHOLD(0x0); in i2c_sam0_set_apply_bitrate()
567 i2c->CTRLA.reg = CTRLA; in i2c_sam0_set_apply_bitrate()
583 CTRLA |= SERCOM_I2CM_CTRLA_SDAHOLD(0x0); in i2c_sam0_set_apply_bitrate()
584 i2c->CTRLA.reg = CTRLA; in i2c_sam0_set_apply_bitrate()
601 CTRLA |= SERCOM_I2CM_CTRLA_SPEED(1); in i2c_sam0_set_apply_bitrate()
603 CTRLA |= SERCOM_I2CM_CTRLA_SDAHOLD(0x2); in i2c_sam0_set_apply_bitrate()
[all …]
/Zephyr-latest/drivers/timer/
Dsam0_rtc_timer.c131 RTC0->CTRLA.reg &= ~RTC_MODE0_CTRLA_ENABLE; in rtc_reset()
142 RTC0->CTRLA.bit.SWRST = 1; in rtc_reset()
143 while (RTC0->CTRLA.bit.SWRST) { in rtc_reset()
299 RTC0->CTRLA.reg = ctrl; in sys_clock_driver_init()
319 RTC0->CTRLA.reg |= RTC_MODE0_CTRLA_ENABLE; in sys_clock_driver_init()
/Zephyr-latest/drivers/watchdog/
Dwdt_sam0.c54 WDT_REGS->CTRLA.bit.ENABLE = on; in wdt_sam0_set_enable()
63 return WDT_REGS->CTRLA.bit.ENABLE; in wdt_sam0_is_enabled()
181 WDT_REGS->CTRLA.bit.WEN = 1; in wdt_sam0_install_timeout()
197 WDT_REGS->CTRLA.bit.WEN = 0; in wdt_sam0_install_timeout()
/Zephyr-latest/drivers/flash/
Dflash_sam0.c170 NVMCTRL->CTRLA.reg = NVMCTRL_CTRLA_CMD_PBC | NVMCTRL_CTRLA_CMDEX_KEY; in flash_sam0_write_page()
182 NVMCTRL->CTRLA.reg = NVMCTRL_CTRLA_CMD_WP | NVMCTRL_CTRLA_CMDEX_KEY; in flash_sam0_write_page()
204 NVMCTRL->CTRLA.reg = NVMCTRL_CTRLA_CMD_ER | NVMCTRL_CTRLA_CMDEX_KEY; in flash_sam0_erase_row()
414 NVMCTRL->CTRLA.reg = NVMCTRL_CTRLA_CMD_LR | in flash_sam0_write_protection()
417 NVMCTRL->CTRLA.reg = NVMCTRL_CTRLA_CMD_UR | in flash_sam0_write_protection()
484 NVMCTRL->CTRLA.bit.WMODE = NVMCTRL_CTRLA_WMODE_MAN_Val; in flash_sam0_init()
/Zephyr-latest/drivers/dac/
Ddac_sam0.c93 regs->CTRLA.bit.SWRST = 1; in dac_sam0_init()
101 regs->CTRLA.bit.ENABLE = 1; in dac_sam0_init()
/Zephyr-latest/soc/atmel/sam0/common/
Dsoc_samd5x.c101 GCLK->CTRLA.bit.SWRST = 1; in gclk_reset()
Dadc_fixup_sam0.h50 #define ADC_PRESCALER(adc) ((adc)->CTRLA.bit.PRESCALER)
/Zephyr-latest/drivers/entropy/
Dentropy_sam.c157 trng->CTRLA.bit.ENABLE = 1; in entropy_sam_init()
/Zephyr-latest/drivers/adc/
Dadc_sam0.c167 adc->CTRLA.bit.ENABLE = 0; in adc_sam0_channel_setup()
173 adc->CTRLA.bit.ENABLE = 1; in adc_sam0_channel_setup()
482 adc->CTRLA.bit.ENABLE = 1; in adc_sam0_init()
/Zephyr-latest/drivers/usb/device/
Dusb_dc_sam0.c247 regs->CTRLA.bit.SWRST = 1; in usb_dc_attach()
263 regs->CTRLA.reg = USB_CTRLA_MODE_DEVICE | USB_CTRLA_RUNSTDBY; in usb_dc_attach()
286 regs->CTRLA.bit.ENABLE = 1; in usb_dc_attach()
338 regs->CTRLA.bit.SWRST = 1; in usb_dc_reset()
/Zephyr-latest/drivers/serial/
Duart_sam0.c401 usart->CTRLA.bit.ENABLE = 0; in uart_sam0_configure()
413 SERCOM_USART_CTRLA_Type CTRLA_temp = usart->CTRLA; in uart_sam0_configure()
473 usart->CTRLA = CTRLA_temp; in uart_sam0_configure()
487 usart->CTRLA.bit.ENABLE = 1; in uart_sam0_configure()
534 usart->CTRLA.reg = in uart_sam0_init()
633 usart->CTRLA.bit.ENABLE = 1; in uart_sam0_init()
/Zephyr-latest/drivers/counter/
Dcounter_sam0_tc32.c360 tc->CTRLA.reg = TC_CTRLA_MODE_COUNT32 | in counter_sam0_tc32_initialize()
384 tc->CTRLA.bit.ENABLE = 1; in counter_sam0_tc32_initialize()
/Zephyr-latest/drivers/spi/
Dspi_sam0.c132 if (regs->CTRLA.reg != ctrla.reg || regs->CTRLB.reg != ctrlb.reg || in spi_sam0_configure()
134 regs->CTRLA.bit.ENABLE = 0; in spi_sam0_configure()
141 regs->CTRLA = ctrla; in spi_sam0_configure()
/Zephyr-latest/drivers/interrupt_controller/
Dintc_sam0_eic.c45 EIC->CTRLA.bit.ENABLE = on; in set_eic_enable()