Code factorization
This commit is contained in:
@@ -33,6 +33,12 @@
|
||||
|
||||
#include "../open9x.h"
|
||||
|
||||
void btInit()
|
||||
{
|
||||
uint32_t baudrate = (g_eeGeneral.btBaudrate==0 ? 115200 : (g_eeGeneral.btBaudrate==1 ? 9600 : 19200));
|
||||
UART3_Configure(baudrate, Master_frequency);
|
||||
}
|
||||
|
||||
class Fifo32
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#ifndef bluetooth_h
|
||||
#define bluetooth_h
|
||||
|
||||
void btInit();
|
||||
void btTask(void* pdata);
|
||||
void btPushByte(uint8_t data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user