startup.h File Reference
#include <stdint.h>

Go to the source code of this file.

Macros

#define INTERRUPTS_SECTION_START   (uint8_t *)&__interrupts_start__
 define symbols that specific start and end addres of some basic sections. More...
 
#define INTERRUPTS_SECTION_END   (uint8_t *)&__interrupts_end__
 
#define BSS_SECTION_START   (uint8_t *)&__bss_start__
 
#define BSS_SECTION_END   (uint8_t *)&__bss_end__
 
#define DATA_SECTION_START   (uint8_t *)&__data_start__
 
#define DATA_SECTION_END   (uint8_t *)&__data_end__
 
#define CUSTOMSECTION_SECTION_START   (uint8_t *)&__customSection_start__
 
#define CUSTOMSECTION_SECTION_END   (uint8_t *)&__customSection_end__
 
#define CODE_RAM_SECTION_START   (uint8_t *)&__code_ram_start__
 
#define CODE_RAM_SECTION_END   (uint8_t *)&__code_ram_end__
 

Functions

void init_data_bss (void)
 Make necessary initializations for RAM. More...
 

Variables

uint32_t __interrupts_start__
 
uint32_t __interrupts_end__
 
uint32_t __bss_start__
 
uint32_t __bss_end__
 
uint32_t __data_start__
 
uint32_t __data_end__
 
uint32_t __customSection_start__
 
uint32_t __customSection_end__
 
uint32_t __code_ram_start__
 
uint32_t __code_ram_end__
 

Macro Definition Documentation

#define BSS_SECTION_END   (uint8_t *)&__bss_end__

Definition at line 81 of file startup.h.

#define BSS_SECTION_START   (uint8_t *)&__bss_start__

Definition at line 80 of file startup.h.

#define CODE_RAM_SECTION_END   (uint8_t *)&__code_ram_end__

Definition at line 87 of file startup.h.

#define CODE_RAM_SECTION_START   (uint8_t *)&__code_ram_start__

Definition at line 86 of file startup.h.

#define CUSTOMSECTION_SECTION_END   (uint8_t *)&__customSection_end__

Definition at line 85 of file startup.h.

#define CUSTOMSECTION_SECTION_START   (uint8_t *)&__customSection_start__

Definition at line 84 of file startup.h.

#define DATA_SECTION_END   (uint8_t *)&__data_end__

Definition at line 83 of file startup.h.

#define DATA_SECTION_START   (uint8_t *)&__data_start__

Definition at line 82 of file startup.h.

#define INTERRUPTS_SECTION_END   (uint8_t *)&__interrupts_end__

Definition at line 79 of file startup.h.

#define INTERRUPTS_SECTION_START   (uint8_t *)&__interrupts_start__

define symbols that specific start and end addres of some basic sections.

Definition at line 78 of file startup.h.

Function Documentation

void init_data_bss ( void  )

Make necessary initializations for RAM.

  • Copy initialized data from ROM to RAM.
  • Clear the zero-initialized data section.
  • Copy the vector table from ROM to RAM. This could be an option.

Definition at line 92 of file startup.c.

Variable Documentation

uint32_t __bss_end__
uint32_t __bss_start__
uint32_t __code_ram_end__
uint32_t __code_ram_start__
uint32_t __customSection_end__
uint32_t __customSection_start__
uint32_t __data_end__
uint32_t __data_start__
uint32_t __interrupts_end__
uint32_t __interrupts_start__