Skip to content

Commit 10a53fa

Browse files
author
QL
committed
6.8.1
1 parent c59dc69 commit 10a53fa

File tree

125 files changed

+1523
-105375
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+1523
-105375
lines changed

3rd_party/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ LOSSES.
6161
Contact Information:
6262
====================
6363
Quantum Leaps, LLC
64-
https://state-machine.com
64+
https://www.state-machine.com
6565
6666

3rd_party/efm32pg1b/gnu/startup_efm32pg1b.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ extern int __stack_end__;
5454
* assembly to avoid accessing the stack, which might be corrupted by
5555
* the time assert_failed is called.
5656
*/
57-
__attribute__ ((naked)) void assert_failed(char const *module, int loc);
57+
__attribute__ ((naked, noreturn))
58+
void assert_failed(char const *module, int loc);
5859

5960
/* Function prototypes -----------------------------------------------------*/
6061
void Default_Handler(void); /* Default empty handler */
6162
void Reset_Handler(void); /* Reset Handler */
6263
void SystemInit(void); /* CMSIS system initialization */
64+
__attribute__ ((noreturn))
6365
void Q_onAssert(char const *module, int loc); /* QP assertion handler */
6466

6567
/*----------------------------------------------------------------------------
@@ -281,7 +283,7 @@ void Default_Handler(void) {
281283
*
282284
* NOTE: the function Q_onAssert should NOT return.
283285
*****************************************************************************/
284-
__attribute__ ((naked))
286+
__attribute__ ((naked, noreturn))
285287
void assert_failed(char const *module, int loc) {
286288
/* re-set the SP in case of stack overflow */
287289
__asm volatile (

3rd_party/ek-lm3s6965/gnu/startup_LM3S6965.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ extern int __stack_end__;
5454
* assembly to avoid accessing the stack, which might be corrupted by
5555
* the time assert_failed is called.
5656
*/
57-
__attribute__ ((naked)) void assert_failed(char const *module, int loc);
57+
__attribute__ ((naked, noreturn))
58+
void assert_failed(char const *module, int loc);
5859

5960
/* Function prototypes -----------------------------------------------------*/
6061
void Default_Handler(void); /* Default empty handler */
6162
void Reset_Handler(void); /* Reset Handler */
6263
void SystemInit(void); /* CMSIS system initialization */
64+
__attribute__ ((noreturn))
6365
void Q_onAssert(char const *module, int loc); /* QP assertion handler */
6466

6567
/*----------------------------------------------------------------------------
@@ -314,7 +316,7 @@ void Default_Handler(void) {
314316
*
315317
* NOTE: the function Q_onAssert should NOT return.
316318
*****************************************************************************/
317-
__attribute__ ((naked))
319+
__attribute__ ((naked, noreturn))
318320
void assert_failed(char const *module, int loc) {
319321
/* re-set the SP in case of stack overflow */
320322
__asm volatile (

3rd_party/ek-tm4c123gxl/gnu/startup_TM4C123GH6PM.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ extern int __stack_end__;
5454
* assembly to avoid accessing the stack, which might be corrupted by
5555
* the time assert_failed is called.
5656
*/
57-
__attribute__ ((naked)) void assert_failed(char const *module, int loc);
57+
__attribute__ ((naked, noreturn))
58+
void assert_failed(char const *module, int loc);
5859

5960
/* Function prototypes -----------------------------------------------------*/
6061
void Default_Handler(void); /* Default empty handler */
6162
void Reset_Handler(void); /* Reset Handler */
6263
void SystemInit(void); /* CMSIS system initialization */
64+
__attribute__ ((noreturn))
6365
void Q_onAssert(char const *module, int loc); /* QP assertion handler */
6466

6567
/*----------------------------------------------------------------------------
@@ -471,7 +473,7 @@ void Default_Handler(void) {
471473
*
472474
* NOTE: the function Q_onAssert should NOT return.
473475
*****************************************************************************/
474-
__attribute__ ((naked))
476+
__attribute__ ((naked, noreturn))
475477
void assert_failed(char const *module, int loc) {
476478
/* re-set the SP in case of stack overflow */
477479
__asm volatile (

3rd_party/mbed-lpc1768/gnu/startup_LPC17xx.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,14 @@ extern int __stack_end__;
5353
* assembly to avoid accessing the stack, which might be corrupted by
5454
* the time assert_failed is called.
5555
*/
56-
__attribute__ ((naked)) void assert_failed(char const *module, int loc);
56+
__attribute__ ((naked, noreturn))
57+
void assert_failed(char const *module, int loc);
5758

5859
/* Function prototypes -----------------------------------------------------*/
5960
void Default_Handler(void); /* Default empty handler */
6061
void Reset_Handler(void); /* Reset Handler */
6162
void SystemInit(void); /* CMSIS system initialization */
63+
__attribute__ ((noreturn))
6264
void Q_onAssert(char const *module, int loc); /* QP assertion handler */
6365

6466
/*----------------------------------------------------------------------------
@@ -294,7 +296,7 @@ void Default_Handler(void) {
294296
*
295297
* NOTE: the function Q_onAssert should NOT return.
296298
*****************************************************************************/
297-
__attribute__ ((naked))
299+
__attribute__ ((naked, noreturn))
298300
void assert_failed(char const *module, int loc) {
299301
/* re-set the SP in case of stack overflow */
300302
__asm volatile (

3rd_party/nucleo-h743zi/gnu/startup_stm32h743xx.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ extern int __stack_end__;
5454
* assembly to avoid accessing the stack, which might be corrupted by
5555
* the time assert_failed is called.
5656
*/
57-
__attribute__ ((naked)) void assert_failed(char const *module, int loc);
57+
__attribute__ ((naked, noreturn))
58+
void assert_failed(char const *module, int loc);
5859

5960
/* Function prototypes -----------------------------------------------------*/
6061
void Default_Handler(void); /* Default empty handler */
6162
void Reset_Handler(void); /* Reset Handler */
6263
void SystemInit(void); /* CMSIS system initialization */
64+
__attribute__ ((noreturn))
6365
void Q_onAssert(char const *module, int loc); /* QP assertion handler */
6466

6567
/*----------------------------------------------------------------------------
@@ -512,7 +514,7 @@ void Default_Handler(void) {
512514
*
513515
* NOTE: the function Q_onAssert should NOT return.
514516
*****************************************************************************/
515-
__attribute__ ((naked))
517+
__attribute__ ((naked, noreturn))
516518
void assert_failed(char const *module, int loc) {
517519
/* re-set the SP in case of stack overflow */
518520
__asm volatile (

3rd_party/nucleo-l053r8/gnu/startup_stm32l053xx.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ extern int __stack_end__;
5454
* assembly to avoid accessing the stack, which might be corrupted by
5555
* the time assert_failed is called.
5656
*/
57-
__attribute__ ((naked)) void assert_failed(char const *module, int loc);
57+
__attribute__ ((naked, noreturn))
58+
void assert_failed(char const *module, int loc);
5859

5960
/* Function prototypes -----------------------------------------------------*/
6061
void Default_Handler(void); /* Default empty handler */
6162
void Reset_Handler(void); /* Reset Handler */
6263
void SystemInit(void); /* CMSIS system initialization */
64+
__attribute__ ((noreturn))
6365
void Q_onAssert(char const *module, int loc); /* QP assertion handler */
6466

6567
/*----------------------------------------------------------------------------
@@ -284,7 +286,7 @@ void Default_Handler(void) {
284286
*
285287
* NOTE: the function Q_onAssert should NOT return.
286288
*****************************************************************************/
287-
__attribute__ ((naked))
289+
__attribute__ ((naked, noreturn))
288290
void assert_failed(char const *module, int loc) {
289291
/* re-set the SP in case of stack overflow */
290292
__asm volatile (

3rd_party/nucleo-l053r8/llvm/startup_stm32l053xx.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ extern int __stack_end__;
5454
* assembly to avoid accessing the stack, which might be corrupted by
5555
* the time assert_failed is called.
5656
*/
57-
__attribute__ ((naked)) void assert_failed(char const *module, int loc);
57+
__attribute__ ((naked, noreturn))
58+
void assert_failed(char const *module, int loc);
5859

5960
/* Function prototypes -----------------------------------------------------*/
6061
void Default_Handler(void); /* Default empty handler */
6162
void Reset_Handler(void); /* Reset Handler */
6263
void SystemInit(void); /* CMSIS system initialization */
64+
__attribute__ ((noreturn))
6365
void Q_onAssert(char const *module, int loc); /* QP assertion handler */
6466

6567
/*----------------------------------------------------------------------------
@@ -200,7 +202,7 @@ void Reset_Handler(void) {
200202
}
201203
else {
202204
/* call all static constructors in C++ (comment out in C programs) */
203-
__libc_init_array();
205+
//__libc_init_array();
204206
(void)main(); /* application's entry point; should never return! */
205207
}
206208

@@ -284,7 +286,7 @@ void Default_Handler(void) {
284286
*
285287
* NOTE: the function Q_onAssert should NOT return.
286288
*****************************************************************************/
287-
__attribute__ ((naked))
289+
__attribute__ ((naked, noreturn))
288290
void assert_failed(char const *module, int loc) {
289291
/* re-set the SP in case of stack overflow */
290292
__asm volatile (

3rd_party/nucleo-l152re/gnu/startup_stm32l1xx.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ extern int __stack_end__;
5454
* assembly to avoid accessing the stack, which might be corrupted by
5555
* the time assert_failed is called.
5656
*/
57-
__attribute__ ((naked)) void assert_failed(char const *module, int loc);
57+
__attribute__ ((naked, noreturn))
58+
void assert_failed(char const *module, int loc);
5859

5960
/* Function prototypes -----------------------------------------------------*/
6061
void Default_Handler(void); /* Default empty handler */
6162
void Reset_Handler(void); /* Reset Handler */
6263
void SystemInit(void); /* CMSIS system initialization */
64+
__attribute__ ((noreturn))
6365
void Q_onAssert(char const *module, int loc); /* QP assertion handler */
6466

6567
/*----------------------------------------------------------------------------
@@ -339,7 +341,7 @@ void Default_Handler(void) {
339341
*
340342
* NOTE: the function Q_onAssert should NOT return.
341343
*****************************************************************************/
342-
__attribute__ ((naked))
344+
__attribute__ ((naked, noreturn))
343345
void assert_failed(char const *module, int loc) {
344346
/* re-set the SP in case of stack overflow */
345347
__asm volatile (

3rd_party/stm32f4-discovery/gnu/startup_stm32f4xx.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ extern int __stack_end__;
5454
* assembly to avoid accessing the stack, which might be corrupted by
5555
* the time assert_failed is called.
5656
*/
57-
__attribute__ ((naked)) void assert_failed(char const *module, int loc);
57+
__attribute__ ((naked, noreturn))
58+
void assert_failed(char const *module, int loc);
5859

5960
/* Function prototypes -----------------------------------------------------*/
6061
void Default_Handler(void); /* Default empty handler */
6162
void Reset_Handler(void); /* Reset Handler */
6263
void SystemInit(void); /* CMSIS system initialization */
64+
__attribute__ ((noreturn))
6365
void Q_onAssert(char const *module, int loc); /* QP assertion handler */
6466

6567
/*----------------------------------------------------------------------------
@@ -389,7 +391,7 @@ void Default_Handler(void) {
389391
*
390392
* NOTE: the function Q_onAssert should NOT return.
391393
*****************************************************************************/
392-
__attribute__ ((naked))
394+
__attribute__ ((naked, noreturn))
393395
void assert_failed(char const *module, int loc) {
394396
/* re-set the SP in case of stack overflow */
395397
__asm volatile (

0 commit comments

Comments
 (0)