Skip to content

Commit

Permalink
Merge pull request #45 from antoinevg/antoinevg/fix-greatfet-441
Browse files Browse the repository at this point in the history
Fix incorrect field values for UART1 LCR register
  • Loading branch information
antoinevg authored Dec 17, 2024
2 parents dbd1850 + 3728194 commit 1161173
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions firmware/include/drivers/uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ typedef enum {

typedef enum {
NO_PARITY = 0b000,
ODD_PARITY = 0b100,
EVEN_PARITY = 0b101,
PARITY_STUCK_AT_ONE = 0b110,
ODD_PARITY = 0b001,
EVEN_PARITY = 0b011,
PARITY_STUCK_AT_ONE = 0b101,
PARITY_STUCK_AT_ZERO = 0b111,
} uart_parity_type_t;

Expand Down
1 change: 1 addition & 0 deletions firmware/platform/lpc43xx/include/drivers/platform_uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ typedef volatile struct ATTR_PACKED {
uint32_t parity_mode : 3;
uint32_t use_break : 1;
uint32_t divior_latch_access_enabled : 1;
uint32_t : 24;
};
uint32_t line_control_register;
};
Expand Down

0 comments on commit 1161173

Please sign in to comment.