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?
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 example
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) ;
}
'''