diff --git a/libs/STM32_USB-FS-Device_Lib_V4.0.0/Libraries/STM32F10x_StdPeriph_Driver/inc/wifi.h b/libs/STM32_USB-FS-Device_Lib_V4.0.0/Libraries/STM32F10x_StdPeriph_Driver/inc/wifi.h index c13253d..44f018f 100644 --- a/libs/STM32_USB-FS-Device_Lib_V4.0.0/Libraries/STM32F10x_StdPeriph_Driver/inc/wifi.h +++ b/libs/STM32_USB-FS-Device_Lib_V4.0.0/Libraries/STM32F10x_StdPeriph_Driver/inc/wifi.h @@ -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 diff --git a/libs/STM32_USB-FS-Device_Lib_V4.0.0/Libraries/STM32F10x_StdPeriph_Driver/src/wifi.c b/libs/STM32_USB-FS-Device_Lib_V4.0.0/Libraries/STM32F10x_StdPeriph_Driver/src/wifi.c index 3dfaf3e..04be4c5 100644 --- a/libs/STM32_USB-FS-Device_Lib_V4.0.0/Libraries/STM32F10x_StdPeriph_Driver/src/wifi.c +++ b/libs/STM32_USB-FS-Device_Lib_V4.0.0/Libraries/STM32F10x_StdPeriph_Driver/src/wifi.c @@ -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() { +} +