25.6.4.1.3 Function tcc_init()
Initializes a hardware TCC module instance.
enum status_code tcc_init( struct tcc_module *const module_inst, Tcc *const hw, const struct tcc_config *const config)
Enables the clock and initializes the given TCC module, based on the given configuration values.
Data direction | Parameter name | Description |
---|---|---|
[in, out] |
module_inst |
Pointer to the software module instance struct |
[in] |
hw |
Pointer to the TCC hardware module |
[in] |
config |
Pointer to the TCC configuration options struct |
Returns
Status of the initialization procedure.
Return value | Description |
---|---|
STATUS_OK |
The module was initialized successfully |
STATUS_BUSY |
Hardware module was busy when the initialization procedure was attempted |
STATUS_INVALID_ARG |
An invalid configuration option or argument was supplied |
STATUS_ERR_DENIED |
Hardware module was already enabled |