projects
/
hackover2013-badge-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prep for v1.2.0
[hackover2013-badge-firmware.git]
/
main.c
diff --git
a/main.c
b/main.c
index
8ca68e0
..
80c0e8e
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-7,7
+7,7
@@
Software License Agreement (BSD License)
Software License Agreement (BSD License)
- Copyright (c) 201
2
, microBuilder SARL
+ Copyright (c) 201
1
, microBuilder SARL
All rights reserved.
Redistribution and use in source and binary forms, with or without
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@
-36,7
+36,6
@@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <time.h>
#include "projectconfig.h"
#include "sysinit.h"
#include "projectconfig.h"
#include "sysinit.h"
@@
-61,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
@@
-69,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,
lastSecond % 2
);
}
// 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.018719 seconds
and
4
git commands to generate.