added nrf54l15 as target

This commit is contained in:
2025-12-18 11:42:29 +01:00
parent d02d2f24e1
commit 2cfd32abaf
13 changed files with 122 additions and 40 deletions

View File

@@ -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;