diff options
author | Damien George <damien.p.george@gmail.com> | 2014-07-03 13:25:24 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-07-03 13:25:24 +0100 |
commit | 40f3c026823f8951a2fa04e9c7fc93c75bc27bec (patch) | |
tree | c9c8210654c7114f00c5234a8481d9b5fbd28ce0 /stmhal/rtc.c | |
parent | 065aba587571150074ea79483ffa72c0fe6bc8c8 (diff) |
Rename machine_(u)int_t to mp_(u)int_t.
See discussion in issue #50.
Diffstat (limited to 'stmhal/rtc.c')
-rw-r--r-- | stmhal/rtc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stmhal/rtc.c b/stmhal/rtc.c index 8f0d00732..9cc926876 100644 --- a/stmhal/rtc.c +++ b/stmhal/rtc.c @@ -51,7 +51,7 @@ RTC_HandleTypeDef RTCHandle; // rtc_info indicates various things about RTC startup // it's a bit of a hack at the moment -static machine_uint_t rtc_info; +static mp_uint_t rtc_info; // Note: LSI is around (32KHz), these dividers should work either way // ck_spre(1Hz) = RTCCLK(LSE) /(uwAsynchPrediv + 1)*(uwSynchPrediv + 1) @@ -90,7 +90,7 @@ void rtc_init(void) { RCC_LSEConfig(RCC_LSE_ON); // Wait till LSE is ready - machine_uint_t sys_tick = sys_tick_counter; + mp_uint_t sys_tick = sys_tick_counter; while((RCC_GetFlagStatus(RCC_FLAG_LSERDY) == RESET) && (--timeout > 0)) { } @@ -181,7 +181,7 @@ void rtc_init(void) { RTCHandle.Init.OutPutPolarity = RTC_OUTPUT_POLARITY_HIGH; RTCHandle.Init.OutPutType = RTC_OUTPUT_TYPE_OPENDRAIN; - machine_uint_t tick = HAL_GetTick(); + mp_uint_t tick = HAL_GetTick(); if (HAL_RTC_Init(&RTCHandle) != HAL_OK) { // init error |