1.驱动模板更新。

This commit is contained in:
MacRsh
2023-09-08 13:24:55 +08:00
parent 415c598e94
commit 3f57056a0d
2 changed files with 30 additions and 11 deletions

View File

@@ -1,10 +1,14 @@
#ifndef _MR_BOARD_H_
#define _MR_BOARD_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* @include bsp head file
*/
#warning "Please include bsp head file, then remove this line"
/**
* @def Bsp name
@@ -70,4 +74,19 @@
#define MR_BSP_TIMER_2
#define MR_BSP_TIMER_3
#define MR_BSP_TIMER_1
#define MR_BSP_TIMER_2
#define MR_BSP_TIMER_3
#define MR_BSP_TIMER_4
#define MR_BSP_TIMER_5
#define MR_BSP_TIMER_6
#define MR_BSP_TIMER_7
#define MR_BSP_TIMER_8
#define MR_BSP_TIMER_9
#define MR_BSP_TIMER_10
#ifdef __cplusplus
}
#endif
#endif /* _MR_BOARD_H_ */

View File

@@ -13,14 +13,6 @@
#include "mrconfig.h"
#if (MR_CFG_PIN == MR_CFG_ENABLE)
#include "drv_gpio.h"
#endif
#if (MR_CFG_SERIAL == MR_CFG_ENABLE)
#include "drv_uart.h"
#endif
#if (MR_CFG_ADC == MR_CFG_ENABLE)
#include "drv_adc.h"
#endif
@@ -33,14 +25,22 @@
#include "drv_i2c.h"
#endif
#if (MR_CFG_SPI == MR_CFG_ENABLE)
#include "drv_spi.h"
#if (MR_CFG_PIN == MR_CFG_ENABLE)
#include "drv_gpio.h"
#endif
#if (MR_CFG_PWM == MR_CFG_ENABLE)
#include "drv_pwm.h"
#endif
#if (MR_CFG_SERIAL == MR_CFG_ENABLE)
#include "drv_uart.h"
#endif
#if (MR_CFG_SPI == MR_CFG_ENABLE)
#include "drv_spi.h"
#endif
#if (MR_CFG_TIMER == MR_CFG_ENABLE)
#include "drv_timer.h"
#endif