12 lines
255 B
C
12 lines
255 B
C
|
#include <io/usart.h>
|
||
|
#include <sys/errno.h>
|
||
|
|
||
|
int usart_configure(uint8_t usart,uint32_t baud,uint32_t config)
|
||
|
{
|
||
|
usart_t *u = usart_device_get(usart);
|
||
|
if (u){
|
||
|
return (u->configure) ? (u->configure(u,baud,config)) : -ENULLPTR;
|
||
|
};
|
||
|
return -ENOFILE;
|
||
|
};
|