/Zephyr-latest/drivers/watchdog/ |
D | wdt_mchp_xec.c | 40 if (regs->CTRL & MCHP_WDT_CTRL_EN) { in wdt_xec_setup() 55 regs->CTRL |= MCHP_WDT_CTRL_JTAG_STALL_EN; in wdt_xec_setup() 57 regs->CTRL &= ~MCHP_WDT_CTRL_JTAG_STALL_EN; in wdt_xec_setup() 60 regs->CTRL |= MCHP_WDT_CTRL_EN; in wdt_xec_setup() 73 if (!(regs->CTRL & MCHP_WDT_CTRL_EN)) { in wdt_xec_disable() 77 regs->CTRL &= ~MCHP_WDT_CTRL_EN; in wdt_xec_disable() 92 if (regs->CTRL & MCHP_WDT_CTRL_EN) { in wdt_xec_install_timeout() 105 regs->CTRL |= MCHP_WDT_CTRL_MODE_IRQ; in wdt_xec_install_timeout() 113 regs->CTRL &= ~MCHP_WDT_CTRL_MODE_IRQ; in wdt_xec_install_timeout() 138 if (!(regs->CTRL & MCHP_WDT_CTRL_EN)) { in wdt_xec_feed()
|
D | wdt_sam0.c | 56 WDT_REGS->CTRL.bit.ENABLE = on; in wdt_sam0_set_enable() 65 return WDT_REGS->CTRL.bit.ENABLE; in wdt_sam0_is_enabled() 183 WDT_REGS->CTRL.bit.WEN = 1; in wdt_sam0_install_timeout() 199 WDT_REGS->CTRL.bit.WEN = 0; in wdt_sam0_install_timeout()
|
/Zephyr-latest/drivers/counter/ |
D | counter_mchp_xec.c | 65 if (counter->CTRL & MCHP_BTMR_CTRL_ENABLE) { in counter_xec_start() 69 counter->CTRL |= (MCHP_BTMR_CTRL_ENABLE | MCHP_BTMR_CTRL_START); in counter_xec_start() 81 if (!(counter->CTRL & MCHP_BTMR_CTRL_ENABLE)) { in counter_xec_stop() 86 reg = counter->CTRL; in counter_xec_stop() 92 counter->CTRL = reg; in counter_xec_stop() 149 counter->CTRL |= MCHP_BTMR_CTRL_START; in counter_xec_set_alarm() 165 counter->CTRL &= ~MCHP_BTMR_CTRL_START; in counter_xec_cancel_alarm() 207 restart = ((counter->CTRL & MCHP_BTMR_CTRL_START) != 0U); in counter_xec_set_top_value() 209 counter->CTRL &= ~MCHP_BTMR_CTRL_START; in counter_xec_set_top_value() 230 counter->CTRL |= MCHP_BTMR_CTRL_AUTO_RESTART; in counter_xec_set_top_value() [all …]
|
/Zephyr-latest/drivers/timer/ |
D | mchp_xec_rtos_timer.c | 141 TIMER_REGS->CTRL = 0U; in timer_restart() 142 TIMER_REGS->CTRL = MCHP_RTMR_CTRL_BLK_EN; in timer_restart() 144 TIMER_REGS->CTRL = TIMER_START_VAL; in timer_restart() 163 if ((ccr == 0) && (TIMER_REGS->CTRL & MCHP_RTMR_CTRL_START)) { in timer_count() 200 TIMER_REGS->CTRL = 0U; /* stop timer */ in sys_clock_set_timeout() 220 TIMER_REGS->CTRL = 0u; in sys_clock_set_timeout() 368 TIMER_REGS->CTRL = 0U; in sys_clock_disable() 408 TIMER_REGS->CTRL = 0u; in sys_clock_driver_init() 428 BTMR32_0_REGS->CTRL = MCHP_BTMR_CTRL_SOFT_RESET; in sys_clock_driver_init() 429 BTMR32_0_REGS->CTRL = btmr_ctrl; in sys_clock_driver_init() [all …]
|
D | sam0_rtc_timer.c | 129 RTC0->CTRL.reg &= ~RTC_MODE0_CTRL_ENABLE; in rtc_reset() 138 RTC0->CTRL.bit.SWRST = 1; in rtc_reset() 139 while (RTC0->CTRL.bit.SWRST) { in rtc_reset() 297 RTC0->CTRL.reg = ctrl; in sys_clock_driver_init() 317 RTC0->CTRL.reg |= RTC_MODE0_CTRL_ENABLE; in sys_clock_driver_init()
|
D | cortex_m_systick.c | 120 uint32_t ctrl = SysTick->CTRL; /* B */ in elapsed() 159 (void)SysTick->CTRL; in elapsed() 233 SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk; in sys_clock_set_timeout() 436 SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk; in sys_clock_idle_exit() 443 SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk; in sys_clock_disable() 454 SysTick->CTRL |= (SysTick_CTRL_ENABLE_Msk | in sys_clock_driver_init()
|
/Zephyr-latest/soc/microchip/mec/mec15xx/ |
D | timing.c | 16 B32TMR1_REGS->CTRL = MCHP_BTMR_CTRL_ENABLE | in soc_timing_init() 29 B32TMR1_REGS->CTRL |= MCHP_BTMR_CTRL_START; in soc_timing_start() 34 B32TMR1_REGS->CTRL &= ~MCHP_BTMR_CTRL_START; in soc_timing_stop()
|
D | device_power.c | 127 (uintptr_t)&B16TMR0_REGS->CTRL, 0 130 (uintptr_t)&B16TMR1_REGS->CTRL, 0 133 (uintptr_t)&B32TMR0_REGS->CTRL, 0 136 (uintptr_t)&B32TMR1_REGS->CTRL, 0 139 (uintptr_t)&CCT_REGS->CTRL,
|
/Zephyr-latest/soc/microchip/mec/mec172x/ |
D | timing.c | 27 regs->CTRL = MCHP_BTMR_CTRL_ENABLE | MCHP_BTMR_CTRL_AUTO_RESTART | in soc_timing_init() 39 regs->CTRL |= MCHP_BTMR_CTRL_START; in soc_timing_start() 44 regs->CTRL &= ~MCHP_BTMR_CTRL_START; in soc_timing_stop()
|
D | soc_power_debug.h | 27 regs->CTRL[DP_GPIO_ID] = gpio_ctrl_val; in pm_dp_gpio()
|
/Zephyr-latest/arch/arm/include/cortex_m/ |
D | dwt.h | 101 DWT->CTRL |= DWT_CTRL_CYCCNTENA_Msk; in z_arm_dwt_init_cycle_counter() 106 __ASSERT((DWT->CTRL & DWT_CTRL_NOCYCCNT_Msk) == 0, in z_arm_dwt_init_cycle_counter() 133 DWT->CTRL |= DWT_CTRL_CYCCNTENA_Msk; in z_arm_dwt_cycle_count_start()
|
/Zephyr-latest/drivers/pinctrl/ |
D | pinctrl_mchp_xec.c | 108 regs->CTRL[idx] &= ~(BIT(MCHP_GPIO_CTRL_AOD_POS) | BIT(MCHP_GPIO_CTRL_INPAD_DIS_POS)); in xec_config_pin() 109 pcr1 = regs->CTRL[idx]; /* current configuration including pin input state */ in xec_config_pin() 110 pcr1 = regs->CTRL[idx]; /* read multiple times to allow propagation from pad */ in xec_config_pin() 111 pcr1 = regs->CTRL[idx]; /* Is this necessary? */ in xec_config_pin() 159 regs->CTRL[idx] = pcr1; in xec_config_pin() 161 regs->CTRL[idx] = pcr1 | BIT(MCHP_GPIO_CTRL_AOD_POS); in xec_config_pin()
|
/Zephyr-latest/soc/nordic/nrf54h/ |
D | pm_s2ram.c | 40 uint32_t CTRL; member 71 backup->CTRL = MPU->CTRL; in mpu_suspend() 93 MPU->CTRL = backup->CTRL; in mpu_resume()
|
/Zephyr-latest/drivers/ps2/ |
D | ps2_mchp_xec.c | 133 regs->CTRL = MCHP_PS2_CTRL_EN_POS; in ps2_xec_configure() 179 regs->CTRL = 0x00; in ps2_xec_write() 187 regs->CTRL = MCHP_PS2_CTRL_TR_TX | MCHP_PS2_CTRL_EN; in ps2_xec_write() 207 regs->CTRL = 0x00; in ps2_xec_inhibit_interface() 224 regs->CTRL = MCHP_PS2_CTRL_EN; in ps2_xec_enable_interface() 257 regs->CTRL |= MCHP_PS2_CTRL_EN; in ps2_xec_pm_action() 277 regs->CTRL &= ~MCHP_PS2_CTRL_EN; in ps2_xec_pm_action() 311 regs->CTRL = 0x00; in ps2_xec_isr() 337 regs->CTRL = MCHP_PS2_CTRL_EN; in ps2_xec_isr()
|
/Zephyr-latest/tests/benchmarks/cmsis_dsp/common/ |
D | benchmark_common.h | 27 DWT->CTRL |= DWT_CTRL_CYCCNTENA_Msk; in benchmark_begin() 33 DWT->CTRL &= ~DWT_CTRL_CYCCNTENA_Msk; in benchmark_end()
|
/Zephyr-latest/soc/microchip/mec/common/reg/ |
D | mec_timers.h | 82 volatile uint32_t CTRL; member 109 volatile uint16_t CTRL; member 140 volatile uint32_t CTRL; member 182 volatile uint32_t CTRL; member 261 volatile uint32_t CTRL; member
|
D | mec_gpio.h | 17 volatile uint32_t CTRL[174]; member
|
D | mec_tfdp.h | 43 volatile uint32_t CTRL; member
|
/Zephyr-latest/soc/atmel/sam/sam4l/ |
D | soc.c | 42 WDT->CTRL = ctrl | WDT_CTRL_KEY(WDT_FIRST_KEY); in wdt_set_ctrl() 43 WDT->CTRL = ctrl | WDT_CTRL_KEY(WDT_SECOND_KEY); in wdt_set_ctrl() 189 HCACHE->CTRL = HCACHE_CTRL_CEN_NO; in clock_init() 259 wdt_set_ctrl(WDT->CTRL & ~WDT_CTRL_EN); in soc_reset_hook() 260 while (WDT->CTRL & WDT_CTRL_EN) { in soc_reset_hook()
|
/Zephyr-latest/soc/microchip/mec/common/ |
D | soc_i2c.c | 82 if (regs->CTRL[idx_scl] & BIT(MCHP_GPIO_CTRL_INPAD_VAL_POS)) { in soc_i2c_port_lines_get() 85 if (regs->CTRL[idx_sda] & BIT(MCHP_GPIO_CTRL_INPAD_VAL_POS)) { in soc_i2c_port_lines_get()
|
/Zephyr-latest/arch/arm/core/cortex_m/ |
D | debug.c | 75 if (((DWT->CTRL & DWT_CTRL_NUMCOMP_Msk) >> DWT_CTRL_NUMCOMP_Pos) < 2) { in z_arm_debug_enable_null_pointer_detection() 101 if (((DWT->CTRL & DWT_CTRL_NUMCOMP_Msk) >> DWT_CTRL_NUMCOMP_Pos) < 1) { in z_arm_debug_enable_null_pointer_detection()
|
/Zephyr-latest/drivers/rtc/ |
D | rtc_nxp_irtc.c | 92 irtc_reg->CTRL |= RTC_CTRL_DST_EN(timeptr->tm_isdst); in nxp_irtc_set_time() 119 ((irtc_reg->CTRL & RTC_CTRL_DST_EN_MASK) >> RTC_CTRL_DST_EN_SHIFT); in nxp_irtc_get_time() 189 irtc_reg->CTRL &= ~(0xC); in nxp_irtc_alarm_set_time() 192 irtc_reg->CTRL |= RTC_CTRL_ALM_MATCH(0x4); in nxp_irtc_alarm_set_time() 195 irtc_reg->CTRL |= RTC_CTRL_ALM_MATCH(0x8); in nxp_irtc_alarm_set_time() 198 irtc_reg->CTRL |= RTC_CTRL_ALM_MATCH(0xC); in nxp_irtc_alarm_set_time() 201 irtc_reg->CTRL |= RTC_CTRL_ALM_MATCH(0x0); in nxp_irtc_alarm_set_time() 332 irtc_reg->CTRL = RTC_CTRL_CLK_SEL(config->clock_src) | in nxp_irtc_init()
|
/Zephyr-latest/drivers/spi/ |
D | spi_xec_qmspi.c | 202 regs->CTRL = smode; in qmspi_configure() 253 ifm = regs->CTRL & MCHP_QMSPI_C_IFM_MASK; in qmspi_tx_dummy_clocks() 266 regs->CTRL |= MCHP_QMSPI_C_DESCR_EN; in qmspi_tx_dummy_clocks() 342 descr = (regs->CTRL & MCHP_QMSPI_C_IFM_MASK); in qmspi_descr_alloc() 414 regs->CTRL = (regs->CTRL & MCHP_QMSPI_C_IFM_MASK) | in qmspi_tx() 484 regs->CTRL = (regs->CTRL & MCHP_QMSPI_C_IFM_MASK) in qmspi_rx()
|
D | spi_gecko_usart.c | 122 mem_addr_t ctrl_reg = (mem_addr_t)&gecko_config->base->CTRL; in spi_config() 189 gecko_config->base->CTRL |= USART_CTRL_LOOPBK; in spi_config() 191 gecko_config->base->CTRL &= ~USART_CTRL_LOOPBK; in spi_config() 196 gecko_config->base->CTRL |= USART_CTRL_CLKPOL; in spi_config() 198 gecko_config->base->CTRL &= ~USART_CTRL_CLKPOL; in spi_config() 203 gecko_config->base->CTRL |= USART_CTRL_CLKPHA; in spi_config() 205 gecko_config->base->CTRL &= ~USART_CTRL_CLKPHA; in spi_config()
|
/Zephyr-latest/subsys/logging/backends/ |
D | log_backend_swo.c | 110 DWT->CTRL &= (DWT_CTRL_POSTPRESET_Msk | DWT_CTRL_POSTINIT_Msk | DWT_CTRL_CYCCNTENA_Msk); in log_backend_swo_init() 111 DWT->CTRL |= (DWT_CTRL_POSTPRESET_Msk | DWT_CTRL_POSTINIT_Msk); in log_backend_swo_init()
|