How to configure the uart interface and use easily
Posted: Tue Jan 02, 2018 4:17 pm
Hi Bitcraze:
i want to mount sensors to CF2, the sensor need communicate with CF2 by uart , i know the CF2 have uart1 and uart2 let me use,but i don't know how to configure the uart,and don't know which function can i use,and which folder/file can i write my code(it is run the RTOS, i dont't know where to create my task ).i try to comprehend the crazyflie-fireware, but it is too complicate to me do modify it.
so what should i do (eg. which function can i use) can let the CF2 receive the sensor's date and then send the date to the host computer.
i want to mount sensors to CF2, the sensor need communicate with CF2 by uart , i know the CF2 have uart1 and uart2 let me use,but i don't know how to configure the uart,and don't know which function can i use,and which folder/file can i write my code(it is run the RTOS, i dont't know where to create my task ).i try to comprehend the crazyflie-fireware, but it is too complicate to me do modify it.
so what should i do (eg. which function can i use) can let the CF2 receive the sensor's date and then send the date to the host computer.