MCCI Trusted Bootloader
Simple trusted bootloader and tools for small embedded systems
mccibootloaderboard_catena1sj_annunciator.c
Go to the documentation of this file.
1/*
2
3Module: mccibootloaderboard_catena1sj_annunciator.c
4
5Function:
6 Annunciator (LED flashing) functions for 1SJ-based Catena boards.
7
8Copyright and License:
9 This file copyright (C) 2026 by
10
11 MCCI Corporation
12 3520 Krums Corners Road
13 Ithaca, NY 14850
14
15 See accompanying LICENSE file for copyright and license information.
16
17Author:
18 Terry Moore, MCCI Corporation March 2026
19
20*/
21
23
24#include "mcci_bootloader.h"
26␌
27/****************************************************************************\
28|
29| Manifest constants & typedefs.
30|
31\****************************************************************************/
32
33
34
35/****************************************************************************\
36|
37| Read-only data.
38|
39\****************************************************************************/
40
41
42
43/****************************************************************************\
44|
45| Variables.
46|
47\****************************************************************************/
48
49␌
50/*
51
52Name: McciBootloaderBoard_Catena1sj_annunciatorInit()
53
54Function:
55 Initialize the annunciator for Catena 1sj boards.
56
57Definition:
58 McciBootloaderPlatform_AnnunciatorInitFn_t
59 McciBootloaderBoard_Catena1sj_annunciatorInit;
60
61 void McciBootloaderBoard_Catena1sj_annunciatorInit(
62 void
63 );
64
65Description:
66 Set up the LED that displays system boot status.
67
68Returns:
69 No explicit result
70
71Notes:
72 Uses the 2026-era opt-in McciBootloader_LED_Annunciator_t framework.
73
74 Note that interrupts are enabled here. So if you call this and never
75 come back, look for hot interrupt problems.
76
77*/
78
79void
81 void
82 )
83 {
85
86 // enable interrupts.
87 McciArm_setPRIMASK(0);
88 }
89␌
90/*
91
92Name: McciBootloaderBoard_Catena1sj_annunciatorIndicateState()
93
94Function:
95 Platform method for "indicate state".
96
97Definition:
98 McciBootloaderPlatform_AnnunciatorIndicateStateFn_t
99 McciBootloaderBoard_Catena1sj_annunciatorIndicateState;
100
101 void McciBootloaderBoard_Catena1sj_annunciatorIndicateState(
102 McciBootloaderState_t state
103 );
104
105Description:
106 This function just maps the state indication to the opt-in LED
107 annunciator. The binary value of the state is flashed on the LED
108 (if there's time -- quick state changes may never show up).
109
110Returns:
111 No explicit result.
112
113Notes:
114 This assumes that McciBootloaderBoard_Catena1sj_annunciatorHandleSysTick()
115 calls McciBootloader_LED_handleSysTick() and updates
116 the LED state appropriately.
117
118*/
119
120void
127
128void
140
141/**** end of mccibootloaderboard_catena1sj_annunciator.c ****/
void McciBootloaderBoard_Catena1sj_setLed(void)
McciBootloaderPlatform_AnnunciatorIndicateStateFn_t McciBootloaderBoard_Catena1sj_annunciatorIndicateState
void McciBootloaderBoard_Catena1sj_clearLed(void)
uint32_t McciBootloaderState_t
Current boot system state.
void McciBootloader_LED_annunciatorIndicateState(McciBootloaderState_t state)
void McciBootloader_LED_annunciatorInit(void)
bool McciBootloader_LED_handleSysTick(void)
void McciBootloaderBoard_Catena1sj_annunciatorHandleSysTick(void)
void McciBootloaderBoard_Catena1sj_annunciatorInit(void)