mbed-os
Fork of mbed-os by
features/unsupported/tests/mbed/wfi/main.cpp
- Committer:
- elessair
- Date:
- 2016-10-23
- Revision:
- 0:f269e3021894
File content as of revision 0:f269e3021894:
#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(); } }