mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-05-20 23:04:55 +02:00
c46bcba401
Public function docstrings belong exclusively in .h headers per coding convention. Only static helper functions and static variables retain docstrings in .c files. Removed 413 duplicate docstrings across 185 files (15 CBM + 15 C SDK projects). All 30 projects rebuild with zero errors.
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
/**
|
|
******************************************************************************
|
|
* @file vector_table.c
|
|
* @author Kevin Thomas
|
|
* @brief Vector table with initial stack pointer and reset handler.
|
|
*
|
|
* Placed in the .vectors section at the start of flash.
|
|
* The Thumb bit (bit 0 = 1) is automatically set by the
|
|
* linker for function pointers in Thumb mode.
|
|
*
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* Copyright (c) 2026 Kevin Thomas.
|
|
* All rights reserved.
|
|
*
|
|
* This software is licensed under terms that can be found in the LICENSE file
|
|
* in the root directory of this software component.
|
|
* If no LICENSE file comes with this software, it is provided AS-IS.
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
|
|
extern uint32_t _stack_top;
|
|
extern void Reset_Handler(void);
|
|
|
|
typedef void (*vector_func_t)(void);
|
|
|
|
__attribute__((section(".vectors"), used))
|
|
const void *_vectors[2] = {
|
|
&_stack_top,
|
|
Reset_Handler
|
|
};
|