Skip to content

File startup_ch32v307.c

FileList > ch32v307 > startup_ch32v307.c

Go to the source code of this file

Bare-metal startup code and vector table for WCH CH32V307VCT6 (QingKe V4F RISC-V).

  • #include <stdint.h>

Public Attributes

Type Name
uint32_t _ebss
End address of uninitialized data section in RAM.
uint32_t _edata
End address of initialized data section in RAM.
uint32_t _estack
Initial top of stack address in RAM.
uint32_t _sbss
Start address of uninitialized data section in RAM.
uint32_t _sdata
Start address of initialized data section in RAM.
uint32_t _sidata
Start address of initialized data section in Flash.

Public Functions

Type Name
SYN_ISR_ATTR void Default_Handler (void)
Default unhandled exception/interrupt catch handler.
SYN_ISR_ATTR void NMI_Handler (void)
Non-Maskable Interrupt (NMI) handler.
void Reset_Handler (void)
MCU Reset handler — initializes memory sections and jumps to main() .
int main (void)
Main application entry point function declaration.

Macros

Type Name
define SYN_ISR_ATTR

Public Attributes Documentation

variable _ebss

End address of uninitialized data section in RAM.

uint32_t _ebss;


variable _edata

End address of initialized data section in RAM.

uint32_t _edata;


variable _estack

Initial top of stack address in RAM.

uint32_t _estack;


variable _sbss

Start address of uninitialized data section in RAM.

uint32_t _sbss;


variable _sdata

Start address of initialized data section in RAM.

uint32_t _sdata;


variable _sidata

Start address of initialized data section in Flash.

uint32_t _sidata;


Public Functions Documentation

function Default_Handler

Default unhandled exception/interrupt catch handler.

SYN_ISR_ATTR void Default_Handler (
    void
) 


function NMI_Handler

Non-Maskable Interrupt (NMI) handler.

SYN_ISR_ATTR void NMI_Handler (
    void
) 


function Reset_Handler

MCU Reset handler — initializes memory sections and jumps to main() .

void Reset_Handler (
    void
) 


function main

Main application entry point function declaration.

int main (
    void
) 

Returns:

Exit status code.


Macro Definition Documentation

define SYN_ISR_ATTR

#define SYN_ISR_ATTR 


The documentation for this class was generated from the following file src/port/ch32v307/startup_ch32v307.c