Revision d54d2f07 Target/Modules/DiWheelDrive_1-1/Boot/main.c

View differences:

Target/Modules/DiWheelDrive_1-1/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
****************************************************************************************/
......
170 169

  
171 170
const blCallbackTable_t cbtable __attribute__ ((section ("_callback_table"))) = {
172 171
  .magicNumber = BL_MAGIC_NUMBER,
173
  .vBootloader = {BL_VERSION_ID_AMiRoBLT_Release, BL_VERSION_MAJOR, BL_VERSION_MINOR, 1},
172
  .vBootloader = {BL_VERSION_ID_AMiRoBLT_Release, BL_VERSION_MAJOR, BL_VERSION_MINOR, 0},
174 173
  .vSSSP = {BL_VERSION_ID_SSSP, SSSP_VERSION_MAJOR, SSSP_VERSION_MINOR, 0},
175 174
  .vCompiler = {BL_VERSION_ID_GCC, __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__},  // currently only GCC is supported
176 175
  .cbShutdownHibernate = blCallbackShutdownHibernate,
......
797 796
      uint32_t currentTime = loopStartTime;
798 797
      while (1)
799 798
      {
800
        /* make the LED "double-blink" */
801
        saTimerUpdate(&currentTime);
802
        if (currentTime < loopStartTime + 50) {
803
          setLed(BLT_TRUE);
804
        } else if (currentTime < loopStartTime + 50+100) {
805
          setLed(BLT_FALSE);
806
        } else if (currentTime < loopStartTime + 50+100+50) {
807
          setLed(BLT_TRUE);
808
        } else if ( currentTime < loopStartTime + 50+100+50+300) {
809
          setLed(BLT_FALSE);
810
        } else {
811
          loopStartTime = currentTime;
812
        }
799
//        /* make the LED "double-blink" */
800
//        saTimerUpdate(&currentTime);
801
//        if (currentTime < loopStartTime + 50) {
802
//          setLed(BLT_TRUE);
803
//        } else if (currentTime < loopStartTime + 50+100) {
804
//          setLed(BLT_FALSE);
805
//        } else if (currentTime < loopStartTime + 50+100+50) {
806
//          setLed(BLT_TRUE);
807
//        } else if ( currentTime < loopStartTime + 50+100+50+300) {
808
//          setLed(BLT_FALSE);
809
//        } else {
810
//          loopStartTime = currentTime;
811
//        }
813 812

  
814 813
        /* run the bootloader task */
815 814
        BootTask();

Also available in: Unified diff