#ifndef MAIN_H
#define MAIN_H

#include "stdint.h"

#define  GD32_FLASH_SADDR   0x08000000                                             
#define  GD32_PAGE_SIZE     2048                                                   
#define  GD32_PAGE_NUM      256                                                   
#define  GD32_B_PAGE_NUM    5                                                   
#define  GD32_A_PAGE_NUM    GD32_PAGE_NUM - GD32_B_PAGE_NUM                        
#define  GD32_A_START_PAGE  GD32_B_PAGE_NUM                                       
#define  GD32_A_SADDR       GD32_FLASH_SADDR + GD32_A_START_PAGE * GD32_PAGE_SIZE  


#endif