From: Nathael Pajani Date: Tue, 27 Sep 2016 22:11:56 +0000 (+0200) Subject: Changes to timers API X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=4c0af28be101681c9e8acbc22ac87e57c829892c;p=soft%2Flpc82x%2Fexamples Changes to timers API --- diff --git a/pwm/main.c b/pwm/main.c index 74f5de5..f3825d6 100644 --- a/pwm/main.c +++ b/pwm/main.c @@ -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; }