21.6.2.9.3 Function system_apb_clock_set_mask()
Set bits in the clock mask for an APBx bus.
enum status_code system_apb_clock_set_mask( const enum system_clock_apb_bus bus, const uint32_t mask)
This function will set bits in the clock mask for an APBx bus. Any bits set to 1 will enable the corresponding module clock, zero bits in the mask will be ignored.
| Data direction | Parameter name | Description |
|---|---|---|
|
[in] |
mask |
APBx clock mask, a SYSTEM_CLOCK_APB_APBx constant from the device header files |
|
[in] |
bus |
Bus to set clock mask bits for, a mask of PM_APBxMASK_* constants from the device header files |
Returns
Status indicating the result of the clock mask change operation.
| Return value | Description |
|---|---|
|
STATUS_ERR_INVALID_ARG |
Invalid bus given |
|
STATUS_OK |
The clock mask was set successfully |
