From b3450fb22ca5faa9d2358db85055e0dc5991231b Mon Sep 17 00:00:00 2001 From: monte-monte <6649967+monte-monte@users.noreply.github.com> Date: Fri, 3 Jan 2025 08:10:13 +0200 Subject: [PATCH] Add USART1_REMAP_1 Added missing higher bit for remapping USART1 as per page 60 in RM. --- ch32v003fun/ch32v003fun.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ch32v003fun/ch32v003fun.h b/ch32v003fun/ch32v003fun.h index e2858004..a889ad81 100644 --- a/ch32v003fun/ch32v003fun.h +++ b/ch32v003fun/ch32v003fun.h @@ -5530,6 +5530,7 @@ typedef struct #define AFIO_PCFR1_SPI1_REMAP ((uint32_t)0x00000001) /* SPI1 remapping */ #define AFIO_PCFR1_I2C1_REMAP ((uint32_t)0x00000002) /* I2C1 remapping */ #define AFIO_PCFR1_USART1_REMAP ((uint32_t)0x00000004) /* USART1 remapping */ +#define AFIO_PCFR1_USART1_REMAP_1 ((uint32_t)0x00200000) /* USART1 remapping higher bit */ #define AFIO_PCFR1_USART2_REMAP ((uint32_t)0x00000008) /* USART2 remapping */ #define AFIO_PCFR1_USART3_REMAP ((uint32_t)0x00000030) /* USART3_REMAP[1:0] bits (USART3 remapping) */