Dependents: cobaLCDJoyMotor_Thread odometry_omni_3roda_v3 odometry_omni_3roda_v1 odometry_omni_3roda_v2 ... more
features/unsupported/tests/mbed/wfi/main.cpp
- Committer:
- be_bryan
- Date:
- 2017-12-11
- Revision:
- 0:b74591d5ab33
File content as of revision 0:b74591d5ab33:
#include "mbed.h" #include "test_env.h" int main(void) { MBED_HOSTTEST_TIMEOUT(15); MBED_HOSTTEST_SELECT(wfi_auto); MBED_HOSTTEST_DESCRIPTION(WFI correct behavior); MBED_HOSTTEST_START("MBED_36"); #if defined TARGET_STM32F4 TIM_HandleTypeDef TimMasterHandle; TimMasterHandle.Instance = TIM5; __HAL_TIM_DISABLE_IT(&TimMasterHandle, TIM_IT_CC2); #endif int count = 0; while(1) { printf("%d\r\n", count++); __WFI(); } }