The OP
Published on 2018-10-1 20:02
Only look at the author
This post is from GD32 MCU
Latest reply
/* enable the key clock */ rcu_periph_clock_enable(RCU_GPIOB); rcu_periph_clock_enable(RCU_CFGCMP); /* configure button pin as input */ gpio_mode_set(GPIOB, GPIO_MODE_INPUT, GPIO_PUPD_NONE, GPIO_PIN_9); /* enable and set key EXTI interrupt to the lowest priority */ nvic_irq_ enable(EXTI4_15_IRQn, 2U, 0U); /* connect key EXTI line to key GPIO pin */ syscfg_exti_line_config(EXTI_SOURCE_GPIOB, EXTI_SOURCE_PIN9); /* configure key EXTI line */ exti_init(EXTI_9, EXTI_INTERRUPT, EXTI_TRIG_FALLING);复制代码B9 tested and available. The original poster's code seems to be missing rcu_periph_clock_enable(RCU_CFGCMP); this
Details
Published on 2018-10-1 22:36
| ||
|
||
This post is from GD32 MCU
| ||
|
||
|
4
Published on 2018-10-1 21:43
Only look at the author
This post is from GD32 MCU
Comments | ||
Personal signature
So TM what......?
|
||
|
This post is from GD32 MCU
| ||
|
||
|
6
Published on 2018-10-1 22:11
Only look at the author
This post is from GD32 MCU
Comments | ||
Personal signature
So TM what......?
|
||
|
This post is from GD32 MCU
Comments | ||
|
||
|
This post is from GD32 MCU
| ||
|
||
|
9
Published on 2018-10-1 22:36
Only look at the author
This post is from GD32 MCU
| ||
Personal signature
So TM what......?
|
||
|
This post is from GD32 MCU
| ||
|
||
|
EEWorld Datasheet Technical Support
EEWorld
subscription
account
EEWorld
service
account
Automotive
development
circle
About Us Customer Service Contact Information Datasheet Sitemap LatestNews
Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190