Vision Apps User Guide
Miscellaneous utility APIs (RTOS only)

Introduction

This section contains miscellaneous utility APIs.

Data Structures

struct  app_pinmux_cfg_t
 

Functions

uint64_t appC7xSecSupv2NonSecSupv (void)
 Switch C7x from secure supervisor to non-secure supervisor. More...
 
void appC7xClecInitForNonSecAccess (void)
 Init CLEC so that C7x in non-secure mode can program it. More...
 
void appUtilsSetDLFOBitInACTRLReg (void)
 API to set to DLFO bit in ACTRL register of R5F. More...
 
void appSetPinmux (app_pinmux_cfg_t *cfg)
 API to set to set pinmux required for running basic demos in Vision Apps. More...
 
void appPinMuxCfgSetDefault (app_pinmux_cfg_t *cfg)
 Inline Function to initialize Pinmux config to default value. More...
 
int32_t appUtilsPrintCpuHz (void)
 API to print the CPU Frequency in Hz. More...
 
void appUtilsTaskInit (void)
 API call OS-specific init API's when creating tasks. More...
 

Function Documentation

◆ appC7xSecSupv2NonSecSupv()

uint64_t appC7xSecSupv2NonSecSupv ( void  )

Switch C7x from secure supervisor to non-secure supervisor.

NOTE, this API must be called after MMU and Cache init

◆ appC7xClecInitForNonSecAccess()

void appC7xClecInitForNonSecAccess ( void  )

Init CLEC so that C7x in non-secure mode can program it.

This also sets defaults for DRU input events to what TIDL needs

This API MUST be called before switching C7x to secure mode

◆ appUtilsSetDLFOBitInACTRLReg()

void appUtilsSetDLFOBitInACTRLReg ( void  )

API to set to DLFO bit in ACTRL register of R5F.

This API uses assembly instruction to set DLFO bit in ACTRL register of R5F. This should be called from the Core reset callback.

◆ appSetPinmux()

void appSetPinmux ( app_pinmux_cfg_t cfg)

API to set to set pinmux required for running basic demos in Vision Apps.

It internally uses Board API to configure Pinmux.

◆ appPinMuxCfgSetDefault()

void appPinMuxCfgSetDefault ( app_pinmux_cfg_t cfg)

Inline Function to initialize Pinmux config to default value.

◆ appUtilsPrintCpuHz()

int32_t appUtilsPrintCpuHz ( void  )

API to print the CPU Frequency in Hz.

◆ appUtilsTaskInit()

void appUtilsTaskInit ( void  )

API call OS-specific init API's when creating tasks.