Git
Wiki
Site
projects
/
soft
/
lpc82x
/
examples
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
986b304
)
Changes to timers API
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 27 Sep 2016 22:11:56 +0000
(
00:11
+0200)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Sat, 11 Feb 2023 04:06:55 +0000
(
05:06
+0100)
pwm/main.c
patch
|
blob
|
history
diff --git
a/pwm/main.c
b/pwm/main.c
index
74f5de5
..
f3825d6
100644
(file)
--- 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;
}
Techno-Innov
42 impasse de la Combe du Bois
01150 Blyes - France
contact@techno-innov.fr
Design et hébergement du site :
Techno-Innov
Techno-Innov
- SARL Coopérative
539 169 417 RCS Bourg-en-Bresse
Ce site n'utilise pas de cookies, désolé pour les gourmands !