Global

group Global_os

os globals

lorem

Macros

group Macros_os_h

Variables

group Variables_os_h

API’s

group Apis_os_h

Getters

group Getters_os_h

Functions

CosmOS_OsConfigurationType *os_getOsCfg(void)

Get operating system configuration type. This function can be called from the unprivileged context directly.

The implementation contains return of the generated operating system configuration structure.

See also

TEST_OS_GETOSCFG_RETURNVALUE

Parameters

none

Returns

CosmOS_OsConfigurationType *

void os_kernelPanicInternal(BitWidthType id)

OS kernel panic function. This is operating system internal funtion only and cannot be called from the unprivileged context directly. DEMO.

The implementation contains system reset function call.

See also

TEST_OS_KERNELPANIC_EXECUTIONFLOW

Parameters

BitWidthType[in] id

Returns

none

void os_kernelPanic(void)

OS kernel panic function. DEMO.

The implementation contains call to the kernel panic hook configured by the user.

See also

TEST_OS_KERNELPANIC_EXECUTIONFLOW_PRIVILEGED_MODE

See also

TEST_OS_KERNELPANIC_EXECUTIONFLOW_UNPRIVILEGED_MODE

Parameters

none

Returns

none

CosmOS_CoreConfigurationType *os_getOsCores(CosmOS_OsConfigurationType *os)

Get os cores pointer.

Parameters

os[in] configuration pointer

Returns

CosmOS_CoreConfigurationType *

CosmOS_CoreConfigurationType *os_getCore(CosmOS_OsConfigurationType *os, BitWidthType coreId)

Get os core pointer.

Parameters
  • os[in] configuration pointer

  • coreId[in] specifies the core from array of configured cores

Returns

CosmOS_CoreConfigurationType *

BitWidthType os_getOsNumberOfCores(CosmOS_OsConfigurationType *os)

Get os numberOfCores.

Parameters

os[in] configuration pointer

Returns

BitWidthType

CosmOS_BufferConfigurationType *os_getOsBuffers(CosmOS_OsConfigurationType *os)

Get os buffers pointer.

Parameters

os[in] configuration pointer

Returns

CosmOS_BufferConfigurationType *

BitWidthType os_getOsNumberOfBuffers(CosmOS_OsConfigurationType *os)

Get os numberOfBuffers.

Parameters

os[in] configuration pointer

Returns

BitWidthType

CosmOS_RoutesConfigurationType *os_getOsRoutes(CosmOS_OsConfigurationType *os)

Get os route pointer.

Parameters

os[in] configuration pointer

Returns

CosmOS_RoutesConfigurationType *

BitWidthType os_getOsNumberOfSpinlocks(CosmOS_OsConfigurationType *os)

Get os numberOfSpinlocks.

Parameters

os[in] configuration pointer

Returns

BitWidthType

CosmOS_BufferConfigurationType *os_getOsBufferCfgs(CosmOS_OsConfigurationType *os)

Get os bufferCfgs pointer.

Parameters

os[in] configuration pointer

Returns

CosmOS_BufferConfigurationType *

CosmOS_BufferConfigurationType *os_getOsBufferCfg(CosmOS_OsConfigurationType *os, BitWidthType bufferId)

Get os buffer pointer.

Parameters
  • os[in] configuration pointer

  • bufferId[in] specifies the buffer from array of configured buffers

Returns

CosmOS_BufferConfigurationType *

CosmOS_BufferDoubleConfigurationType *os_getOsbufferDoubleCfgs(CosmOS_OsConfigurationType *os)

Get os bufferDoubleCfgs pointer.

Parameters

os[in] configuration pointer

Returns

CosmOS_BufferDoubleConfigurationType *

CosmOS_BufferDoubleConfigurationType *os_getOsBufferDoubleCfg(CosmOS_OsConfigurationType *os, BitWidthType bufferDoubleId)

Get os bufferDouble pointer.

Parameters
  • os[in] configuration pointer

  • bufferDoubleId[in] specifies the bufferDouble from array of configured buffersDouble

Returns

CosmOS_BufferDoubleConfigurationType *

CosmOS_SpinlockVariableType *os_getOsSpinlockVars(CosmOS_OsConfigurationType *os)

Get os spinlockVars pointer.

Parameters

os[in] configuration pointer

Returns

CosmOS_SpinlockVariableType *

CosmOS_SpinlockVariableType *os_getOsSpinlockVar(CosmOS_OsConfigurationType *os, BitWidthType spinlockId)

Get os spinlock pointer.

Parameters
  • os[in] configuration pointer

  • spinlockId[in] specifies the spinlock from array of configured spinlocks

Returns

CosmOS_SpinlockVariableType *

CosmOS_OsEventConfigurationType *os_getOsEventCfg(CosmOS_OsConfigurationType *os)

Get os osEventCfg pointer.

Parameters

os[in] configuration pointer

Returns

CosmOS_OsEventConfigurationType *

CosmOS_ChannelConfigurationType *os_getOsChannelsCfg(CosmOS_OsConfigurationType *os)

Get channels pointer.

Parameters

os[in] configuration pointer

Returns

CosmOS_ChannelConfigurationType *

CosmOS_ChannelConfigurationType *os_getOsChannelCfg(CosmOS_OsConfigurationType *os, BitWidthType channelId)

Get channel pointer.

Parameters
  • os[in] configuration pointer

  • channelId[in] specifies the channel from array of configured channels

Returns

CosmOS_ChannelConfigurationType *

BitWidthType os_getOsNumberOfChannels(CosmOS_OsConfigurationType *os)

Get numberOfChannels.

Parameters

os[in] configuration pointer

Returns

BitWidthType

CosmOS_SemaphoreVariableType *os_getOsSemaphoreVars(CosmOS_OsConfigurationType *os)

Get os semaphoreVars pointer.

Parameters

os[in] configuration pointer

Returns

CosmOS_SemaphoreVariableType *

CosmOS_SemaphoreVariableType *os_getOsSemaphoreVar(CosmOS_OsConfigurationType *os, BitWidthType semaphoreId)

Get os semaphore pointer.

Parameters
  • os[in] configuration pointer

  • semaphoreId[in] specifies the semaphore from array of configured semaphores

Returns

CosmOS_SemaphoreVariableType *

BitWidthType os_getOsNumberOfSemaphores(CosmOS_OsConfigurationType *os)

Get os numberOfSemaphores.

Parameters

os[in] configuration pointer

Returns

BitWidthType

CosmOS_InterruptConfigurationType *os_getOsInterruptCfgs(CosmOS_OsConfigurationType *os)

Get os interrupts pointer.

Parameters

os[in] configuration pointer

Returns

CosmOS_InterruptConfigurationType *

CosmOS_InterruptConfigurationType *os_getOsInterruptCfg(CosmOS_OsConfigurationType *os, BitWidthType interruptId)

Get os semaphore pointer.

Parameters
  • os[in] configuration pointer

  • interruptId[in] specifies the semaphore from array of configured semaphores

Returns

CosmOS_InterruptConfigurationType *

BitWidthType os_getOsNumberOfInterrupts(CosmOS_OsConfigurationType *os)

Get os numberOfInterrupts.

Parameters

os[in] configuration pointer

Returns

BitWidthType

BitWidthType os_getOsDummy(CosmOS_OsConfigurationType *os)

Get os dummy.

Parameters

os[in] configuration pointer

Returns

BitWidthType

Setters

group Setters_os_h

Functions

void os_setOsDummy(CosmOS_OsConfigurationType *os, BitWidthType dummyParam)

Set os dummy.

Parameters

os[in] configuration pointer

Returns

BitWidthType

General

group General_os_h

Functions

void os_start(BitWidthType entityId)

Start of the operating system. 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 scheduler_start function call that does not return.

See also

TEST_OS_START_EXECUTIONFLOW

Parameters

entityId[in] is used during the system call dispatching

Returns

none