Skip to content
Snippets Groups Projects
Unverified Commit dcaf7981 authored by CNLohr's avatar CNLohr Committed by GitHub
Browse files

Merge pull request #288 from renzenicolai/renze/add-gpiob

Add GPIOB define for CH32V10x, CH32V20x and CH32V30x
parents 8e86d08c f16c8d63
No related branches found
No related tags found
No related merge requests found
......@@ -1689,6 +1689,9 @@ typedef struct
#define AFIO_BASE (APB2PERIPH_BASE + 0x0000)
#define EXTI_BASE (APB2PERIPH_BASE + 0x0400)
#define GPIOA_BASE (APB2PERIPH_BASE + 0x0800)
#if defined(CH32V10x) || defined(CH32V20x) || defined(CH32V30x)
#define GPIOB_BASE (APB2PERIPH_BASE + 0x0C00)
#endif
#define GPIOC_BASE (APB2PERIPH_BASE + 0x1000)
#define GPIOD_BASE (APB2PERIPH_BASE + 0x1400)
#if defined(CH32V10x) || defined(CH32V20x) || defined(CH32V30x)
......@@ -1851,6 +1854,9 @@ typedef struct
#define AFIO ((AFIO_TypeDef *)AFIO_BASE)
#define EXTI ((EXTI_TypeDef *)EXTI_BASE)
#define GPIOA ((GPIO_TypeDef *)GPIOA_BASE)
#if defined(CH32V10x) || defined(CH32V20x) || defined(CH32V30x)
#define GPIOB ((GPIO_TypeDef *)GPIOB_BASE)
#endif
#define GPIOC ((GPIO_TypeDef *)GPIOC_BASE)
#define GPIOD ((GPIO_TypeDef *)GPIOD_BASE)
#if defined(CH32V10x) || defined(CH32V20x) || defined(CH32V30x)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment