File ns_power.c
FileList > apollo330 > ns_power.c
Go to the source code of this file
#include "am_bsp.h"#include "am_mcu_apollo.h"#include "am_util.h"#include "ns_core.h"#include "ns_peripherals_power.h"#include "am_hal_clkmgr.h"#include "am_hal_spotmgr.h"
Public Static Attributes
| Type | Name |
|---|---|
| ns_power_mode_e | current_power_mode = NS\_POWER\_MODE\_NOT\_SETPower Control Utilities. |
| ns_power_mode_e | desired_power_mode = NS\_POWER\_MODE\_NOT\_SET |
Public Functions
| Type | Name |
|---|---|
| void | ns_platform_deep_sleep (void) Wraps am_hal_sysctrl_sleep to enable and disable systems as needed. |
| void | ns_power_down_peripherals (const ns_power_config_t * pCfg) |
| void | ns_power_memory_config (const ns_power_config_t * pCfg) |
| uint32_t | ns_power_pdm_workaround_post (void) |
| uint32_t | ns_power_pdm_workaround_pre (void) |
| int32_t | ns_power_platform_config (const ns_power_config_t * pCfg) |
Macros
| Type | Name |
|---|---|
| define | ALL_RETAIN 1 |
| define | ELP_ON 1 |
Public Static Attributes Documentation
variable current_power_mode
Power Control Utilities.
ns_power_mode_e current_power_mode;
variable desired_power_mode
ns_power_mode_e desired_power_mode;
Public Functions Documentation
function ns_platform_deep_sleep
Wraps am_hal_sysctrl_sleep to enable and disable systems as needed.
void ns_platform_deep_sleep (
void
)
function ns_power_down_peripherals
void ns_power_down_peripherals (
const ns_power_config_t * pCfg
)
function ns_power_memory_config
void ns_power_memory_config (
const ns_power_config_t * pCfg
)
function ns_power_pdm_workaround_post
uint32_t ns_power_pdm_workaround_post (
void
)
function ns_power_pdm_workaround_pre
uint32_t ns_power_pdm_workaround_pre (
void
)
function ns_power_platform_config
int32_t ns_power_platform_config (
const ns_power_config_t * pCfg
)
Macro Definition Documentation
define ALL_RETAIN
#define ALL_RETAIN `1`
define ELP_ON
#define ELP_ON `1`
The documentation for this class was generated from the following file neuralspot/neuralspot/ns-peripherals/src/apollo330/ns_power.c