File tree Expand file tree Collapse file tree
src/hal/drivers/mesa-hostmot2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 148148#define HM2_PKTUART_CLEAR 0x80010000
149149
150150// Receive count register
151- #define HM2_PKTUART_RCR_MASK 0xff00c3ff
151+ #define HM2_PKTUART_RCR_MASK 0xff01c3ff
152152#define HM2_PKTUART_RCR_ICHARBITS_BIT 24 // bits 24..31 Max inter-character bit-times (V3+ only)
153+ #define HM2_PKTUART_RCR_ERRORPARITY_BIT 16
153154#define HM2_PKTUART_RCR_ERROROVERRUN_BIT 15
154155#define HM2_PKTUART_RCR_ERRORSTARTBIT_BIT 14
155156#define HM2_PKTUART_RCR_NBYTES_BIT 0 // bits 0..9 Frame size
156157#define HM2_PKTUART_RCR_ICHARBITS_MASK (0xffu << HM2_PKTUART_RCR_ICHARBITS_BIT)
157158#define HM2_PKTUART_RCR_ICHARBITS (x ) (((x) & 0xffu) << HM2_PKTUART_RCR_ICHARBITS_BIT)
158159#define HM2_PKTUART_RCR_ICHARBITS_VAL (x ) (((x) >> HM2_PKTUART_RCR_ICHARBITS_BIT) & 0xffu)
160+ #define HM2_PKTUART_RCR_ERRORPARITY (1u << HM2_PKTUART_RCR_ERRORPARITY_BIT)
159161#define HM2_PKTUART_RCR_ERROROVERRUN (1u << HM2_PKTUART_RCR_ERROROVERRUN_BIT)
160162#define HM2_PKTUART_RCR_ERRORSTARTBIT (1u << HM2_PKTUART_RCR_ERRORSTARTBIT_BIT)
161163#define HM2_PKTUART_RCR_NBYTES_MASK (0x3ffu << HM2_PKTUART_RCR_NBYTES_BIT)
You can’t perform that action at this time.
0 commit comments