-
Notifications
You must be signed in to change notification settings - Fork 130
Open
Labels
questionFurther information is requestedFurther information is requested
Description
In the proposed C startup template:
both Reset_Handler and Default_Handler prototypes have the __NO_RETURN attribute
CMSIS_6/CMSIS/Core/Template/Device_M/Source/startup_Device.c
Lines 42 to 46 in cc94f66
| /*--------------------------------------------------------------------------- | |
| 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
CMSIS_6/CMSIS/Core/Template/Device_M/Source/startup_Device.c
Lines 110 to 114 in cc94f66
| /*--------------------------------------------------------------------------- | |
| Reset Handler called on controller reset | |
| *---------------------------------------------------------------------------*/ | |
| __NO_RETURN void Reset_Handler(void) | |
| { |
the Default_Handler is without __NO_RETURN attribute
CMSIS_6/CMSIS/Core/Template/Device_M/Source/startup_Device.c
Lines 144 to 148 in cc94f66
| /*--------------------------------------------------------------------------- | |
| Default Handler for Exceptions / Interrupts | |
| *---------------------------------------------------------------------------*/ | |
| void Default_Handler(void) | |
| { |
is this what it was intended to be, or __NO_RETURN attribute is just missing ?
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested