From bdd3895472578b8cd298857dc9dbc52a4c8ea8ed Mon Sep 17 00:00:00 2001 From: ThunderSoft_mbed_os <44602518+ThunderSoft123@users.noreply.github.com> Date: Mon, 3 Dec 2018 09:38:53 +0800 Subject: [PATCH] Update sleep.c --- targets/TARGET_TT/TARGET_TT_M3HQ/sleep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/targets/TARGET_TT/TARGET_TT_M3HQ/sleep.c b/targets/TARGET_TT/TARGET_TT_M3HQ/sleep.c index bd29fa576c..9e1d93c2b1 100644 --- a/targets/TARGET_TT/TARGET_TT_M3HQ/sleep.c +++ b/targets/TARGET_TT/TARGET_TT_M3HQ/sleep.c @@ -1,6 +1,6 @@ /* mbed Microcontroller Library - * (C)Copyright TOSHIBA ELECTRONIC DEVICES & STORAGE CORPORATION 2017 All rights reserved - * + * (C)Copyright TOSHIBA ELECTRONIC DEVICES & STORAGE CORPORATION 2018 All rights reserved + * SPDX-License-Identifier: Apache-2.0 * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -52,7 +52,7 @@ void hal_deepsleep(void) tmp &= EXTERNEL_OSC_MASK; TSB_CG->OSCCR = tmp; TSB_CG_OSCCR_IHOSC2EN = DISABLE; //Stop IHOSC2 of OFD - // Wait for status of OFD until off 0 + // Wait for status of OFD until off ”0” while(TSB_CG_OSCCR_IHOSC2F); __DSB(); // Enter STOP1 mode __WFI();