7.4.23 Function ast_set_config()
Initialize and enable the AST module in Calendar Mode or Counter Mode.
uint32_t ast_set_config( Ast * ast, struct ast_config * ast_conf)
Note: If you use the 32kHz oscillator it will be enabled by this function.
| Data direction | Parameter name | Description |
|---|---|---|
|
[in, out] |
ast |
Module hardware register base address pointer |
|
[in] |
ast_conf |
AST configuration structure pointer |
Returns
Initialization result.
| Return value | Description |
|---|---|
|
0 |
Initialization failed due to a software timeout |
|
1 |
Initialization succeeded |
