You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
376 B
21 lines
376 B
/*
|
|
* Below is the given application for lab5_1.
|
|
* The goal of this app is to control the car via Bluetooth.
|
|
*/
|
|
|
|
#include "user_lib.h"
|
|
#include "util/types.h"
|
|
|
|
int main(void) {
|
|
printu("please input the instruction through bluetooth!\n");
|
|
while(1)
|
|
{
|
|
char temp = (char)uartgetchar();
|
|
if(temp == 'q')
|
|
break;
|
|
car_control(temp);
|
|
}
|
|
exit(0);
|
|
return 0;
|
|
}
|