From 576c1ae47ba697a2d88367c0acbc35cc110513a1 Mon Sep 17 00:00:00 2001 From: bsongis Date: Thu, 5 Apr 2012 19:16:20 +0000 Subject: [PATCH] Compilation problem on 64bits servers --- src/board_ersky9x.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/board_ersky9x.cpp b/src/board_ersky9x.cpp index 803f787a9..405742bb3 100644 --- a/src/board_ersky9x.cpp +++ b/src/board_ersky9x.cpp @@ -1043,8 +1043,11 @@ void startPdcUsartReceive() TelemetryInBuffer[0].outPtr = TelemetryInBuffer[0].fifo ; TelemetryInBuffer[1].outPtr = TelemetryInBuffer[1].fifo ; +#ifndef SIMU + // TODO because of the 64bits cast ... pUsart->US_RPR = (uint32_t)TelemetryInBuffer[0].fifo ; pUsart->US_RNPR = (uint32_t)TelemetryInBuffer[1].fifo ; +#endif pUsart->US_RCR = RX_UART_BUFFER_SIZE ; pUsart->US_RNCR = RX_UART_BUFFER_SIZE ; pUsart->US_PTCR = US_PTCR_RXTEN ;