diff options
Diffstat (limited to 'fdl/ch573/uart.fdl')
-rw-r--r-- | fdl/ch573/uart.fdl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/fdl/ch573/uart.fdl b/fdl/ch573/uart.fdl index bc2df2d..9a4f0c5 100644 --- a/fdl/ch573/uart.fdl +++ b/fdl/ch573/uart.fdl @@ -70,7 +70,16 @@ package ch573.uart { /** Line Control Register */ reg lcr(8) : struct { /** UART word size (5-8 bits) */ - word_sz : (2); + word_sz : enum(2) { + [[ c: unqualified ]] + WORD_SZ_5_BITS = 0b00, + [[ c: unqualified ]] + WORD_SZ_6_BITS = 0b01, + [[ c: unqualified ]] + WORD_SZ_7_BITS = 0b10, + [[ c: unqualified ]] + WORD_SZ_8_BITS = 0b11, + }; /** Stop bit setting */ stop_bit : bit_t; /** Parity bit enable */ |