Function system_apb_clock_clear_mask()

Clear bits in the clock mask for an APBx bus.

enum status_code system_apb_clock_clear_mask(
		const enum system_clock_apb_bus bus,
		const uint32_t mask)

This function will clear bits in the clock mask for an APBx bus. Any bits set to 1 will disable the corresponding module clock, zero bits in the mask will be ignored.

Table 1. Parameters
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 clear clock mask bits

Returns

Status indicating the result of the clock mask change operation.

Table 2. Return Values
Return value Description

STATUS_ERR_INVALID_ARG

Invalid bus ID was given.

STATUS_OK

The clock mask was changed successfully.