現在暫時用不到藍牙,但會用到tmos,但是tmos和ble那堆東西糊在了一起,參考你們的一對多的2.4G的例程去初始化tmos,去代替CH58X_BLEInit( )發(fā)現并不行。
這是參考的代碼:
??????? tmosConfig_t conf = {0};
??????? conf.MEMAddr = (uint32_t)TMOSBuf;
??????? conf.MEMLen = TMOS_BUF_SZE;
??????? conf.TaskMaxCount = 10;
??????? conf.enableTmosIrq = SYS_EnableIrq;
??????? conf.disableTmosIrq = SYS_DisableIrq;
??????? conf.srandCB = SYS_GetSysTickCnt;
??????? PRINT("tmos init.\n");
??????? TMOS_Init( &conf );