fixed indentation warning in sgpio-rx

This commit is contained in:
Michael Ossmann
2017-01-26 23:40:02 -07:00
parent 4dae32fb1b
commit 6ddb7948e6

View File

@ -46,20 +46,20 @@ void tx_test() {
} }
void rx_test() { void rx_test() {
volatile uint32_t buffer[4096]; volatile uint32_t buffer[4096];
uint32_t i = 0; uint32_t i = 0;
uint32_t magsq; uint32_t magsq;
int8_t sigi, sigq; int8_t sigi, sigq;
rf_path_set_direction(&rf_path, RF_PATH_DIRECTION_RX); rf_path_set_direction(&rf_path, RF_PATH_DIRECTION_RX);
sgpio_cpld_stream_enable(&sgpio_config); sgpio_cpld_stream_enable(&sgpio_config);
led_on(LED2); led_on(LED2);
while(true) { while(true) {
while(SGPIO_STATUS_1 == 0); while(SGPIO_STATUS_1 == 0);
led_on(LED1); led_on(LED1);
SGPIO_CLR_STATUS_1 = 1; SGPIO_CLR_STATUS_1 = 1;
buffer[i & 4095] = SGPIO_REG_SS(SGPIO_SLICE_A); buffer[i & 4095] = SGPIO_REG_SS(SGPIO_SLICE_A);
/* find the magnitude squared */ /* find the magnitude squared */
sigi = buffer[i & 4095] & 0xff; sigi = buffer[i & 4095] & 0xff;
@ -72,7 +72,7 @@ void rx_test() {
else else
led_off(LED3); led_off(LED3);
i++; i++;
} }
} }
int main(void) { int main(void) {
@ -86,7 +86,7 @@ int main(void) {
enable_rf_power(); enable_rf_power();
#endif #endif
cpu_clock_init(); cpu_clock_init();
rf_path_init(&rf_path); rf_path_init(&rf_path);
set_freq(freq); set_freq(freq);