Revision fc7151bb Target/Modules/LightRing_1-0/Boot/hooks.c

View differences:

Target/Modules/LightRing_1-0/Boot/hooks.c
40 40
#include "stm32f10x_conf.h"                      /* STM32 peripheral drivers           */
41 41
#endif
42 42

  
43
/****************************************************************************************
44
*   B A C K D O O R   E N T R Y   H O O K   F U N C T I O N S
45
****************************************************************************************/
46

  
47
#if (BOOT_BACKDOOR_HOOKS_ENABLE > 0)
48

  
43 49
enum BOOT_STATE {BOOT_FLASH_WAIT,
44 50
                 BOOT_OS_SYNC,
45 51
                 BOOT_OS_START
......
50 56
#define SYS_SYNC_N_PIN    GPIO_Pin_2
51 57
#define SYS_SYNC_N_GPIO   GPIOD
52 58

  
53
/****************************************************************************************
54
*   B A C K D O O R   E N T R Y   H O O K   F U N C T I O N S
55
****************************************************************************************/
56

  
57
#if (BOOT_BACKDOOR_HOOKS_ENABLE > 0)
58

  
59 59
/************************************************************************************//**
60 60
** \brief     Initializes the backdoor entry option.
61 61
** \return    none.
......
72 72
** \return    BLT_TRUE if the backdoor entry is requested, BLT_FALSE otherwise.
73 73
**
74 74
****************************************************************************************/
75
blt_bool BackDoorEntryCheck(void) {
75
blt_bool BackDoorEntryCheck(void)
76
{
76 77
  /* evaluate the fsm state */
77 78
  switch (boot_state) {
78 79
    case BOOT_FLASH_WAIT:
......
88 89
      break;
89 90
    }
90 91
    default:
91
      BLT_FALSE;
92
      return BLT_FALSE;
92 93
      break;
93 94
  }
94 95
  return BLT_FALSE;
95
}
96
} /*** end of BackDoorEntryCheck ***/
96 97

  
97 98
/************************************************************************************//**
98 99
** \brief     Checks if a backdoor entry is requested.

Also available in: Unified diff