freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于stm32芯片的128點(diǎn)fft-文庫吧資料

2025-07-03 18:56本頁面
  

【正文】 Config(RCC_HCLK_Div2)。 /* HCLK = SYSCLK */ RCC_HCLKConfig(RCC_SYSCLK_Div1)。 if(HSEStartUpStatus == SUCCESS) { /* Enable Prefetch Buffer */ FLASH_PrefetchBufferCmd(FLASH_PrefetchBuffer_Enable)。 /* Enable HSE */ RCC_HSEConfig(RCC_HSE_ON)。 while (1) { FFT_solve()。 /*USART Configuration*/ USART_Configuration()。 /* GPIO configuration */ GPIO_Configuration()。endif /* System clocks configuration */ RCC_Configuration()。u8 Flag = 0。//int *pz = (int*)0x1f80。double mo[128]。double fr[128]。double pr[128]。u16 pz_buff[LEN]。/* Private functions */u16 data_buff[LEN]。void FFT_solve(void)。void ADC_ALL_Init(void)。 void USART_Configuration(void)。void TIM_BaseConfiguration(void)。void GPIO_Configuration(void)。Main函數(shù)/******************** (C) COPYRIGHT 2008 STMicroelectronics ********************* File Name : * Author : MCD Application Team* Version : * Date : 06/13/2008* Description : Main program body********************************************************************************* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE* CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.*******************************************************************************//* Includes */include include include include /* Private typedef *//* Private define */define ADC1_DR_Address ((u32)0x4001244C)define USART1_DR_Base ((u32)0x40013804)define LEN 128/* Private macro *//* Private variables */ErrorStatus HSEStartUpStatus。 /* Private function prototypes */void RCC_Configuration(void)。void NVIC_Configuration(void)。void DMA_Configuration(void)。void ADC_Configuration(void)。void FFT_Configuration(double *pr,double *pi,int n,int k,double*fr,double*fi,int l,int il)。void Delay(u32 counter)。u16 px_buff[LEN]。double x[128]。double pi[128]。double fi[128]。//int *px = (int*)0x1f00。int xm,zm,i,t = 0。/******************************************************************************** Function Name : main* Description : Main program* Input : None* Output : None* Return : None*******************************************************************************/int main(void){ifdef DEBUG debug()。 /* NVIC configuration */ NVIC_Configuration()。 /* ADC1 configuration */ ADC_Configuration()。 ADC_ALL_Init()。 }}/******************************************************************************** Function Name : RCC_Configuration* Description : Configures the different system clocks.* Input : None* Output : None* Return : None*******************************************************************************/void RCC_Configuration(void){ /* RCC system reset(for debug purpose) */ RCC_DeInit()。 /* Wait till HSE is ready */ HSEStartUpStatus = RCC_WaitForHSEStartUp()。 /* Flash 2 wait state */ FLASH_SetLatency(FLASH_Latency_2)。 /* PCLK2 = HCLK */ RCC_PCLK2Config(RCC_HCLK_Div1)。 /* ADCCLK = PCLK2/4 */ RCC_ADCCLKConfig(RCC_PCLK2_Div4)。 /* Enable PLL */ RCC_PLLCmd(ENABLE)。 /* Wait till PLL is used as system clock source */ while(RCC_GetSYSCLKSource() != 0x08) { } }/* Enable peripheral clocks */ /* Enable DMA1 clock */ RCC_AHBPeriphClockCmd(RCC_AHBPeriph_DMA1, ENABLE)。 /*Enable TIM2 clock*/ RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM2, ENABLE)。}/******************************************************************************** Function Name : GPIO_Configuration* Description : Configures the different GPIO ports.* Input : None* Output : None* Return : None*******************************************************************************/void GPIO_Configuration(void){ GPIO_InitTypeDef GPIO_InitStructure。 = GPIO_Mode_AIN。GPIO_InitStructure)。 = GPIO_Mode_AIN。GPIO_InitStructure)。 = GPIO_Mode_IN_FLOATING。GPIO_InitStructure)。 = GPIO_Speed_50MHz。 GPIO_Init(GPIOA, amp。}/******************************************************************************** Function Name : NVIC_Configuration* Description : Configures Vector Table base location.* Input : None* Output : None* Return : None*******************************************************************************/void NVIC_Configuration(void){ NVIC_InitTypeDef NVIC_InitStructure。 else /* VECT_TAB_FLASH */ /* Set the Vector Table base location at 0x08000000 */ NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x0)。 = 0。 = ENABLE。NVIC_InitStructure)。 = 0。 = ENABLE。NVIC_InitStructure)。 /* Time base configuration */
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1