Changes to timers API
authorNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 27 Sep 2016 22:11:56 +0000 (00:11 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Sat, 11 Feb 2023 04:06:55 +0000 (05:06 +0100)
pwm/main.c

index 74f5de5..f3825d6 100644 (file)
@@ -107,8 +107,10 @@ int main(void)
        uprintf(UART0, "Timer started\n");
 
        while (1) {
+               uint32_t val = 0;
                msleep(100);
-               uprintf(UART0, "Timer value: %d\n", timer_get_counter_val(LPC_SCT));
+               timer_get_counter_val(LPC_SCT, &val);
+               uprintf(UART0, "Timer value: %d\n", val);
        }
        return 0;
 }