Compilation fixes

This commit is contained in:
Bertrand Songis
2018-11-28 18:53:44 +01:00
parent ae91903d57
commit 9c096b76b3
5 changed files with 28 additions and 9 deletions
+4 -5
View File
@@ -135,12 +135,11 @@ void rxPdcUsart( void (*pChProcess)(uint8_t x) )
#endif
}
uint32_t txPdcUsart(uint8_t *buffer, uint32_t size)
uint32_t txPdcUsart(const uint8_t * buffer, uint32_t size)
{
Usart *pUsart = SECOND_USART;
Usart * pUsart = SECOND_USART;
if ( pUsart->US_TNCR == 0 )
{
if (pUsart->US_TNCR == 0) {
#ifndef SIMU
pUsart->US_TNPR = (uint32_t)buffer ;
#endif
@@ -174,7 +173,7 @@ void telemetryPortInit(uint32_t baudrate, uint8_t mode)
#endif
}
void telemetryTransmitBuffer(uint8_t * buffer, uint32_t size)
void telemetryTransmitBuffer(const uint8_t * buffer, uint32_t size)
{
txPdcUsart(buffer, size);
}