Revision d54d2f07 Target/Modules/PowerManagement_1-1/Boot/main.c
Target/Modules/PowerManagement_1-1/Boot/main.c | ||
---|---|---|
193 | 193 |
|
194 | 194 |
const blCallbackTable_t cbtable __attribute__ ((section ("_callback_table"))) = { |
195 | 195 |
.magicNumber = BL_MAGIC_NUMBER, |
196 |
.vBootloader = {BL_VERSION_ID_AMiRoBLT_Release, BL_VERSION_MAJOR, BL_VERSION_MINOR, 1},
|
|
196 |
.vBootloader = {BL_VERSION_ID_AMiRoBLT_Release, BL_VERSION_MAJOR, BL_VERSION_MINOR, 0},
|
|
197 | 197 |
.vSSSP = {BL_VERSION_ID_SSSP, SSSP_VERSION_MAJOR, SSSP_VERSION_MINOR, 0}, |
198 | 198 |
.vCompiler = {BL_VERSION_ID_GCC, __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__}, // currently only GCC is supported |
199 | 199 |
.cbShutdownHibernate = blCallbackShutdownHibernate, |
... | ... | |
893 | 893 |
uint32_t currentTime = loopStartTime; |
894 | 894 |
while (1) |
895 | 895 |
{ |
896 |
/* make the LED "double-blink" */ |
|
897 |
saTimerUpdate(¤tTime); |
|
898 |
if (currentTime < loopStartTime + 50) { |
|
899 |
setLed(BLT_TRUE); |
|
900 |
} else if (currentTime < loopStartTime + 50+100) { |
|
901 |
setLed(BLT_FALSE); |
|
902 |
} else if (currentTime < loopStartTime + 50+100+50) { |
|
903 |
setLed(BLT_TRUE); |
|
904 |
} else if (currentTime < loopStartTime + 50+100+50+300) { |
|
905 |
setLed(BLT_FALSE); |
|
906 |
} else { |
|
907 |
loopStartTime = currentTime; |
|
908 |
} |
|
896 |
// /* make the LED "double-blink" */
|
|
897 |
// saTimerUpdate(¤tTime);
|
|
898 |
// if (currentTime < loopStartTime + 50) {
|
|
899 |
// setLed(BLT_TRUE);
|
|
900 |
// } else if (currentTime < loopStartTime + 50+100) {
|
|
901 |
// setLed(BLT_FALSE);
|
|
902 |
// } else if (currentTime < loopStartTime + 50+100+50) {
|
|
903 |
// setLed(BLT_TRUE);
|
|
904 |
// } else if (currentTime < loopStartTime + 50+100+50+300) {
|
|
905 |
// setLed(BLT_FALSE);
|
|
906 |
// } else {
|
|
907 |
// loopStartTime = currentTime;
|
|
908 |
// }
|
|
909 | 909 |
|
910 | 910 |
/* run the bootloader task */ |
911 | 911 |
BootTask(); |
Also available in: Unified diff