STM32 有如下程序片段:#define ADC1_DR_Address ((u32)0x4001244C)#define ADC3_DR_Address ((u32)0x40013C4C)..DMA_DeInit(DMA1_Channel1); DMA_InitStructure.DMA_PeripheralBaseAddr = ADC1_DR_Address; DMA_InitStructure.DMA_MemoryBaseAddr = (u32)&ADC1
}/* De-Initialize the DMA channel associated to transmission process */if(huart->hdmatx !=0) {HAL_DMA_DeInit(huart->hdmatx); }/*##-4- Disable the NVIC for DMA ###*/HAL_NVIC_DisableIRQ(USARTx_DMA_TX_IRQn); HAL_NVIC_DisableIRQ(USARTx_DMA_RX_IRQn); } 開發者ID:pierreroth64,項...
}/* De-Initialize the DMA channel associated to transmission process */if(huart->hdmatx !=0) {HAL_DMA_DeInit(huart->hdmatx); }/*##-4- Disable the NVIC for DMA ###*/HAL_NVIC_DisableIRQ(USARTx_DMA_TX_IRQn); HAL_NVIC_DisableIRQ(USARTx_DMA_RX_IRQn); } 开发者ID:pierreroth64,项...