提交近期修改的内容
This commit is contained in:
parent
3cd5cf9ebd
commit
334d82e032
@ -1,11 +1,38 @@
|
|||||||
#include "mw_bluetooth.h"
|
#include "mw_bluetooth.h"
|
||||||
|
|
||||||
|
// /* user external inc. */
|
||||||
|
// #include "mw_soft_timer.h"
|
||||||
|
|
||||||
|
|
||||||
// Initial the entity of bluetooth buf.
|
// Initial the entity of bluetooth buf.
|
||||||
mw_bluetooth_t bluetooth_drv_buf[bluetooth_num];
|
mw_bluetooth_t bluetooth_drv_buf[bluetooth_num];
|
||||||
|
|
||||||
mw_bluetooth_drv_init(void)
|
/*************************************************************************************
|
||||||
|
* @brief Get the bluetooth object
|
||||||
|
* @param[in/out] e_val【参数注释】
|
||||||
|
* @return mw_bluetooth_t【返回值注释】
|
||||||
|
*
|
||||||
|
* @warning 【不可重入,阻塞等警告】
|
||||||
|
* @note 【重大修改】
|
||||||
|
*************************************************************************************/
|
||||||
|
mw_bluetooth_t mw_get_bluetooth_drv(bluetooth_type_enum e_val)
|
||||||
{
|
{
|
||||||
;
|
if(e_val >= bluetooth_num)
|
||||||
|
{
|
||||||
|
while(1);
|
||||||
|
}
|
||||||
|
return bluetooth_drv_buf[e_val];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// static void
|
||||||
|
|
||||||
|
|
||||||
|
void mw_bluetooth_drv_init(void)
|
||||||
|
{
|
||||||
|
// bluetooth_drv_buf[hc06].bluetooth_drv = hc06;
|
||||||
|
|
||||||
|
// bluetooth_drv_buf[hc06].get_systick_ms = get_systick_ms;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user