diff options
author | Rob Austein <sra@hactrn.net> | 2016-06-30 21:11:19 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-06-30 21:11:19 -0400 |
commit | 3ed08b68d4d4bd51d85334aa1a21690737b95cfe (patch) | |
tree | c6e96226598704a3b21148c63fee3b81a25eae85 /slip_internal.h | |
parent | 03a407b83da294ff05d4f230437ec06c910b2e85 (diff) |
Start work to support client code on Mac OS X.
Includes preliminary support for the magic Mac-specific ioctl() to see
line speed, but has not yet been tested, that's waiting for some
supporting tweaks to the RPC code from Paul.
Includes some general cleanup which isn't really specific to Mac OS X
per se but which needed doing and which simplifies adding the Mac code.
Diffstat (limited to 'slip_internal.h')
-rw-r--r-- | slip_internal.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/slip_internal.h b/slip_internal.h index e3b7af0..4c36c31 100644 --- a/slip_internal.h +++ b/slip_internal.h @@ -50,8 +50,7 @@ extern hal_error_t hal_serial_send_char(const uint8_t c); extern hal_error_t hal_serial_recv_char(uint8_t * const c); #ifndef STM32F4XX -#include <termios.h> /* speed_t */ -extern hal_error_t hal_serial_init(const char * const device, const speed_t speed); +extern hal_error_t hal_serial_init(const char * const device, const uint32_t speed); extern hal_error_t hal_serial_close(void); extern int hal_serial_get_fd(void); #endif |