2024-12-17 21:18:40 +08:00

39 lines
877 B
C

#include "mw_bluetooth.h"
// /* user external inc. */
// #include "mw_soft_timer.h"
// Initial the entity of bluetooth buf.
mw_bluetooth_t bluetooth_drv_buf[bluetooth_num];
/*************************************************************************************
* @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;
}