added nrf54l15 as target
This commit is contained in:
@@ -89,12 +89,12 @@ void StepperController::init() {
|
||||
|
||||
alarm_cfg = {
|
||||
.callback = counter_cb,
|
||||
.ticks = counter_us_to_ticks(counter5, PID_LOOP_US), // 2 ms = 500 Hz
|
||||
.ticks = counter_us_to_ticks(pid_counter, PID_LOOP_US), // 2 ms = 500 Hz
|
||||
.flags = 0,
|
||||
};
|
||||
|
||||
counter_set_channel_alarm(counter5, 0, &alarm_cfg);
|
||||
counter_start(counter5);
|
||||
counter_set_channel_alarm(pid_counter, 0, &alarm_cfg);
|
||||
counter_start(pid_counter);
|
||||
|
||||
sample_angle();
|
||||
last_angle = current_angle;
|
||||
|
||||
Reference in New Issue
Block a user