can central read UART?

This commit is contained in:
weiting2
2020-06-16 11:58:36 +08:00
parent 531c29d04e
commit bcc6cf736b
2 changed files with 6 additions and 7 deletions
@@ -26,8 +26,7 @@ static void MemBoard_init(void){
// uint8_t txBuf[] = "Simple Central memory board MA\n\r"; // Transmit buffer
// UART_txBuf = txBuf;
// UART_write(uart_handle, txBuf, sizeof(txBuf));
char test[] = "test";
mem_UART_display(test);
// mem_UART_display(txBuf);
}
@@ -131,7 +130,7 @@ static void mem_central_event() {
static Control_Ins ins = INS_IDLE;
static void mem_recv_ins(){
UART_read(uart_handle, UART_rxBuf, 8);
// UART_read(uart_handle, UART_rxBuf, 8);
//
// switch(UART_rxBuf[0]){
// case INS_IDLE:{
@@ -157,8 +156,8 @@ static void mem_recv_ins(){
// }
// }
// mem_UART_display(UART_rxBuf);
uint8_t num[8] = {4, 2, 9, 5, 0, 5, 2, 3};
mem_UART_display_u8(num, 8);
char test[] = "test";
mem_UART_display(test);
}
static void mem_connect_device() {
@@ -6,11 +6,11 @@
#define VERSION_DATE_MONTH 6
#define VERSION_DATE_DAY 16
#define VERSION_DATE_HOUR 11
#define VERSION_DATE_MINUTE 48
#define VERSION_DATE_MINUTE 58
// this is NOT the version hash !!
// it's the last version hash
#define VERSION_HASH 338b697274b3e974e0d534911ca1b9a332064854
#define VERSION_HASH 531c29d04ea08acf47579bd6aec2f35cc7dd3735
#define VERSION_GIT_BRANCH simple_central_ma_pin
#endif