syntax sugar

This commit is contained in:
Chris 2018-07-04 12:20:08 +02:00
commit 49735b62f1
2 changed files with 4 additions and 4 deletions

View file

@ -367,10 +367,11 @@ void AcquireTiType(void)
LED_D_OFF(); LED_D_OFF();
i = 0; i = 0;
for(;;) { for (;;) {
if(AT91C_BASE_SSC->SSC_SR & AT91C_SSC_RXRDY) { if (AT91C_BASE_SSC->SSC_SR & AT91C_SSC_RXRDY) {
buf[i] = AT91C_BASE_SSC->SSC_RHR; // store 32 bit values in buffer buf[i] = AT91C_BASE_SSC->SSC_RHR; // store 32 bit values in buffer
i++; if(i >= TIBUFLEN) break; i++;
if (i >= TIBUFLEN) break;
} }
WDT_HIT(); WDT_HIT();
} }

View file

@ -10,7 +10,6 @@
#include "usb_cdc.h" #include "usb_cdc.h"
#include "cmd.h" #include "cmd.h"
struct common_area common_area __attribute__((section(".commonarea"))); struct common_area common_area __attribute__((section(".commonarea")));
unsigned int start_addr, end_addr, bootrom_unlocked; unsigned int start_addr, end_addr, bootrom_unlocked;
extern char _bootrom_start, _bootrom_end, _flash_start, _flash_end; extern char _bootrom_start, _bootrom_end, _flash_start, _flash_end;