HW layer for the Nucleo board, it only work with old BLE_API
Dependents: Hello_BLE F446RE-BLE
Fork of X_NUCLEO_IDB0XA1 by
platform/src/clock.c@56:20e83a284019, 2014-10-01 (annotated)
- Committer:
- mridup
- Date:
- Wed Oct 01 09:52:26 2014 +0000
- Revision:
- 56:20e83a284019
Foundation for mbed HAL adaptation from STM32 Cube HAL adaptation. Tested on L0 initially.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mridup | 56:20e83a284019 | 1 | |
mridup | 56:20e83a284019 | 2 | #include "clock.h" |
mridup | 56:20e83a284019 | 3 | #include "wait_api.h" |
mridup | 56:20e83a284019 | 4 | #include "rtc_time.h" |
mridup | 56:20e83a284019 | 5 | |
mridup | 56:20e83a284019 | 6 | const uint32_t CLOCK_SECOND = 1000; |
mridup | 56:20e83a284019 | 7 | |
mridup | 56:20e83a284019 | 8 | /*---------------------------------------------------------------------------*/ |
mridup | 56:20e83a284019 | 9 | |
mridup | 56:20e83a284019 | 10 | void Clock_Init(void) |
mridup | 56:20e83a284019 | 11 | { |
mridup | 56:20e83a284019 | 12 | //Not Used |
mridup | 56:20e83a284019 | 13 | } |
mridup | 56:20e83a284019 | 14 | |
mridup | 56:20e83a284019 | 15 | /*---------------------------------------------------------------------------*/ |
mridup | 56:20e83a284019 | 16 | |
mridup | 56:20e83a284019 | 17 | tClockTime Clock_Time(void) |
mridup | 56:20e83a284019 | 18 | { |
mridup | 56:20e83a284019 | 19 | return clock(); |
mridup | 56:20e83a284019 | 20 | } |
mridup | 56:20e83a284019 | 21 | |
mridup | 56:20e83a284019 | 22 | /*---------------------------------------------------------------------------*/ |
mridup | 56:20e83a284019 | 23 | /** |
mridup | 56:20e83a284019 | 24 | * Wait for a multiple of 1 ms. |
mridup | 56:20e83a284019 | 25 | * |
mridup | 56:20e83a284019 | 26 | */ |
mridup | 56:20e83a284019 | 27 | void Clock_Wait(int i) |
mridup | 56:20e83a284019 | 28 | { |
mridup | 56:20e83a284019 | 29 | wait_ms(i); |
mridup | 56:20e83a284019 | 30 | } |
mridup | 56:20e83a284019 | 31 | /*---------------------------------------------------------------------------*/ |
mridup | 56:20e83a284019 | 32 | |
mridup | 56:20e83a284019 | 33 | |
mridup | 56:20e83a284019 | 34 |