projects
/
hackover2013-badge-firmware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1cca029
)
CLKDIV-Durchlauf für Sync zum Messen.
author
Wintermute
<wintermute@hannover.ccc.de>
Sun, 13 Oct 2013 02:25:22 +0000
(
04:25
+0200)
committer
Wintermute
<wintermute@hannover.ccc.de>
Sun, 13 Oct 2013 02:25:22 +0000
(
04:25
+0200)
badge/main.c
patch
|
blob
|
history
diff --git
a/badge/main.c
b/badge/main.c
index
cb7966b
..
5f7fde3
100644
(file)
--- a/
badge/main.c
+++ b/
badge/main.c
@@
-203,11
+203,19
@@
int main(void)
badge_init();
#endif
badge_init();
#endif
-#ifdef HOB_REV2
- gpioSetValue(HOB_PORT(HOB_LED_LEFT), HOB_PIN(HOB_LED_LEFT), 1);
- systickDelay(1000);
- gpioSetValue(HOB_PORT(HOB_LED_RIGHT), HOB_PIN(HOB_LED_RIGHT), 1);
-#endif
+ for(uint8_t i = 1; ; ++i) {
+ badge_framebuffer fb = { { { 0 } } };
+
+ fb.data[2][86] = 0xff;
+ fb.data[4][86] = 0xff;
+ for(uint8_t j = 0; j < i; j += 3) {
+ fb.data[3][j / 3] = 0xff;
+ }
+
+ SCB_CLKOUTCLKDIV = i;
+ badge_framebuffer_flush(&fb);
+ systickDelay(200);
+ }
{
// f_mkfs(0, 1, 0);
{
// f_mkfs(0, 1, 0);
This page took
0.023876 seconds
and
4
git commands to generate.