Revision d54d2f07 Target/Modules/LightRing_1-0/Boot/main.c
Target/Modules/LightRing_1-0/Boot/main.c | ||
---|---|---|
42 | 42 |
#include "AMiRo/amiroblt.h" |
43 | 43 |
#include "AMiRo/helper.h" |
44 | 44 |
|
45 |
|
|
46 | 45 |
/**************************************************************************************** |
47 | 46 |
* Defines |
48 | 47 |
****************************************************************************************/ |
... | ... | |
140 | 139 |
|
141 | 140 |
const blCallbackTable_t cbtable __attribute__ ((section ("_callback_table"))) = { |
142 | 141 |
.magicNumber = BL_MAGIC_NUMBER, |
143 |
.vBootloader = {BL_VERSION_ID_AMiRoBLT_Release, BL_VERSION_MAJOR, BL_VERSION_MINOR, 1},
|
|
142 |
.vBootloader = {BL_VERSION_ID_AMiRoBLT_Release, BL_VERSION_MAJOR, BL_VERSION_MINOR, 0},
|
|
144 | 143 |
.vSSSP = {BL_VERSION_ID_SSSP, SSSP_VERSION_MAJOR, SSSP_VERSION_MINOR, 0}, |
145 | 144 |
.vCompiler = {BL_VERSION_ID_GCC, __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__}, // currently only GCC is supported |
146 | 145 |
.cbShutdownHibernate = blCallbackShutdownHibernate, |
... | ... | |
659 | 658 |
uint32_t currentTime = loopStartTime; |
660 | 659 |
while (1) |
661 | 660 |
{ |
662 |
/* make the pseudo LED "double-blink" */ |
|
663 |
saTimerUpdate(¤tTime); |
|
664 |
if (currentTime < loopStartTime + 50) { |
|
665 |
setLed(BLT_TRUE); |
|
666 |
} else if (currentTime < loopStartTime + 50+100) { |
|
667 |
setLed(BLT_FALSE); |
|
668 |
} else if (currentTime < loopStartTime + 50+100+50) { |
|
669 |
setLed(BLT_TRUE); |
|
670 |
} else if ( currentTime < loopStartTime + 50+100+50+300) { |
|
671 |
setLed(BLT_FALSE); |
|
672 |
} else { |
|
673 |
loopStartTime = currentTime; |
|
674 |
} |
|
661 |
// /* make the pseudo LED "double-blink" */
|
|
662 |
// saTimerUpdate(¤tTime);
|
|
663 |
// if (currentTime < loopStartTime + 50) {
|
|
664 |
// setLed(BLT_TRUE);
|
|
665 |
// } else if (currentTime < loopStartTime + 50+100) {
|
|
666 |
// setLed(BLT_FALSE);
|
|
667 |
// } else if (currentTime < loopStartTime + 50+100+50) {
|
|
668 |
// setLed(BLT_TRUE);
|
|
669 |
// } else if ( currentTime < loopStartTime + 50+100+50+300) {
|
|
670 |
// setLed(BLT_FALSE);
|
|
671 |
// } else {
|
|
672 |
// loopStartTime = currentTime;
|
|
673 |
// }
|
|
675 | 674 |
|
676 | 675 |
/* run the bootloader task */ |
677 | 676 |
BootTask(); |
Also available in: Unified diff