Skip to content

[startup.c] missing __NO_RETURN in Default_Handler declaration #234

@tarek-bochkati

Description

@tarek-bochkati

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 ?

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions