Skip to content

Commit

Permalink
Merge pull request #478 from jurriaan/fix-usart-on-ch32x03x
Browse files Browse the repository at this point in the history
Fix missing USART constants for CH32X03x
  • Loading branch information
cnlohr authored Dec 21, 2024
2 parents 8943a99 + 4399fa2 commit d12ef19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ch32v003fun/ch32v003fun.h
Original file line number Diff line number Diff line change
Expand Up @@ -2673,13 +2673,15 @@ typedef struct
#if defined(CH32V10x) || defined(CH32V30x)
#define SPI3 ((SPI_TypeDef *) SPI3_BASE)
#endif
#endif // defined(CH32V10x) || defined(CH32V20x) || defined(CH32V30x)
#if defined(CH32V10x) || defined(CH32V20x) || defined(CH32V30x) || defined(CH32X03x)
#define USART2 ((USART_TypeDef *)USART2_BASE)
#define USART3 ((USART_TypeDef *)USART3_BASE)
#define UART4 ((USART_TypeDef *)UART4_BASE)
#if defined(CH32V10x) || defined(CH32V30x)
#define UART5 ((USART_TypeDef *) UART5_BASE)
#endif
#endif // defined(CH32V10x) || defined(CH32V20x) || defined(CH32V30x)
#endif // defined(CH32V10x) || defined(CH32V20x) || defined(CH32V30x) || defined(CH32X03x)
#define I2C1 ((I2C_TypeDef *)I2C1_BASE)
#if defined(CH32V10x) || defined(CH32V20x) || defined(CH32V30x)
#define I2C2 ((I2C_TypeDef *)I2C2_BASE)
Expand Down

0 comments on commit d12ef19

Please sign in to comment.