mirror of
https://github.com/avem-labs/Avem.git
synced 2023-09-01 15:18:49 +08:00
Update
This commit is contained in:
parent
971dc26c65
commit
f9996f8672
@ -6,6 +6,7 @@
|
||||
#define WIFI_BOUND 115200
|
||||
|
||||
void wifi_init();
|
||||
void wifi_sendData(unsigned char cmd);
|
||||
void wifi_sendSingleByte(unsigned char cmd);
|
||||
void wifi_sendData();
|
||||
|
||||
#endif
|
||||
|
@ -28,8 +28,11 @@ void wifi_init() {
|
||||
USART3->CR1 |= 1<<5;
|
||||
}
|
||||
|
||||
void wifi_sendData(unsigned char cmd) {
|
||||
void wifi_sendSingleByte(unsigned char cmd) {
|
||||
USART3->DR = cmd;
|
||||
while((USART3->SR & 0x40) == 0);
|
||||
}
|
||||
|
||||
void wifi_sendData() {
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user