Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/stepper/
Dgpio_stepper_controller.c19 #define NUM_CONTROL_PINS 4 macro
22 half_step_lookup_table[NUM_CONTROL_PINS * MAX_MICRO_STEP_RES][NUM_CONTROL_PINS] = {
52 for (int i = 0; i < NUM_CONTROL_PINS; i++) { in stepper_motor_set_coil_charge()
63 if (data->coil_charge == NUM_CONTROL_PINS * MAX_MICRO_STEP_RES - data->step_gap) { in increment_coil_charge()
75 data->coil_charge = NUM_CONTROL_PINS * MAX_MICRO_STEP_RES - data->step_gap; in decrement_coil_charge()
85 for (int i = 0; i < NUM_CONTROL_PINS; i++) { in energize_coils()
372 LOG_DBG("Initializing %s gpio_stepper with %d pin", dev->name, NUM_CONTROL_PINS); in gpio_stepper_init()
373 for (uint8_t n_pin = 0; n_pin < NUM_CONTROL_PINS; n_pin++) { in gpio_stepper_init()