In the proposed C startup template:
both Reset_Handler and Default_Handler prototypes have the __NO_RETURN attribute
|
/*--------------------------------------------------------------------------- |
|
Internal References |
|
*---------------------------------------------------------------------------*/ |
|
__NO_RETURN void Reset_Handler (void); |
|
__NO_RETURN void Default_Handler(void); |
but when implemented only the Reset_Handler still showcase the __NO_RETURN attribute
|
/*--------------------------------------------------------------------------- |
|
Reset Handler called on controller reset |
|
*---------------------------------------------------------------------------*/ |
|
__NO_RETURN void Reset_Handler(void) |
|
{ |
the Default_Handler is without __NO_RETURN attribute
|
/*--------------------------------------------------------------------------- |
|
Default Handler for Exceptions / Interrupts |
|
*---------------------------------------------------------------------------*/ |
|
void Default_Handler(void) |
|
{ |
is this what it was intended to be, or __NO_RETURN attribute is just missing ?
In the proposed C startup template:
both
Reset_HandlerandDefault_Handlerprototypes have the__NO_RETURNattributeCMSIS_6/CMSIS/Core/Template/Device_M/Source/startup_Device.c
Lines 42 to 46 in cc94f66
but when implemented only the
Reset_Handlerstill showcase the__NO_RETURNattributeCMSIS_6/CMSIS/Core/Template/Device_M/Source/startup_Device.c
Lines 110 to 114 in cc94f66
the
Default_Handleris without__NO_RETURNattributeCMSIS_6/CMSIS/Core/Template/Device_M/Source/startup_Device.c
Lines 144 to 148 in cc94f66
is this what it was intended to be, or
__NO_RETURNattribute is just missing ?