W806 How to configure the interrupt vector and interrupt priority, How do I write an interrupt handler.

Publish in 2022-04-06 20: 01: 49
I went through almost everything I could find W800 Data on a series of chips,  It is found that only in the register manual there are operations on interrupt masking and interrupt flags,  But there is no information on the interrupt entry,  authority SDK There are also almost no interruptions associated demo.  So how do you control interrupt priority in your program,  How do I write an interrupt handler?  

See more

follower
0
Be viewed
2. 7k
2 Multiple replies
ZYQ
ZYQ 2022-04-07
我已不再支持 W80X 任何Related problemthe回复, 请大家不要私信, 有problem找 isme 谢谢

This is from the ah in startup. S In the file, I thought that was the interrupt vector table at the beginning, The name inside is the name of the interrupt handler, official demo There are interrupt related examples in the exampleSnipaste_2022-04-07_09-34-03. png

yangxijing
yangxijing 2022-04-18
This guy is lazy, Nothing written!

From the official group SDK, GPIO interrupted demo
WM_SDK_W806_v0. 6. 0

'''
static void GPIO_Init (void)
{

GPIO_InitTypeDef GPIO_InitStruct = {0}; 

__HAL_RCC_GPIO_CLK_ENABLE () ; 

GPIO_InitStruct. Pin = GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2; 
GPIO_InitStruct. Mode = GPIO_MODE_OUTPUT; 
GPIO_InitStruct. Pull = GPIO_NOPULL; 
HAL_GPIO_Init (GPIOB,  &GPIO_InitStruct) ; 
HAL_GPIO_WritePin (GPIOB,  GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2,  GPIO_PIN_SET) ; 

GPIO_InitStruct. Pin = GPIO_PIN_5; 
GPIO_InitStruct. Mode = GPIO_MODE_IT_FALLING; 
GPIO_InitStruct. Pull = GPIO_PULLUP; 
HAL_GPIO_Init (GPIOB,  &GPIO_InitStruct) ; 

HAL_NVIC_SetPriority (GPIOB_IRQn,  0) ; 
HAL_NVIC_EnableIRQ (GPIOB_IRQn) ; 

}
'''

Write an answer

Please login to post your answer, Click to log in

publish
problem

Share
Friend

Cell phone
browse

Scan code mobile browsing