new way of testing uart

pull/2/head
Mateusz Lubecki 2019-03-13 19:54:01 +01:00
rodzic 3f0c1b4fcd
commit da092074d0
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -3,8 +3,8 @@
#include "aprs/ax25.h"
#define SW_VER "DA02"
#define SW_DATE "10022019"
#define SW_VER "DA03"
#define SW_DATE "13032019"
#define SYSTICK_TICKS_PER_SECONDS 100
#define SYSTICK_TICKS_PERIOD 10

Wyświetl plik

@ -187,7 +187,11 @@ main(int argc, char* argv[])
#ifdef SERIAL_TX_TEST_MODE
while(srl_tx_state != SRL_TX_IDLE);
GPIOC->ODR = (GPIOC->ODR ^ GPIO_Pin_9);
if (srl_rx_state == SRL_RX_DONE) {
GPIOC->ODR = (GPIOC->ODR ^ GPIO_Pin_8);
retval = 200;
}
}