Removede FIFO Irq, Addded function for measuring and controlling motor speed

This commit is contained in:
GabrielKoppenstein committed 2021-09-22 17:04:16 +02:00
1 parent fc639b765e
commit 072f380b1d
3 files changed
+3 -1

No files matched your search

+1
View File
@@ -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