projects
/
hackover2013-badge-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switched row and col
[hackover2013-badge-firmware.git]
/
main.c
diff --git
a/main.c
b/main.c
index
6d5c158
..
8cff6f6
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-60,7
+60,7
@@
int main(void)
uint32_t currentSecond, lastSecond;
currentSecond = lastSecond = 0;
uint32_t currentSecond, lastSecond;
currentSecond = lastSecond = 0;
-
+
while (1)
{
// Toggle LED once per second
while (1)
{
// Toggle LED once per second
@@
-68,7
+68,7
@@
int main(void)
if (currentSecond != lastSecond)
{
lastSecond = currentSecond;
if (currentSecond != lastSecond)
{
lastSecond = currentSecond;
- gpioSetValue(CFG_LED_PORT, CFG_LED_PIN,
~
(gpioGetValue(CFG_LED_PORT, CFG_LED_PIN)));
+ gpioSetValue(CFG_LED_PORT, CFG_LED_PIN,
!
(gpioGetValue(CFG_LED_PORT, CFG_LED_PIN)));
}
// Poll for CLI input if CFG_INTERFACE is enabled in projectconfig.h
}
// Poll for CLI input if CFG_INTERFACE is enabled in projectconfig.h
This page took
0.025086 seconds
and
4
git commands to generate.