File tree Expand file tree Collapse file tree 2 files changed +35
-5
lines changed
TARGET_Ambiq_Micro/TARGET_Apollo3/device Expand file tree Collapse file tree 2 files changed +35
-5
lines changed Original file line number Diff line number Diff line change
1
+ /* mbed Microcontroller Library
2
+ * Copyright (c) 2006-2020 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 7228
7228
"features" : [" BLE" ],
7229
7229
"default_toolchain" : " GCC_ARM" ,
7230
7230
"supported_toolchains" : [
7231
- " GCC_ARM" ,
7231
+ " GCC_ARM" ,
7232
7232
" ARMC6"
7233
7233
],
7234
7234
"public" : false ,
7246
7246
" STDIO_MESSAGES" ,
7247
7247
" FLASH" ,
7248
7248
" SPI" ,
7249
- " I2C"
7249
+ " I2C" ,
7250
+ " SLEEP"
7250
7251
],
7251
7252
"components" : [
7252
7253
" FLASHIAP"
7253
7254
],
7254
7255
"macros" : [
7255
7256
" CORDIO_ZERO_COPY_HCI" ,
7256
- " USE_AMBIQ_DRIVER"
7257
+ " USE_AMBIQ_DRIVER" ,
7258
+ " MBED_TICKLESS"
7257
7259
]
7258
7260
},
7259
7261
"AMA3B1KK" : {
7260
7262
"public" : false ,
7261
7263
"inherits" : [" FAMILY_Apollo3" ],
7262
- "macros_add" : [" AM_PACKAGE_BGA" ]
7264
+ "macros_add" : [" AM_PACKAGE_BGA" , " MBED_TICKLESS " ]
7263
7265
},
7264
7266
"SFE_ARTEMIS" : {
7265
7267
"inherits" : [" AMA3B1KK" ]
7279
7281
},
7280
7282
"SFE_ARTEMIS_THING_PLUS" : {
7281
7283
"inherits" : [" AMA3B1KK" ]
7282
- },
7284
+ },
7283
7285
"SFE_EDGE" : {
7284
7286
"inherits" : [" AMA3B1KK" ],
7285
7287
"components_add" : [" lis2dh12" , " hm01b0" ]
You can’t perform that action at this time.
0 commit comments