AVS/GD32F103C8T6/Bootloader/main.h

40 lines
832 B
C
Raw Permalink Normal View History

2023-10-18 17:36:51 +08:00
#ifndef __MAIN_H
#define __MAIN_H
#define nullptr NULL
#define __weak __WEAK
/* Flash容量 (单位KB) */
2023-11-17 11:07:26 +08:00
#define FMC_CAPACITY_SIZE_64K
//#define FMC_CAPACITY_SIZE_128K
2023-10-18 17:36:51 +08:00
#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