mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Cosmetic changes
This commit is contained in:
@@ -169,7 +169,7 @@ struct efm32_spidev_s
|
|||||||
uint8_t mode; /* Mode 0,1,2,3 */
|
uint8_t mode; /* Mode 0,1,2,3 */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint8_t nbits; /* Width of word in bits (8 or 16) */
|
uint8_t nbits; /* Width of word in bits (4-16) */
|
||||||
bool initialized; /* True: Already initialized */
|
bool initialized; /* True: Already initialized */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+11
-10
@@ -242,7 +242,8 @@ struct termios
|
|||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#define EXTERN extern "C"
|
#define EXTERN extern "C"
|
||||||
extern "C" {
|
extern "C"
|
||||||
|
{
|
||||||
#else
|
#else
|
||||||
#define EXTERN extern
|
#define EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
@@ -254,7 +255,7 @@ extern "C" {
|
|||||||
* supported by simply defining them to be cfgetspeed().
|
* supported by simply defining them to be cfgetspeed().
|
||||||
*/
|
*/
|
||||||
|
|
||||||
EXTERN speed_t cfgetspeed(FAR const struct termios *termiosp);
|
speed_t cfgetspeed(FAR const struct termios *termiosp);
|
||||||
#define cfgetispeed(termiosp) cfgetspeed(termiosp)
|
#define cfgetispeed(termiosp) cfgetspeed(termiosp)
|
||||||
#define cfgetospeed(termiosp) cfgetspeed(termiosp)
|
#define cfgetospeed(termiosp) cfgetspeed(termiosp)
|
||||||
|
|
||||||
@@ -265,37 +266,37 @@ EXTERN speed_t cfgetspeed(FAR const struct termios *termiosp);
|
|||||||
* supported by simply defining them to be cfsetspeed().
|
* supported by simply defining them to be cfsetspeed().
|
||||||
*/
|
*/
|
||||||
|
|
||||||
EXTERN int cfsetspeed(FAR struct termios *termiosp, speed_t speed);
|
int cfsetspeed(FAR struct termios *termiosp, speed_t speed);
|
||||||
#define cfsetispeed(termiosp,speed) cfsetspeed(termiosp,speed)
|
#define cfsetispeed(termiosp,speed) cfsetspeed(termiosp,speed)
|
||||||
#define cfsetospeed(termiosp,speed) cfsetspeed(termiosp,speed)
|
#define cfsetospeed(termiosp,speed) cfsetspeed(termiosp,speed)
|
||||||
|
|
||||||
/* Wait for transmission of output */
|
/* Wait for transmission of output */
|
||||||
|
|
||||||
EXTERN int tcdrain(int fd);
|
int tcdrain(int fd);
|
||||||
|
|
||||||
/* Suspend or restart the transmission or reception of data */
|
/* Suspend or restart the transmission or reception of data */
|
||||||
|
|
||||||
EXTERN int tcflow(int fd, int action);
|
int tcflow(int fd, int action);
|
||||||
|
|
||||||
/* Flush non-transmitted output data, non-read input data or both */
|
/* Flush non-transmitted output data, non-read input data or both */
|
||||||
|
|
||||||
EXTERN int tcflush(int fd, int cmd);
|
int tcflush(int fd, int cmd);
|
||||||
|
|
||||||
/* Get the parameters associated with the terminal */
|
/* Get the parameters associated with the terminal */
|
||||||
|
|
||||||
EXTERN int tcgetattr(int fd, FAR struct termios *termiosp);
|
int tcgetattr(int fd, FAR struct termios *termiosp);
|
||||||
|
|
||||||
/* Get process group ID for session leader for controlling terminal */
|
/* Get process group ID for session leader for controlling terminal */
|
||||||
|
|
||||||
EXTERN pid_t tcgetsid(int fd);
|
pid_t tcgetsid(int fd);
|
||||||
|
|
||||||
/* Send a "break" for a specific duration */
|
/* Send a "break" for a specific duration */
|
||||||
|
|
||||||
EXTERN int tcsendbreak(int fd, int duration);
|
int tcsendbreak(int fd, int duration);
|
||||||
|
|
||||||
/* Set the parameters associated with the terminal */
|
/* Set the parameters associated with the terminal */
|
||||||
|
|
||||||
EXTERN int tcsetattr(int fd, int options, FAR const struct termios *termiosp);
|
int tcsetattr(int fd, int options, FAR const struct termios *termiosp);
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Reference in New Issue
Block a user