summaryrefslogtreecommitdiffstats
path: root/flash/uart_boot/client.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-11-19 22:44:45 +0000
committerJens Arnold <amiconn@rockbox.org>2004-11-19 22:44:45 +0000
commitc519e6365e50645510d3394b2bcc67a501748b8c (patch)
tree9be4cad39947134d58315d16ce993f154b12b342 /flash/uart_boot/client.c
parent30237007f1cccdc12e6012a01a87ed83b6024fff (diff)
downloadrockbox-c519e6365e50645510d3394b2bcc67a501748b8c.tar.gz
rockbox-c519e6365e50645510d3394b2bcc67a501748b8c.zip
Makefile and adjustments for compiling uart_boot under cygwin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5439 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'flash/uart_boot/client.c')
-rw-r--r--flash/uart_boot/client.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/flash/uart_boot/client.c b/flash/uart_boot/client.c
index a98edc60cb..71749a2c55 100644
--- a/flash/uart_boot/client.c
+++ b/flash/uart_boot/client.c
@@ -15,7 +15,7 @@ int ConfigFirstlevelPlayer (tUartHandle serial_handle)
if(!UartConfig(serial_handle, 4800, eMARKPARITY, eTWOSTOPBITS, 8))
{
UINT32 dwErr = GET_LAST_ERR();
- printf("Error %d setting up COM params for baudrate byte\n", dwErr);
+ printf("Error %lu setting up COM params for baudrate byte\n", dwErr);
exit(1);
}
@@ -24,7 +24,7 @@ int ConfigFirstlevelPlayer (tUartHandle serial_handle)
if (result_nbr != 2)
{
UINT32 dwErr = GET_LAST_ERR();
- printf("Error %d setting up COM params for baudrate byte\n", dwErr);
+ printf("Error %lu setting up COM params for baudrate byte\n", dwErr);
}
SLEEP(100); // wait for the chars to be sent, is there a better way?
@@ -48,7 +48,7 @@ int ConfigFirstlevelRecorder (tUartHandle serial_handle)
if(!UartConfig(serial_handle, 4800, eNOPARITY, eTWOSTOPBITS, 8))
{
UINT32 dwErr = GET_LAST_ERR();
- printf("Error %d setting up COM params for baudrate byte\n", dwErr);
+ printf("Error %lu setting up COM params for baudrate byte\n", dwErr);
exit(1);
}
@@ -66,7 +66,7 @@ int ConfigFirstlevelRecorder (tUartHandle serial_handle)
if(!UartConfig(serial_handle, 38400, eNOPARITY, eONESTOPBIT, 8))
{
UINT32 dwErr = GET_LAST_ERR();
- printf("Error %d setting up COM params for 1st level loader\n", dwErr);
+ printf("Error %lu setting up COM params for 1st level loader\n", dwErr);
exit(1);
}
@@ -78,7 +78,6 @@ int ConfigFirstlevelRecorder (tUartHandle serial_handle)
int DownloadByte(tUartHandle serial_handle, unsigned char byte, bool bAck)
{
unsigned char received;
- bool bRecorder = true; // false for player
while (1)
{
@@ -230,7 +229,7 @@ int DownloadArchosMonitor(tUartHandle serial_handle, char* szFilename)
if(!UartConfig(serial_handle, 115200, eNOPARITY, eONESTOPBIT, 8))
{
UINT32 dwErr = GET_LAST_ERR();
- printf("Error %d setting up COM params for baudrate %d\n", dwErr, 115200);
+ printf("Error %lu setting up COM params for baudrate %d\n", dwErr, 115200);
exit(1);
}