kopia lustrzana https://github.com/OpenRTX/OpenRTX
Fixed compiler warning generated by unused parameters in STM32F4xx USART3 diver
rodzic
3bdaae0805
commit
466b405bba
|
@ -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++)
|
||||
|
|
Ładowanie…
Reference in New Issue