Searched refs:slice (Results 1 – 5 of 5) sorted by relevance
/hal_rpi_pico-3.4.0/test/hardware_pwm_test/ |
D | hardware_pwm_test.c | 56 pwm_slice_hw_t *slice = &pwm_hw->slice[pwm]; in main() local 62 … PICOTEST_CHECK_CHANNEL(pwm, slice->top == config.top, "HW top does not match requested config"); in main() 64 … PICOTEST_CHECK_CHANNEL(pwm, slice->cc == PWM_CH0_CC_RESET, "HW compares does not match config"); in main() 65 PICOTEST_CHECK_CHANNEL(pwm, slice->div == div, "HW divider does not match config"); in main() 66 PICOTEST_CHECK_CHANNEL(pwm, slice->csr == in main() 77 pwm_slice_hw_t *slice = &pwm_hw->slice[pwm]; in main() local 81 PICOTEST_CHECK_CHANNEL(pwm, slice->top == v, "pwm_set_wrap() failed to set register"); in main() 84 …PICOTEST_CHECK_CHANNEL(pwm, slice->cc == (((v) << PWM_CH0_CC_B_LSB) | ((v + 1) << PWM_CH0_CC_A_LSB… in main() 91 …PICOTEST_CHECK_CHANNEL(pwm, slice->div == (i << 4 | f), "pwm_set_clkdiv() failed to set register"); in main() 95 PICOTEST_CHECK_CHANNEL(pwm, slice->div == (i << 4 | f), in main() [all …]
|
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_pwm/include/hardware/ |
D | pwm.h | 212 pwm_hw->slice[slice_num].csr = 0; in pwm_init() 214 pwm_hw->slice[slice_num].ctr = PWM_CH0_CTR_RESET; in pwm_init() 215 pwm_hw->slice[slice_num].cc = PWM_CH0_CC_RESET; in pwm_init() 216 pwm_hw->slice[slice_num].top = c->top; in pwm_init() 217 pwm_hw->slice[slice_num].div = c->div; in pwm_init() 218 pwm_hw->slice[slice_num].csr = c->csr | (bool_to_bit(start) << PWM_CH0_CSR_EN_LSB); in pwm_init() 256 pwm_hw->slice[slice_num].top = wrap; in pwm_set_wrap() 277 &pwm_hw->slice[slice_num].cc, in pwm_set_chan_level() 300 …pwm_hw->slice[slice_num].cc = (((uint)level_b) << PWM_CH0_CC_B_LSB) | (((uint)level_a) << PWM_CH0_… in pwm_set_both_levels() 336 return (uint16_t)(pwm_hw->slice[slice_num].ctr); in pwm_get_counter() [all …]
|
/hal_rpi_pico-3.4.0/src/rp2040/hardware_structs/include/hardware/structs/ |
D | pwm.h | 59 pwm_slice_hw_t slice[NUM_PWM_SLICES]; // 8 member
|
/hal_rpi_pico-3.4.0/tools/pioasm/gen/ |
D | parser.hpp | 2531 class slice class in yy::parser::stack 2534 slice (const stack& stack, index_type range) in slice() function in yy::parser::stack::slice
|
D | parser.cpp | 957 stack_type::slice range (yystack_, yylen); in parse()
|