forked from ROMEO/obsw
portable device access api based on unix file descriptors
This commit is contained in:
@ -25,7 +25,14 @@ void init_task(void *) {
|
||||
vTaskDelete(NULL);
|
||||
}
|
||||
|
||||
#include <unistd.h>
|
||||
#include <hardware/interfaces.h>
|
||||
|
||||
void mission(void) {
|
||||
int fd0 = hw_device_open("uart0", 5);
|
||||
write(fd0, "uart0\n", 6);
|
||||
int fd1 = hw_device_open("uart1", 5);
|
||||
write(fd1, "uart1\n", 6);
|
||||
|
||||
int taskParameters = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user