Fixed compiler warning generated by unused parameters in STM32F4xx USART3 diver

replace/737025428bb869d4c6e3b6f4e8fd26ce5cb7bba3
Silvano Seva 2021-07-10 21:39:47 +02:00
rodzic 3bdaae0805
commit 466b405bba
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -132,6 +132,8 @@ void usart3_terminate()
ssize_t usart3_readBlock(void *buffer, size_t size, off_t where)
{
(void) where;
miosix::Lock< miosix::FastMutex > l(rxMutex);
char *buf = reinterpret_cast< char* >(buffer);
size_t result = 0;
@ -164,6 +166,8 @@ ssize_t usart3_readBlock(void *buffer, size_t size, off_t where)
ssize_t usart3_writeBlock(void *buffer, size_t size, off_t where)
{
(void) where;
miosix::Lock< miosix::FastMutex > l(txMutex);
const char *buf = reinterpret_cast< const char* >(buffer);
for(size_t i = 0; i < size; i++)