Skip to content

File ns_ambiqsuite_harness.h

FileList > includes-api > ns_ambiqsuite_harness.h

Go to the source code of this file

Abstract common AmbiqSuite function calls. More...

  • #include "am_bsp.h"
  • #include "am_mcu_apollo.h"
  • #include "am_util.h"
  • #include "ns_core.h"
  • #include "ns_timer.h"
  • #include <am_util_stdio.h>

Public Functions

Type Name
int32_t ns_cryptoless_itm_printf_disable (void)
Disable prints enabled by ns_itm_printf_enable() __
void ns_itm_printf_enable (void)
Enable ITM prints without needed Crypto to be enabled.
void ns_lp_printf (const char * format, ...)
Low power print that enables only the needed hardware only while needed.
void ns_uart_printf_enable (void)
Enable UART prints in power-sensitive way.

Macros

Type Name
define NS_PUT_IN_TCM
define ns_debug_printf_disable am_bsp_debug_printf_disable
define ns_debug_printf_enable am_bsp_debug_printf_enable
define ns_delay_us am_hal_delay_us
define ns_interrupt_master_disable am_hal_interrupt_master_disable
define ns_interrupt_master_enable am_hal_interrupt_master_enable
define ns_itm_printf_disable
define ns_printf ns_lp_printf
define ns_uart_printf_disable am_bsp_uart_printf_disable

Detailed Description

Author:

Carlos Morales

Version:

0.1

Date:

2022-08-09

Copyright:

Copyright (c) 2022

Public Functions Documentation

function ns_cryptoless_itm_printf_disable

Disable prints enabled by ns_itm_printf_enable() __

int32_t ns_cryptoless_itm_printf_disable (
    void
) 

Returns:

int32_t

Disable prints enabled by ns_itm_printf_enable()

Returns:

0 on success.

function ns_itm_printf_enable

Enable ITM prints without needed Crypto to be enabled.

void ns_itm_printf_enable (
    void
) 

Enable ITM prints without needed Crypto to be enabled.

function ns_lp_printf

Low power print that enables only the needed hardware only while needed.

void ns_lp_printf (
    const char * format,
    ...
) 

Parameters:

  • format
  • ...

Low power print that enables only the needed hardware only while needed.

Parameters:

  • format
  • ...

function ns_uart_printf_enable

void ns_uart_printf_enable (
    void
) 

Macro Definition Documentation

define NS_PUT_IN_TCM

#define NS_PUT_IN_TCM 

define ns_debug_printf_disable

#define ns_debug_printf_disable am_bsp_debug_printf_disable

define ns_debug_printf_enable

#define ns_debug_printf_enable am_bsp_debug_printf_enable

define ns_delay_us

#define ns_delay_us am_hal_delay_us

define ns_interrupt_master_disable

#define ns_interrupt_master_disable am_hal_interrupt_master_disable

define ns_interrupt_master_enable

#define ns_interrupt_master_enable am_hal_interrupt_master_enable

define ns_itm_printf_disable

#define ns_itm_printf_disable g_ns_state.itmPrintCurrentlyEnabled = false;                                               \
        am_bsp_itm_printf_disable

define ns_printf

#define ns_printf ns_lp_printf

define ns_uart_printf_disable

#define ns_uart_printf_disable am_bsp_uart_printf_disable

The documentation for this class was generated from the following file neuralSPOT/neuralspot/ns-harness/includes-api/ns_ambiqsuite_harness.h