mbed
Fork of mbed-dev by
Revision 170:a46dc6708fb5, committed 2018-03-06
- Comitter:
- DirtyGray
- Date:
- Tue Mar 06 18:18:11 2018 +0000
- Parent:
- 169:e3b6fe271b81
- Commit message:
- Personal test environment for STM32F7
Changed in this revision
platform/mbed_wait_api_no_rtos.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/platform/mbed_wait_api_no_rtos.c Wed Jul 19 17:31:21 2017 +0100 +++ b/platform/mbed_wait_api_no_rtos.c Tue Mar 06 18:18:11 2018 +0000 @@ -21,11 +21,18 @@ #include "platform/mbed_wait_api.h" #include "hal/us_ticker_api.h" +void wait_minute(float m) { + //35m maximum minutes allowed, over will exceed maximum float value + wait_us(m * 60000000.0f); +} + void wait(float s) { + //2147 maximum seconds allowed, over will exceed maximum float value wait_us(s * 1000000.0f); } void wait_ms(int ms) { + //21487483 maximum milliseconds allowed, over will exceed maximum integer value wait_us(ms * 1000); }