From 4c0af28be101681c9e8acbc22ac87e57c829892c Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Wed, 28 Sep 2016 00:11:56 +0200 Subject: [PATCH] Changes to timers API --- pwm/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.43.0