NVIC_SetPriority(EXTI2_3_IRQn, GPIO_IRQ_PRIO); NVIC_SetPriority(EXTI4_15_IRQn, GPIO_IRQ_PRIO);/* enable clock of the SYSCFG module for EXTI configuration */RCC->APB2ENR |= RCC_APB2ENR_SYSCFGCOMPEN;/* read pin number, set EXIT channel and enable global interrupt for EXTI channel */...
DPU就是在cx6的基础上加上了arm cpu,arm可以运行原来计算节点上那些组件。好处就是可以给裸金属动态添加...
NVIC_SetPriority(EXTI4_15_IRQn, GPIO_IRQ_PRIO);/* enable clock of the SYSCFG module for EXTI configuration */RCC->APB2ENR |= RCC_APB2ENR_SYSCFGCOMPEN;/* read pin number, set EXIT channel and enable global interrupt for EXTI channel */switch(dev) {#ifdefGPIO_0_ENcaseGPIO_0: GPIO_0...
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);/* USER CODE BEGIN USART1_MspInit 1 */HAL_NVIC_SetPriority(USART1_IRQn,0,1);HAL_NVIC_EnableIRQ(USART1_IRQn);/* USER CODE END USART1_MspInit 1 */}elseif(huart->Instance==USART2) {/* USER CODE BEGIN USART2_MspInit 0 *//* USER CODE END ...