diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2017-05-19 21:56:41 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2017-05-19 21:56:45 +0100 |
commit | 2e905b72626d991c12637978a873cc6702d0c501 (patch) | |
tree | 5a7326bf53f936807f8d5e9e659926ace4cf2982 /reg/uart.h | |
parent | 7d7f3daeba7f07808e3e01d5f8d9fb649509d66a (diff) | |
download | mk20dx256-2e905b72626d991c12637978a873cc6702d0c501.tar.gz mk20dx256-2e905b72626d991c12637978a873cc6702d0c501.tar.xz mk20dx256-2e905b72626d991c12637978a873cc6702d0c501.zip |
fix issues introduced by enum change
Using enums for everything exposed some bugs.
Additionally, some masks can't fit in enums, maybe all masks should be
done using #define, that will have to wait.
Diffstat (limited to 'reg/uart.h')
-rw-r--r-- | reg/uart.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -116,14 +116,14 @@ enum { #define UART_MA1(base) REG_8((base) + 0x8) enum { MA1_MA = 0, // Match Address - MA1_MA_M = REG_8_M(MA1_M, 8), + MA1_MA_M = REG_8_M(MA1_MA, 8), }; // UART Match Address Registers 2 #define UART_MA2(base) REG_8((base) + 0x9) enum { MA2_MA = 0, // Match Address - MA2_MA_M = REG_8_M(MA2_M, 8), + MA2_MA_M = REG_8_M(MA2_MA, 8), }; // UART Control Register 4 |