From 2e905b72626d991c12637978a873cc6702d0c501 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Fri, 19 May 2017 21:56:41 +0100 Subject: 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. --- reg/uart.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'reg/uart.h') diff --git a/reg/uart.h b/reg/uart.h index 0ec2105..f856b69 100644 --- a/reg/uart.h +++ b/reg/uart.h @@ -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 -- cgit v1.2.3-54-g00ecf