mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
Diff: hal/mbed_sleep_manager.c
- Revision:
- 187:0387e8f68319
- Parent:
- 186:707f6e361f3e
- Child:
- 188:bcfe06ba3d64
diff -r 707f6e361f3e -r 0387e8f68319 hal/mbed_sleep_manager.c --- a/hal/mbed_sleep_manager.c Fri Jun 22 16:45:37 2018 +0100 +++ b/hal/mbed_sleep_manager.c Thu Sep 06 13:40:20 2018 +0100 @@ -82,7 +82,7 @@ static sleep_statistic_t sleep_stats[STATISTIC_COUNT]; -static sleep_statistic_t* sleep_tracker_find(const char *const filename) +static sleep_statistic_t *sleep_tracker_find(const char *const filename) { for (int i = 0; i < STATISTIC_COUNT; ++i) { if (sleep_stats[i].identifier == filename) { @@ -93,7 +93,7 @@ return NULL; } -static sleep_statistic_t* sleep_tracker_add(const char* const filename) +static sleep_statistic_t *sleep_tracker_add(const char *const filename) { for (int i = 0; i < STATISTIC_COUNT; ++i) { if (sleep_stats[i].identifier == NULL) { @@ -121,7 +121,7 @@ } debug("[id: %s, count: %u]\r\n", sleep_stats[i].identifier, - sleep_stats[i].count); + sleep_stats[i].count); } } @@ -139,7 +139,7 @@ debug("LOCK: %s, ln: %i, lock count: %u\r\n", filename, line, deep_sleep_lock); } -void sleep_tracker_unlock(const char* const filename, int line) +void sleep_tracker_unlock(const char *const filename, int line) { sleep_statistic_t *stat = sleep_tracker_find(filename);