projects
/
hackover2013-badge-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
now it compiles
[hackover2013-badge-firmware.git]
/
main.c
diff --git
a/main.c
b/main.c
index
dbae27d
..
bb2c280
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
1
, microBuilder SARL
+ Copyright (c) 201
2
, 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
@@
-33,19
+33,12
@@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**************************************************************************/
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**************************************************************************/
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-
#include "projectconfig.h"
#include "sysinit.h"
#include "core/gpio/gpio.h"
#include "core/systick/systick.h"
#include "projectconfig.h"
#include "sysinit.h"
#include "core/gpio/gpio.h"
#include "core/systick/systick.h"
-#include "drivers/lcd/tft/hw/ssd1351.h"
-#include "drivers/lcd/tft/drawing.h"
-
#ifdef CFG_INTERFACE
#include "core/cmd/cmd.h"
#endif
#ifdef CFG_INTERFACE
#include "core/cmd/cmd.h"
#endif
@@
-63,9
+56,6
@@
int main(void)
uint32_t currentSecond, lastSecond;
currentSecond = lastSecond = 0;
uint32_t currentSecond, lastSecond;
currentSecond = lastSecond = 0;
-
- lcdInit();
- lcdTest();
while (1)
{
while (1)
{
@@
-74,7
+64,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.026649 seconds
and
4
git commands to generate.