* This project has only been tested in the QEMU emulation of the HiFive board\r
* from SiFive.\r
*\r
- * Start QEMU using the following command line:\r
+ * NOTE - Requires QEMU 1908xx or higher. Start QEMU using the following command \r
+ * line:\r
*\r
* [your_path_1]\qemu-system-riscv32 -kernel [your_path_2]\FreeRTOS\Demo\RISC-V-Qemu-sifive_e-FreedomStudio\Debug\RTOSDemo.elf -S -s -machine sifive_e\r
*\r
\r
void vSendString( const char * pcString )\r
{\r
+const uint32_t ulTxFifoFullBit = 0x80000000UL;\r
+\r
while( *pcString != 0x00 )\r
{\r
- while( UART0_REG( UART_REG_TXFIFO ) & 0x80000000 );\r
+ while( ( UART0_REG( UART_REG_TXFIFO ) & ulTxFifoFullBit ) != 0UL );\r
UART0_REG( UART_REG_TXFIFO ) = *pcString;\r
- *pcString++;\r
+ pcString++;\r
}\r
}\r
\r