File tree Expand file tree Collapse file tree 2 files changed +32
-3
lines changed
TARGET_Ambiq_Micro/TARGET_Apollo3/device Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Original file line number Diff line number Diff line change
1
+ /* mbed Microcontroller Library
2
+ * Copyright (c) 2006-2018 Arm Limited and affiliates.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ #include "sleep_api.h"
18
+ #include "am_hal_sysctrl.h"
19
+
20
+ void hal_sleep (void )
21
+ {
22
+ am_hal_sysctrl_sleep (AM_HAL_SYSCTRL_SLEEP_NORMAL );
23
+ }
24
+
25
+ void hal_deepsleep (void )
26
+ {
27
+ am_hal_sysctrl_sleep (AM_HAL_SYSCTRL_SLEEP_DEEP );
28
+ }
Original file line number Diff line number Diff line change 7167
7167
"features" : [" BLE" ],
7168
7168
"default_toolchain" : " GCC_ARM" ,
7169
7169
"supported_toolchains" : [
7170
- " GCC_ARM" ,
7170
+ " GCC_ARM" ,
7171
7171
" ARMC6"
7172
7172
],
7173
7173
"public" : false ,
7185
7185
" STDIO_MESSAGES" ,
7186
7186
" FLASH" ,
7187
7187
" SPI" ,
7188
- " I2C"
7188
+ " I2C" ,
7189
+ " SLEEP"
7189
7190
],
7190
7191
"components" : [
7191
7192
" FLASHIAP"
7218
7219
},
7219
7220
"SFE_ARTEMIS_THING_PLUS" : {
7220
7221
"inherits" : [" AMA3B1KK" ]
7221
- },
7222
+ },
7222
7223
"SFE_EDGE" : {
7223
7224
"inherits" : [" AMA3B1KK" ],
7224
7225
"components_add" : [" lis2dh12" , " hm01b0" ]
You can’t perform that action at this time.
0 commit comments