mirror of
https://github.com/rfivet/stm32bringup.git
synced 2025-10-22 10:34:01 -04:00
Activate warnings: -pedantic, -Wstrict-prototypes and -Wno-unused-parameter.
This commit is contained in:
6
ledon.c
6
ledon.c
@@ -1,9 +1,9 @@
|
||||
/* ledon.c -- user LED on
|
||||
** Copyright (c) 2020 Renaud Fivet
|
||||
** Copyright (c) 2020-2021 Renaud Fivet
|
||||
*/
|
||||
|
||||
/* Memory locations defined by linker script */
|
||||
extern long __StackTop ; /* &__StackTop points after end of stack */
|
||||
void __StackTop( void) ; /* __StackTop points after end of stack */
|
||||
void Reset_Handler( void) ; /* Entry point for execution */
|
||||
|
||||
/* Interrupt vector table:
|
||||
@@ -13,7 +13,7 @@ void Reset_Handler( void) ; /* Entry point for execution */
|
||||
*/
|
||||
typedef void (*isr_p)( void) ;
|
||||
isr_p const isr_vector[ 2] __attribute__((section(".isr_vector"))) = {
|
||||
(isr_p) &__StackTop,
|
||||
__StackTop,
|
||||
/* System Exceptions */
|
||||
Reset_Handler
|
||||
} ;
|
||||
|
Reference in New Issue
Block a user