Global

group Global_CILcore

CILcore globals.

lorem

Macros

group Macros_CILcore_h

Variables

group Variables_CILcore_h

API’s

group Apis_CILcore_h

Getters

group Getters_CILcore_h

Functions

BitWidthType CILcore_getCoreId(void)

Get core identifier. This function is provided as a CosmOS API system call mapped with the routes and cannot be called from the unprivileged context directly. DEMO.

The implementation contains obtaining of CPU ID by calling the HAL_GetCurrentCPUID function. If the CM7_CPUID is returned the CM7 macro is returned from the function, otherwise the CM4 macro is returned.

Parameters

none

Returns

BitWidthType

CosmOS_CoreConfigurationType *CILcore_getCoreCfg(void)

Get coreVar. DEMO.

Parameters

none

Returns

CosmOS_CoreConfigurationType *

Setters

group Setters_CILcore_h

Functions

void CILcore_setCoreCfg(CosmOS_OsConfigurationType *os)

Set core configuration to the R9 platform register. This function cannot be called from the unprivileged context directly.

The implementation contains obtaining of the core id by calling function CILcore_getCoreId. To ensure correctness of the core id the number of cores is obtained by calling function numberOfCores. If the core id is less than number of cores the core configuration is obtained by calling function os_getCore and its address is set to the platform register R9.

Parameters

os[in] configuration pointer

Returns

void

General

group General_CILcore_h

Functions

CosmOS_BooleanType CILcore_isInPrivilegedMode(void)

Is core in privileged mode. DEMO.

Parameters

none

Returns

CosmOS_BooleanType

void CILcore_systemReset(void)
void CILcore_triggerEvent(void)

This function triggers event for every cpu in multicore system. DEMO.

Parameters

none

Returns

none