Function events_allocate()

Allocate an event channel and set configuration.

enum status_code events_allocate(
		struct events_resource * resource,
		struct events_config * config)

Allocates an event channel from the event channel pool and sets the channel configuration.

Table 1. Parameters
Data direction Parameter name Description

[out]

resource

Pointer to a events_resource struct instance

[in]

config

Pointer to a events_config struct

Returns

Status of the configuration procedure.

Table 2. Return Values
Return value Description

STATUS_OK

Allocation and configuration went successful

STATUS_ERR_NOT_FOUND

No free event channel found