nxphlite-v3:Using termios and HW flow control

Using PX4 contrib of termios and HW flow control in NuttX
   Kinetis.

   Removed stubs and updated defconfig.
This commit is contained in:
David Sidrane
2017-09-29 10:13:51 -04:00
committed by Daniel Agar
parent 2f2f1ff8ea
commit 2b853ea00e
2 changed files with 26 additions and 27 deletions
+3 -22
View File
@@ -147,7 +147,7 @@ int board_read_VBUS_state(void)
*
* Description:
* All boards my optionally provide this API to invert the Serial RC input.
* This is needed on SoCs that support the notion RXINV or TXINV as apposed to
* This is needed on SoCs that support the notion RXINV or TXINV as opposed to
* and external XOR controlled by a GPIO
*
************************************************************************************/
@@ -275,15 +275,7 @@ kinetis_boardinitialize(void)
nxphlite_spidev_initialize();
}
// FIXME:STUBS
#include <termios.h>
int cfsetspeed(FAR struct termios *termiosp, speed_t speed);
int cfsetspeed(FAR struct termios *termiosp, speed_t speed)
{
return 0;
}
//FIXME: Stubs -----v
int up_rtc_getdatetime(FAR struct tm *tp);
int up_rtc_getdatetime(FAR struct tm *tp)
{
@@ -308,18 +300,7 @@ static void kinetis_serial_dma_poll(void)
{
// todo:Stubbed
}
struct termios;
int tcgetattr(int fd, FAR struct termios *termiosp);
int tcsetattr(int fd, int options, FAR const struct termios *termiosp);
int tcgetattr(int fd, FAR struct termios *termiosp)
{
return -1;
}
int tcsetattr(int fd, int options, FAR const struct termios *termiosp)
{
return -1;
}
//FIXME: Stubs -----v
/****************************************************************************