CHG: appmain now calls cmd_recieve as it should

CHG: flasher -  removed unneeded parameter to function
CHG: flasher - increased limit to fpga-files that can be loaded
FIX: main client,  wrong windows define fixed.
CHG: device side - recieve usb command does not always get 544 bytes.  usb packages can be incomplete.
CHG: usb_cdc.c also got piwi's changes.
CHG: uart_posix.c removed a debug value
CHG: uart_win32.c clean up.
This commit is contained in:
iceman1001 2017-10-17 20:58:17 +02:00
commit 16028f7d33
9 changed files with 279 additions and 252 deletions

View file

@ -197,15 +197,14 @@ static void flash_mode(int externally_entered) {
//for (volatile size_t i=0; i<0x100000; i++) {};
for(;;) {
WDT_HIT();
if ( usb_poll_validate_length()) {
rx_len = usb_read(rx, sizeof(UsbCommand));
if (rx_len == sizeof(UsbCommand))
UsbPacketReceived(rx, rx_len);
}
WDT_HIT();
if (!externally_entered && !BUTTON_PRESS()) {
/* Perform a reset to leave flash mode */
usb_disable();