40 lines
832 B
C
40 lines
832 B
C
#ifndef __MAIN_H
|
|
#define __MAIN_H
|
|
|
|
#define nullptr NULL
|
|
#define __weak __WEAK
|
|
|
|
/* Flash容量 (单位KB) */
|
|
#define FMC_CAPACITY_SIZE_64K
|
|
//#define FMC_CAPACITY_SIZE_128K
|
|
|
|
#include "gd32f10x_libopt.h"
|
|
|
|
#include <stdarg.h>
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
#include "fmc.h"
|
|
#include "gpio.h"
|
|
#include "iap.h"
|
|
#include "spi.h"
|
|
#include "system.h"
|
|
#include "task.h"
|
|
#include "timer.h"
|
|
#include "usart.h"
|
|
#include "wdgt.h"
|
|
|
|
/* 系统定时器 */
|
|
#define SYSTEM_TIMER_PERIPH TIMER1
|
|
|
|
/* 接收指示灯 控制引脚 */
|
|
#define LED_RX_PERIPH GPIOB
|
|
#define LED_RX_PIN GPIO_PIN_10
|
|
|
|
/* 发送指示灯 控制引脚 */
|
|
#define LED_TX_PERIPH GPIOB
|
|
#define LED_TX_PIN GPIO_PIN_11
|
|
|
|
#endif |