From 71b2c2b19ca1caba6e3fdb4bd8b0edb0dbf2edd7 Mon Sep 17 00:00:00 2001 From: iorebuild Date: Wed, 16 Jul 2025 21:37:15 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=8A=8Aboard.h=E7=AD=89=E7=AD=89?= =?UTF-8?q?=E5=8D=95=E7=8B=AC=E6=94=BE=E5=88=B0board=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/Inc/Board.h | 131 ------------------------------------------------ 1 file changed, 131 deletions(-) delete mode 100644 App/Inc/Board.h diff --git a/App/Inc/Board.h b/App/Inc/Board.h deleted file mode 100644 index c515791..0000000 --- a/App/Inc/Board.h +++ /dev/null @@ -1,131 +0,0 @@ -#ifndef __BOARD_H__ -#define __BOARD_H__ - -#include - -#define VERSION "v1.0.0" - -/* **********NVIC中断向量控制器组别********** */ -#define NVIC_GROUP_LEVEL NVIC_PriorityGroup_2 -/* **********END********** */ - -/* 使用OS,ThreadX */ -#define USE_THREADX - -/* **********SystemClock相关********** */ -// GPIO -#define GPIO_ENABLE -#define USE_GPIOA -#define USE_GPIOB -#define USE_GPIOC -#define USE_GPIOD -#define USE_GPIOE -#define USE_GPIOF -#define USE_GPIOG -// USART -#define USART_ENABLE -#define USE_USART1 -#undef USE_USART2 -#undef USE_USART3 -#undef USE_USART4 -#undef USE_USART5 -#undef USE_USART6 -/* **********END********** */ - -/* **********GPIO DO DI相关********** */ -// 数字输出 -#undef USE_DIGITAL_OUTPUT -#ifdef USE_DIGITAL_OUTPUT - #define DO_NUM 2 - #define DO1 0 - #define DO2 1 -#endif - -// 数字输入 -#undef USE_DIGITAL_INPUT -#ifdef USE_DIGITAL_INPUT - #define DI_NUM 2 - #define DI1 0 - #define DI2 1 -#endif - -// LED灯 -#define USE_LED -#ifdef USE_LED - #define LED_NUM 3 - #define LED0 0 - #define LED1 1 - #define LED2 2 -#endif -/* **********END********** */ - -/* **********串口相关********** */ -#ifdef USE_USART1 - #define COM0 USART1_BASE - #define COM0_IRQN USART1_IRQn - #define COM0_TX_PORT GPIOA - #define COM0_RX_PORT GPIOA - #define COM0_TX_PIN GPIO_Pin_9 - #define COM0_RX_PIN GPIO_Pin_10 -#endif -#ifdef USE_USART2 - #define COM1 USART2_BASE - #define COM1_IRQN USART2_IRQn - #define COM1_TX_PORT GPIOA - #define COM1_RX_PORT GPIOA - #define COM1_TX_PIN GPIO_Pin_2 - #define COM1_RX_PIN GPIO_Pin_3 -#endif -#ifdef USE_USART3 - #define COM2 USART3_BASE - #define COM2_IRQN USART3_IRQn - #define COM2_TX_PORT GPIOB - #define COM2_RX_PORT GPIOB - #define COM2_TX_PIN GPIO_Pin_10 - #define COM2_RX_PIN GPIO_Pin_11 -#endif -#ifdef USE_USART4 - #define COM3 UART4_BASE - #define COM3_IRQN UART4_IRQn - #define COM3_TX_PORT GPIOC - #define COM3_RX_PORT GPIOC - #define COM3_TX_PIN GPIO_Pin_10 - #define COM3_RX_PIN GPIO_Pin_11 -#endif -#ifdef USE_USART5 - #define COM4 UART5_BASE - #define COM4_IRQN UART5_IRQn - #define COM4_TX_PORT GPIOB - #define COM4_RX_PORT GPIOD - #define COM4_TX_PIN GPIO_Pin_12 - #define COM4_RX_PIN GPIO_Pin_2 -#endif -/* LetterShell */ -#define USE_SHELL -#ifdef USE_SHELL - #define TTY_COM COM0 - #define TTY_COM_IRQN COM0_IRQN -#endif -/* **********END********** */ - -#define USE_ANALOG_INPUT -#define USE_ANALOG_OUTPUT - - -/* 自定义Flash布局相关 */ -#define BOOT_SIZE_16 /* 16Kb的Bootloader大小 不带网络*/ -//#define BOOT_SIZE_32 /* 32Kb的Bootloader大小 带网络*/ - -#define FLASH_BASE_ADDR 0x08000000 //Flash基地址 -#define BOOT_ADDR 0x08000000 //引导程序地址 -//BOOT程序大小 -#ifdef BOOT_SIZE_16 - #define BOOT_ROM 0x4000 -#endif -#ifdef BOOT_SIZE_32 - #define BOOT_ROM 0x8000 -#endif -#define USER_PARAM_ADDR (FLASH_BASE_ADDR + BOOT_ROM) //用户参数分区 -#define APPLICATION_ADDR 0x08010000 //从128K的位置开始是应用程序 -/* **********END********** */ -#endif