Removede FIFO Irq, Addded function for measuring and controlling motor speed
This commit is contained in:
1 parent
fc639b765e
commit
072f380b1d
3 files changed
+3
-1
No files matched your search
@@ -284,6 +284,7 @@ void pid_control(){
|
||||
busy_wait_us(10000);
|
||||
}
|
||||
|
||||
|
||||
void init_pwm(uint gpio) {
|
||||
uint slice_num = pwm_gpio_to_slice_num(gpio);
|
||||
uint32_t wrap_counter = 5000; // 5000 Cycles @ 125MHz for 1 Period -> 25kHz
|
||||
|
||||
Reference in new issue
Block a user