Fixed compiler warning generated by unused parameters in STM32F4xx USART3 diver

This commit is contained in:
Silvano Seva 2021-07-10 21:39:47 +02:00
parent 3bdaae0805
commit 466b405bba
1 changed files with 4 additions and 0 deletions

View File

@ -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++)