HAL_NVIC_EnableIRQ(EXTI0_IRQn); HAL_NVIC_SetPriority(EXTI0_IRQn,0,1);//Initialize the accelerometerLIS3DSH_Init(&LIS3DSH_InitStruct);//Setting the interrupt configuration of the accelerometerLIS3DSH_DataReadyInterruptConfig(&LIS3DSH_IntConfigStruct); } 开发者ID:RichardCheung1,项目名称:ECSE426-...