Commit b578d04c authored by wyattc's avatar wyattc
Browse files

Receive 6 bytes

parent 2f99e458
......@@ -23,9 +23,8 @@ void __FINISHED_INTERRUPT_HANDLER__() {
uint8_t arrow_pos = 0;
uint8_t tab_state = 0;
int progress=0;
uint8_t g_rx_buff[2];
uint8_t g_rx_buff[6];
//clock/baudrate/16-1
#define BAUD_VALUE_115200 53
#define COREUARTAPB0_BASE_ADDR 0x40050000
......@@ -72,7 +71,7 @@ uint8_t tab_state = 0;
void uart1_rx_handler( mss_uart_instance_t * this_uart )
{
int i=0;
for(i=0;i<100000;++i);
for(i=0;i<500000;++i);
MSS_UART_get_rx( this_uart, g_rx_buff, sizeof(g_rx_buff) );
erase_block( BARSTART_X, BARSTART_Y, BARSTART_X+100,BAREND_Y);
if(atoi(g_rx_buff[0])<100)
......@@ -82,7 +81,10 @@ uint8_t tab_state = 0;
display_completed();
}
write_temp(g_rx_buff[1]);
signed char odox=g_rx_buff[2];
signed char odoy=g_rx_buff[3];
signed char mousex=g_rx_buff[4];
signed char mousey=g_rx_buff[5];
}
void initInterrupts(){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment