Skip to content

Commit 2c03604

Browse files
Fix a couple of inadvertent changes
1 parent 8d6edb3 commit 2c03604

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

drivers/tests/TESTS/mbed_drivers/ticker/main.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include "greentea-client/test_env.h"
1919
#include "utest/utest.h"
2020
#include "unity/unity.h"
21-
#include <cinttypes>
2221

2322
#if !DEVICE_USTICKER
2423
#error [NOT_SUPPORTED] test not supported
@@ -185,9 +184,7 @@ void test_multi_ticker(void)
185184
ticker[i].attach(callback(increment_multi_counter), MULTI_TICKER_TIME);
186185
}
187186

188-
printf("before sleep: %" PRIu32 "\n", us_ticker_read());
189187
ThisThread::sleep_for(MULTI_TICKER_TIME + extra_wait);
190-
printf("after sleep: %" PRIu32 "\n", us_ticker_read());
191188

192189
TEST_ASSERT_EQUAL(TICKER_COUNT, multi_counter);
193190

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT105x/clock_config.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*
2+
* Copyright 2023 NXP
3+
* All rights reserved.
4+
*
5+
* SPDX-License-Identifier: BSD-3-Clause
6+
*/
7+
18
#ifndef _CLOCK_CONFIG_H_
29
#define _CLOCK_CONFIG_H_
310

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT105x/mbed_overrides.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,15 +391,14 @@ void vPortPOST_SLEEP_PROCESSING(clock_mode_t powermode)
391391
// Override of MIMXRT SDK delay function.
392392
// The default delay function used the full CPU clock frequency, so it produced massive overshoots
393393
// (delaying 30x longer than intended) when the MCU is exiting sleep (and core clock is reduced to 24MHz).
394-
// This delay function uses the us ticker which always ticks at the same speed when the CPU clock is reduced.
394+
// This delay function uses the us ticker which always ticks at the same speed even when the CPU clock is reduced.
395395
void SDK_DelayAtLeastUs(uint32_t delay_us)
396396
{
397397
uint32_t initialTickerValue = us_ticker_read();
398398
uint32_t targetTickerValue = delay_us + initialTickerValue;
399399

400400
// Wait for rollover if needed
401-
if(targetTickerValue < initialTickerValue)
402-
{
401+
if(targetTickerValue < initialTickerValue) {
403402
while(us_ticker_read() > initialTickerValue) {}
404403
}
405404

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT105x/us_ticker.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
#include "fsl_pit.h"
2121
#include "clock_config.h"
2222

23-
#include "stdio.h"
24-
#include "inttypes.h"
25-
2623
const ticker_info_t* us_ticker_get_info()
2724
{
2825
static const ticker_info_t info = {

0 commit comments

Comments
 (0)