NuMaker NuWicam sample on NUC472
Dependencies: Modbus nvt_rs485
NuWicam for NuMaker-PFM-NUC472 board. Please refer document before executing it. More details, please refer https://github.com/OpenNuvoton/NuMaker_NuWicam_Samples/
Diff: main.cpp
- Revision:
- 4:02c148438101
- Parent:
- 2:60deb475f831
--- a/main.cpp Thu Aug 18 08:24:54 2016 +0000 +++ b/main.cpp Tue Sep 20 06:28:30 2016 +0000 @@ -93,7 +93,7 @@ { eMBErrorCode eStatus; Thread temperature_thread(worker_get_temperature); - Thread uart_thread(worker_uart); + //Thread uart_thread(worker_uart); // Initialise some registers for (int i=0; i<REG_INPUT_NREGS; i++) @@ -109,6 +109,7 @@ else { for( ;; ) { + xMBPortSerialPolling(); if ( eMBPoll( ) != MB_ENOERR ) break; } }