mtkernel_3/device/ser/sysdepend/tx03_m367/ser_mode_m367.h | bare source | permlink (0.00 seconds) |
1: /* 2: *---------------------------------------------------------------------- 3: * Device Driver for micro T-Kernel for μT-Kernel 3.00.03 4: * 5: * Copyright (C) 2020-2021 by Ken Sakamura. 6: * This software is distributed under the T-License 2.2. 7: *---------------------------------------------------------------------- 8: * 9: * Released by TRON Forum(http://www.tron.org) at 2021/03/31. 10: * 11: *---------------------------------------------------------------------- 12: */ 13: 14: 15: /* 16: * ser_mode_m367.h 17: * Serial communication device driver 18: * Communication mode definition for TX03_M367 19: */ 20: 21: #ifndef __DEV_SER_MODE_M367_H__ 22: #define __DEV_SER_MODE_M367_H__ 23: 24: #define DEV_SER_MODE_7BIT (0x00000040) /* Word length 7bit */ 25: #define DEV_SER_MODE_8BIT (0x00000060) /* Word length 8bit */ 26: 27: #define DEV_SER_MODE_1STOP (0x00000000) /* Stop-bit 1bit */ 28: #define DEV_SER_MODE_2STOP (0x00000008) /* Stop-bit 2bit */ 29: 30: #define DEV_SER_MODE_PODD (0x00000002) /* parity Odd */ 31: #define DEV_SER_MODE_PEVEN (0x00000006) /* parity Even */ 32: #define DEV_SER_MODE_PNON (0x00000000) /* parity None */ 33: 34: #define DEV_SER_MODE_CTSEN (0x00008000) /* CTS Hard flow control enable */ 35: #define DEV_SER_MODE_RTSEN (0x00004000) /* RTS Hard flow control enable */ 36: 37: /* Communication Error */ 38: #define DEV_SER_ERR_OE (1<<3) /* Overrun Error */ 39: #define DEV_SER_ERR_BE (1<<2) /* Break Error */ 40: #define DEV_SER_ERR_PE (1<<1) /* Parity Error */ 41: #define DEV_SER_ERR_FE (1<<0) /* Framing Error */ 42: 43: 44: #endif /* __DEV_SER_MODE_M367_H__ */