1.驱动模板更新。
This commit is contained in:
@@ -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_ */
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user