| M480 BSP V3.05.001 The Board Support Package for M480 Series

uuart_reg.h
Go to the documentation of this file.
1 /**************************************************************************/
9 #ifndef __UUART_REG_H__
10 #define __UUART_REG_H__
11
12 #if defined ( __CC_ARM )
13 #pragma anon_unions
14 #endif
15
26 typedef struct
27 {
28
29
938 __IO uint32_t CTL;
939 __IO uint32_t INTEN;
940 __IO uint32_t BRGEN;
941 __I uint32_t RESERVE0[1];
944 __IO uint32_t DATIN0;
945 __I uint32_t RESERVE1[3];
948 __IO uint32_t CTLIN0;
949 __I uint32_t RESERVE2[1];
952 __IO uint32_t CLKIN;
953 __IO uint32_t LINECTL;
954 __IO uint32_t TXDAT;
955 __IO uint32_t RXDAT;
956 __IO uint32_t BUFCTL;
957 __IO uint32_t BUFSTS;
958 __IO uint32_t PDMACTL;
959 __I uint32_t RESERVE3[4];
962 __IO uint32_t WKCTL;
963 __IO uint32_t WKSTS;
964 __IO uint32_t PROTCTL;
965 __IO uint32_t PROTIEN;
966 __IO uint32_t PROTSTS;
968 } UUART_T;
969
975 #define UUART_CTL_FUNMODE_Pos (0)
976 #define UUART_CTL_FUNMODE_Msk (0x7ul << UUART_CTL_FUNMODE_Pos)
978 #define UUART_INTEN_TXSTIEN_Pos (1)
979 #define UUART_INTEN_TXSTIEN_Msk (0x1ul << UUART_INTEN_TXSTIEN_Pos)
981 #define UUART_INTEN_TXENDIEN_Pos (2)
982 #define UUART_INTEN_TXENDIEN_Msk (0x1ul << UUART_INTEN_TXENDIEN_Pos)
984 #define UUART_INTEN_RXSTIEN_Pos (3)
985 #define UUART_INTEN_RXSTIEN_Msk (0x1ul << UUART_INTEN_RXSTIEN_Pos)
987 #define UUART_INTEN_RXENDIEN_Pos (4)
988 #define UUART_INTEN_RXENDIEN_Msk (0x1ul << UUART_INTEN_RXENDIEN_Pos)
990 #define UUART_BRGEN_RCLKSEL_Pos (0)
991 #define UUART_BRGEN_RCLKSEL_Msk (0x1ul << UUART_BRGEN_RCLKSEL_Pos)
993 #define UUART_BRGEN_PTCLKSEL_Pos (1)
994 #define UUART_BRGEN_PTCLKSEL_Msk (0x1ul << UUART_BRGEN_PTCLKSEL_Pos)
996 #define UUART_BRGEN_SPCLKSEL_Pos (2)
997 #define UUART_BRGEN_SPCLKSEL_Msk (0x3ul << UUART_BRGEN_SPCLKSEL_Pos)
999 #define UUART_BRGEN_TMCNTEN_Pos (4)
1000 #define UUART_BRGEN_TMCNTEN_Msk (0x1ul << UUART_BRGEN_TMCNTEN_Pos)
1002 #define UUART_BRGEN_TMCNTSRC_Pos (5)
1003 #define UUART_BRGEN_TMCNTSRC_Msk (0x1ul << UUART_BRGEN_TMCNTSRC_Pos)
1005 #define UUART_BRGEN_PDSCNT_Pos (8)
1006 #define UUART_BRGEN_PDSCNT_Msk (0x3ul << UUART_BRGEN_PDSCNT_Pos)
1008 #define UUART_BRGEN_DSCNT_Pos (10)
1009 #define UUART_BRGEN_DSCNT_Msk (0x1ful << UUART_BRGEN_DSCNT_Pos)
1011 #define UUART_BRGEN_CLKDIV_Pos (16)
1012 #define UUART_BRGEN_CLKDIV_Msk (0x3fful << UUART_BRGEN_CLKDIV_Pos)
1014 #define UUART_DATIN0_SYNCSEL_Pos (0)
1015 #define UUART_DATIN0_SYNCSEL_Msk (0x1ul << UUART_DATIN0_SYNCSEL_Pos)
1017 #define UUART_DATIN0_ININV_Pos (2)
1018 #define UUART_DATIN0_ININV_Msk (0x1ul << UUART_DATIN0_ININV_Pos)
1020 #define UUART_DATIN0_EDGEDET_Pos (3)
1021 #define UUART_DATIN0_EDGEDET_Msk (0x3ul << UUART_DATIN0_EDGEDET_Pos)
1023 #define UUART_CTLIN0_SYNCSEL_Pos (0)
1024 #define UUART_CTLIN0_SYNCSEL_Msk (0x1ul << UUART_CTLIN0_SYNCSEL_Pos)
1026 #define UUART_CTLIN0_ININV_Pos (2)
1027 #define UUART_CTLIN0_ININV_Msk (0x1ul << UUART_CTLIN0_ININV_Pos)
1029 #define UUART_CLKIN_SYNCSEL_Pos (0)
1030 #define UUART_CLKIN_SYNCSEL_Msk (0x1ul << UUART_CLKIN_SYNCSEL_Pos)
1032 #define UUART_LINECTL_LSB_Pos (0)
1033 #define UUART_LINECTL_LSB_Msk (0x1ul << UUART_LINECTL_LSB_Pos)
1035 #define UUART_LINECTL_DATOINV_Pos (5)
1036 #define UUART_LINECTL_DATOINV_Msk (0x1ul << UUART_LINECTL_DATOINV_Pos)
1038 #define UUART_LINECTL_CTLOINV_Pos (7)
1039 #define UUART_LINECTL_CTLOINV_Msk (0x1ul << UUART_LINECTL_CTLOINV_Pos)
1041 #define UUART_LINECTL_DWIDTH_Pos (8)
1042 #define UUART_LINECTL_DWIDTH_Msk (0xful << UUART_LINECTL_DWIDTH_Pos)
1044 #define UUART_TXDAT_TXDAT_Pos (0)
1045 #define UUART_TXDAT_TXDAT_Msk (0xfffful << UUART_TXDAT_TXDAT_Pos)
1047 #define UUART_RXDAT_RXDAT_Pos (0)
1048 #define UUART_RXDAT_RXDAT_Msk (0xfffful << UUART_RXDAT_RXDAT_Pos)
1050 #define UUART_BUFCTL_TXCLR_Pos (7)
1051 #define UUART_BUFCTL_TXCLR_Msk (0x1ul << UUART_BUFCTL_TXCLR_Pos)
1053 #define UUART_BUFCTL_RXOVIEN_Pos (14)
1054 #define UUART_BUFCTL_RXOVIEN_Msk (0x1ul << UUART_BUFCTL_RXOVIEN_Pos)
1056 #define UUART_BUFCTL_RXCLR_Pos (15)
1057 #define UUART_BUFCTL_RXCLR_Msk (0x1ul << UUART_BUFCTL_RXCLR_Pos)
1059 #define UUART_BUFCTL_TXRST_Pos (16)
1060 #define UUART_BUFCTL_TXRST_Msk (0x1ul << UUART_BUFCTL_TXRST_Pos)
1062 #define UUART_BUFCTL_RXRST_Pos (17)
1063 #define UUART_BUFCTL_RXRST_Msk (0x1ul << UUART_BUFCTL_RXRST_Pos)
1065 #define UUART_BUFSTS_RXEMPTY_Pos (0)
1066 #define UUART_BUFSTS_RXEMPTY_Msk (0x1ul << UUART_BUFSTS_RXEMPTY_Pos)
1068 #define UUART_BUFSTS_RXFULL_Pos (1)
1069 #define UUART_BUFSTS_RXFULL_Msk (0x1ul << UUART_BUFSTS_RXFULL_Pos)
1071 #define UUART_BUFSTS_RXOVIF_Pos (3)
1072 #define UUART_BUFSTS_RXOVIF_Msk (0x1ul << UUART_BUFSTS_RXOVIF_Pos)
1074 #define UUART_BUFSTS_TXEMPTY_Pos (8)
1075 #define UUART_BUFSTS_TXEMPTY_Msk (0x1ul << UUART_BUFSTS_TXEMPTY_Pos)
1077 #define UUART_BUFSTS_TXFULL_Pos (9)
1078 #define UUART_BUFSTS_TXFULL_Msk (0x1ul << UUART_BUFSTS_TXFULL_Pos)
1080 #define UUART_PDMACTL_PDMARST_Pos (0)
1081 #define UUART_PDMACTL_PDMARST_Msk (0x1ul << UUART_PDMACTL_PDMARST_Pos)
1083 #define UUART_PDMACTL_TXPDMAEN_Pos (1)
1084 #define UUART_PDMACTL_TXPDMAEN_Msk (0x1ul << UUART_PDMACTL_TXPDMAEN_Pos)
1086 #define UUART_PDMACTL_RXPDMAEN_Pos (2)
1087 #define UUART_PDMACTL_RXPDMAEN_Msk (0x1ul << UUART_PDMACTL_RXPDMAEN_Pos)
1089 #define UUART_PDMACTL_PDMAEN_Pos (3)
1090 #define UUART_PDMACTL_PDMAEN_Msk (0x1ul << UUART_PDMACTL_PDMAEN_Pos)
1092 #define UUART_WKCTL_WKEN_Pos (0)
1093 #define UUART_WKCTL_WKEN_Msk (0x1ul << UUART_WKCTL_WKEN_Pos)
1095 #define UUART_WKCTL_PDBOPT_Pos (2)
1096 #define UUART_WKCTL_PDBOPT_Msk (0x1ul << UUART_WKCTL_PDBOPT_Pos)
1098 #define UUART_WKSTS_WKF_Pos (0)
1099 #define UUART_WKSTS_WKF_Msk (0x1ul << UUART_WKSTS_WKF_Pos)
1101 #define UUART_PROTCTL_STOPB_Pos (0)
1102 #define UUART_PROTCTL_STOPB_Msk (0x1ul << UUART_PROTCTL_STOPB_Pos)
1104 #define UUART_PROTCTL_PARITYEN_Pos (1)
1105 #define UUART_PROTCTL_PARITYEN_Msk (0x1ul << UUART_PROTCTL_PARITYEN_Pos)
1107 #define UUART_PROTCTL_EVENPARITY_Pos (2)
1108 #define UUART_PROTCTL_EVENPARITY_Msk (0x1ul << UUART_PROTCTL_EVENPARITY_Pos)
1110 #define UUART_PROTCTL_RTSAUTOEN_Pos (3)
1111 #define UUART_PROTCTL_RTSAUTOEN_Msk (0x1ul << UUART_PROTCTL_RTSAUTOEN_Pos)
1113 #define UUART_PROTCTL_CTSAUTOEN_Pos (4)
1114 #define UUART_PROTCTL_CTSAUTOEN_Msk (0x1ul << UUART_PROTCTL_CTSAUTOEN_Pos)
1116 #define UUART_PROTCTL_RTSAUDIREN_Pos (5)
1117 #define UUART_PROTCTL_RTSAUDIREN_Msk (0x1ul << UUART_PROTCTL_RTSAUDIREN_Pos)
1119 #define UUART_PROTCTL_ABREN_Pos (6)
1120 #define UUART_PROTCTL_ABREN_Msk (0x1ul << UUART_PROTCTL_ABREN_Pos)
1122 #define UUART_PROTCTL_DATWKEN_Pos (9)
1123 #define UUART_PROTCTL_DATWKEN_Msk (0x1ul << UUART_PROTCTL_DATWKEN_Pos)
1125 #define UUART_PROTCTL_CTSWKEN_Pos (10)
1126 #define UUART_PROTCTL_CTSWKEN_Msk (0x1ul << UUART_PROTCTL_CTSWKEN_Pos)
1128 #define UUART_PROTCTL_WAKECNT_Pos (11)
1129 #define UUART_PROTCTL_WAKECNT_Msk (0xful << UUART_PROTCTL_WAKECNT_Pos)
1131 #define UUART_PROTCTL_BRDETITV_Pos (16)
1132 #define UUART_PROTCTL_BRDETITV_Msk (0x1fful << UUART_PROTCTL_BRDETITV_Pos)
1134 #define UUART_PROTCTL_STICKEN_Pos (26)
1135 #define UUART_PROTCTL_STICKEN_Msk (0x1ul << UUART_PROTCTL_STICKEN_Pos)
1137 #define UUART_PROTCTL_BCEN_Pos (29)
1138 #define UUART_PROTCTL_BCEN_Msk (0x1ul << UUART_PROTCTL_BCEN_Pos)
1140 #define UUART_PROTCTL_PROTEN_Pos (31)
1141 #define UUART_PROTCTL_PROTEN_Msk (0x1ul << UUART_PROTCTL_PROTEN_Pos)
1143 #define UUART_PROTIEN_ABRIEN_Pos (1)
1144 #define UUART_PROTIEN_ABRIEN_Msk (0x1ul << UUART_PROTIEN_ABRIEN_Pos)
1146 #define UUART_PROTIEN_RLSIEN_Pos (2)
1147 #define UUART_PROTIEN_RLSIEN_Msk (0x1ul << UUART_PROTIEN_RLSIEN_Pos)
1149 #define UUART_PROTSTS_TXSTIF_Pos (1)
1150 #define UUART_PROTSTS_TXSTIF_Msk (0x1ul << UUART_PROTSTS_TXSTIF_Pos)
1152 #define UUART_PROTSTS_TXENDIF_Pos (2)
1153 #define UUART_PROTSTS_TXENDIF_Msk (0x1ul << UUART_PROTSTS_TXENDIF_Pos)
1155 #define UUART_PROTSTS_RXSTIF_Pos (3)
1156 #define UUART_PROTSTS_RXSTIF_Msk (0x1ul << UUART_PROTSTS_RXSTIF_Pos)
1158 #define UUART_PROTSTS_RXENDIF_Pos (4)
1159 #define UUART_PROTSTS_RXENDIF_Msk (0x1ul << UUART_PROTSTS_RXENDIF_Pos)
1161 #define UUART_PROTSTS_PARITYERR_Pos (5)
1162 #define UUART_PROTSTS_PARITYERR_Msk (0x1ul << UUART_PROTSTS_PARITYERR_Pos)
1164 #define UUART_PROTSTS_FRMERR_Pos (6)
1165 #define UUART_PROTSTS_FRMERR_Msk (0x1ul << UUART_PROTSTS_FRMERR_Pos)
1167 #define UUART_PROTSTS_BREAK_Pos (7)
1168 #define UUART_PROTSTS_BREAK_Msk (0x1ul << UUART_PROTSTS_BREAK_Pos)
1170 #define UUART_PROTSTS_ABRDETIF_Pos (9)
1171 #define UUART_PROTSTS_ABRDETIF_Msk (0x1ul << UUART_PROTSTS_ABRDETIF_Pos)
1173 #define UUART_PROTSTS_RXBUSY_Pos (10)
1174 #define UUART_PROTSTS_RXBUSY_Msk (0x1ul << UUART_PROTSTS_RXBUSY_Pos)
1176 #define UUART_PROTSTS_ABERRSTS_Pos (11)
1177 #define UUART_PROTSTS_ABERRSTS_Msk (0x1ul << UUART_PROTSTS_ABERRSTS_Pos)
1179 #define UUART_PROTSTS_CTSSYNCLV_Pos (16)
1180 #define UUART_PROTSTS_CTSSYNCLV_Msk (0x1ul << UUART_PROTSTS_CTSSYNCLV_Pos)
1182 #define UUART_PROTSTS_CTSLV_Pos (17)
1183 #define UUART_PROTSTS_CTSLV_Msk (0x1ul << UUART_PROTSTS_CTSLV_Pos) /* UUART_CONST */
1186 /* end of UUART register group */ /* end of REGISTER group */
1188
1189 #if defined ( __CC_ARM )
1190 #pragma no_anon_unions
1191 #endif
1192
1193 #endif /* __UUART_REG_H__ */
UUART_T::WKCTL
__IO uint32_t WKCTL
Definition: uuart_reg.h:962
UUART_T::CLKIN
__IO uint32_t CLKIN
Definition: uuart_reg.h:952
UUART_T::BUFCTL
__IO uint32_t BUFCTL
Definition: uuart_reg.h:956
UUART_T
Definition: uuart_reg.h:26
UUART_T::LINECTL
__IO uint32_t LINECTL
Definition: uuart_reg.h:953
UUART_T::BRGEN
__IO uint32_t BRGEN
Definition: uuart_reg.h:940
UUART_T::PROTCTL
__IO uint32_t PROTCTL
Definition: uuart_reg.h:964
UUART_T::PROTSTS
__IO uint32_t PROTSTS
Definition: uuart_reg.h:966
UUART_T::DATIN0
__IO uint32_t DATIN0
Definition: uuart_reg.h:944
UUART_T::CTLIN0
__IO uint32_t CTLIN0
Definition: uuart_reg.h:948
UUART_T::PDMACTL
__IO uint32_t PDMACTL
Definition: uuart_reg.h:958
UUART_T::TXDAT
__IO uint32_t TXDAT
Definition: uuart_reg.h:954
UUART_T::WKSTS
__IO uint32_t WKSTS
Definition: uuart_reg.h:963
UUART_T::CTL
__IO uint32_t CTL
Definition: uuart_reg.h:938
UUART_T::BUFSTS
__IO uint32_t BUFSTS
Definition: uuart_reg.h:957
UUART_T::INTEN
__IO uint32_t INTEN
Definition: uuart_reg.h:939
UUART_T::RXDAT
__IO uint32_t RXDAT
Definition: uuart_reg.h:955
UUART_T::PROTIEN
__IO uint32_t PROTIEN
Definition: uuart_reg.h:965