In this repo there are many ch32v00x.h files,
worst of all they disagree, e.g.
ch32v003-main\EVT\EXAM\SRC\Peripheral\inc\ch32v00x.h
#define ADC_JOFFSET1 ((uint16_t)0x0FFF) /* Data offset for injected channel 1 */
#define ADC_RDATAR_DATA ((uint32_t)0x0000FFFF) /* Regular data */
#define FLASH_CTLR_PAGE_PG ((uint16_t)0x00010000) /* Page Programming 64Byte */
#define GPIO_LCKK ((uint32_t)0x00010000) /* Lock key */
#define AFIO_EXTICR1_EXTI0 ((uint16_t)0x000F) /* EXTI 0 configuration */
#define RCC_ADCPRE ((uint32_t)0x0000C000) /* ADCPRE[1:0] bits (ADC prescaler) */
..
ch32v003-main\CH32V003_1Line_Base_on_CH32F103\CH32V003_FlashPrg_IN_RAM\Peripheral\inc\ch32v00x.h
#define ADC_JOFFSET1 ((uint16_t)0x03FF) /* Data offset for injected channel 1 */
#define ADC_RDATAR_DATA ((uint32_t)0xFFFFFFFF) /* Regular data */
#define FLASH_CTLR_PAGE_PG ((uint32_t)0x00010000) /* Page Programming 64Byte */
#define GPIO_LCKK ((uint32_t)0x00000100)
#define AFIO_EXTICR1_EXTI0 ((uint16_t)0x0003) /* EXTI 0 configuration */
#define RCC_ADCPRE ((uint32_t)0x0000F800) /* ADCPRE[4:0] bits (ADC prescaler) */
..
Please only have one ch32v00x.h and make sure it's correct.
In this repo there are many ch32v00x.h files,
worst of all they disagree, e.g.
Please only have one ch32v00x.h and make sure it's correct.