Fix serial

This commit is contained in:
jaseg 2020-03-16 19:19:34 +01:00
parent fed186a49f
commit a1dc923315
14 changed files with 447 additions and 41 deletions

View file

@ -1,7 +1,13 @@
#include "sr_global.h"
#include "dsss_demod.h"
#include "con_usart.h"
void handle_dsss_received(uint8_t unused_a data[static TRANSMISSION_SYMBOLS]) {
asm volatile ("bkpt");
void handle_dsss_received(uint8_t data[static TRANSMISSION_SYMBOLS]) {
con_printf("DSSS data received: ");
for (int i=0; i<TRANSMISSION_SYMBOLS; i++) {
int x = (data[i]>>1) * (data[i]&1 ? 1 : -1);
con_printf("%3d ", x);
}
con_printf("\r\n");
}