miniFOC 1.0.3
This open-source project aims to accomplish a FOC(Field Oriented Control) scheme that is operatable with minimum costs in China.
Functions | Variables
gd32f1x0_it.c File Reference

gd32f1x0 interrupt handler function source file More...

#include "gd32f1x0_it.h"
#include "main.h"

Go to the source code of this file.

Functions

void NMI_Handler (void)
 this function handles NMI exception More...
 
void HardFault_Handler (void)
 this function handles HardFault exception More...
 
void MemManage_Handler (void)
 this function handles MemManage exception More...
 
void BusFault_Handler (void)
 this function handles BusFault exception More...
 
void UsageFault_Handler (void)
 this function handles UsageFault exception More...
 
void SVC_Handler (void)
 this function handles SVC exception More...
 
void DebugMon_Handler (void)
 this function handles DebugMon exception More...
 
void PendSV_Handler (void)
 this function handles PendSV exception More...
 
void SysTick_Handler (void)
 this function handles SysTick exception More...
 
void USART0_IRQHandler (void)
 this function handles USART RBNE interrupt request More...
 
void TIMER2_IRQHandler (void)
 this function handles TIMER2 TIMER_INT_UP interrupt request More...
 
void TIMER13_IRQHandler (void)
 this function handles TIMER13 TIMER_INT_UP interrupt request More...
 

Variables

static unsigned char systick_counter = 0
 systick interrupt count variable is used to realize the encoder update function. More...
 

Detailed Description

gd32f1x0 interrupt handler function source file

Author
Lao·Zhu
Version
V1.0.2
Date
29. October 2021

Definition in file gd32f1x0_it.c.

Function Documentation

◆ BusFault_Handler()

void BusFault_Handler ( void  )

this function handles BusFault exception

Definition at line 43 of file gd32f1x0_it.c.

◆ DebugMon_Handler()

void DebugMon_Handler ( void  )

this function handles DebugMon exception

Definition at line 65 of file gd32f1x0_it.c.

◆ HardFault_Handler()

void HardFault_Handler ( void  )

this function handles HardFault exception

Definition at line 27 of file gd32f1x0_it.c.

◆ MemManage_Handler()

void MemManage_Handler ( void  )

this function handles MemManage exception

Definition at line 35 of file gd32f1x0_it.c.

◆ NMI_Handler()

void NMI_Handler ( void  )

this function handles NMI exception

Definition at line 21 of file gd32f1x0_it.c.

◆ PendSV_Handler()

void PendSV_Handler ( void  )

this function handles PendSV exception

Definition at line 71 of file gd32f1x0_it.c.

◆ SVC_Handler()

void SVC_Handler ( void  )

this function handles SVC exception

Definition at line 59 of file gd32f1x0_it.c.

◆ SysTick_Handler()

void SysTick_Handler ( void  )

this function handles SysTick exception

Definition at line 77 of file gd32f1x0_it.c.

References delay_decrement(), encoder_update_speed(), SPEED_UP_FREQ, and systick_counter.

◆ TIMER13_IRQHandler()

void TIMER13_IRQHandler ( void  )

◆ TIMER2_IRQHandler()

void TIMER2_IRQHandler ( void  )

this function handles TIMER2 TIMER_INT_UP interrupt request

Definition at line 104 of file gd32f1x0_it.c.

References encoder_get_electronic_angle(), foc_calculate_dutycycle(), FOC_Struct, phase_sequence, update_pwm_dutycycle(), and FOC_Structure_t::user_expect.

◆ UsageFault_Handler()

void UsageFault_Handler ( void  )

this function handles UsageFault exception

Definition at line 51 of file gd32f1x0_it.c.

◆ USART0_IRQHandler()

void USART0_IRQHandler ( void  )

this function handles USART RBNE interrupt request

Definition at line 92 of file gd32f1x0_it.c.

References mdtp_receive_handler().

Variable Documentation

◆ systick_counter

unsigned char systick_counter = 0
static

systick interrupt count variable is used to realize the encoder update function.

Definition at line 16 of file gd32f1x0_it.c.

Referenced by SysTick_Handler().