File tree Expand file tree Collapse file tree 4 files changed +72
-5
lines changed
secure_boot_and_secure_firmware_upgrade_over_canfd/boot.X Expand file tree Collapse file tree 4 files changed +72
-5
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -77,6 +77,18 @@ void BOOT_DEMO_Initialize(void)
7777
7878}
7979
80+ static void VerifyingApplicationIndicator (bool verifying )
81+ {
82+ if (verifying )
83+ {
84+ IO_RE6_SetHigh (); //LED6 on
85+ }
86+ else
87+ {
88+ IO_RE6_SetLow (); //LED6 off
89+ }
90+ }
91+
8092/*******************************************************************************
8193 * The check to see if you want to update or not is somewhat complex. Below
8294 * is a list of the conditions when an update is required:
@@ -182,12 +194,16 @@ void BOOT_DEMO_Tasks(void)
182194 }
183195 else
184196 {
197+ VerifyingApplicationIndicator (true);
198+
185199 UpdateFromDownload ();
186200
187201 if ( executionImageRequiresValidation == true )
188202 {
189203 executionImageValid = BOOT_ImageVerify (EXECUTION_IMAGE );
190204 }
205+
206+ VerifyingApplicationIndicator (false);
191207
192208 if (executionImageValid == false)
193209 {
Original file line number Diff line number Diff line change 196196 */
197197#define IO_RD15_SetDigitalOutput () (_TRISD15 = 0)
198198
199+ /**
200+ * @ingroup pinsdriver
201+ * @brief Sets the RE6 GPIO Pin which has a custom name of IO_RE6 to High
202+ * @pre The RE6 must be set as Output Pin
203+ * @param none
204+ * @return none
205+ */
206+ #define IO_RE6_SetHigh () (_LATE6 = 1)
207+
208+ /**
209+ * @ingroup pinsdriver
210+ * @brief Sets the RE6 GPIO Pin which has a custom name of IO_RE6 to Low
211+ * @pre The RE6 must be set as Output Pin
212+ * @param none
213+ * @return none
214+ */
215+ #define IO_RE6_SetLow () (_LATE6 = 0)
216+
217+ /**
218+ * @ingroup pinsdriver
219+ * @brief Toggles the RE6 GPIO Pin which has a custom name of IO_RE6
220+ * @pre The RE6 must be set as Output Pin
221+ * @param none
222+ * @return none
223+ */
224+ #define IO_RE6_Toggle () (_LATE6 ^= 1)
225+
226+ /**
227+ * @ingroup pinsdriver
228+ * @brief Reads the value of the RE6 GPIO Pin which has a custom name of IO_RE6
229+ * @param none
230+ * @return none
231+ */
232+ #define IO_RE6_GetValue () _RE6
233+
234+ /**
235+ * @ingroup pinsdriver
236+ * @brief Configures the RE6 GPIO Pin which has a custom name of IO_RE6 as Input
237+ * @param none
238+ * @return none
239+ */
240+ #define IO_RE6_SetDigitalInput () (_TRISE6 = 1)
241+
242+ /**
243+ * @ingroup pinsdriver
244+ * @brief Configures the RE6 GPIO Pin which has a custom name of IO_RE6 as Output
245+ * @param none
246+ * @return none
247+ */
248+ #define IO_RE6_SetDigitalOutput () (_TRISE6 = 0)
249+
199250/**
200251 * @ingroup pinsdriver
201252 * @brief Sets the RE9 GPIO Pin which has a custom name of IO_RE9 to High
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ void PINS_Initialize(void)
6262 TRISB = 0xFFFF ;
6363 TRISC = 0x77FF ;
6464 TRISD = 0x7FFF ;
65- TRISE = 0xBDFF ;
65+ TRISE = 0xBDBF ;
6666 TRISF = 0xFFFF ;
6767
6868
You can’t perform that action at this time.
0 commit comments