Busy Status Register (BSR) driver.
More...
|
| file | sys_bsr.h |
| | Busy Status Register (BSR) driver file.
|
| |
|
|
void | sys_sw_bsr_init (void) |
| | Initialize the BSR module.
|
| |
| void | sys_sw_bsr_acquire (SW_BSR_MASTER_ID sw_bsr_master_id, uint32_t periph_id) |
| | Acquire exclusive access to a specific peripheral when it could also be used by another master. This function will block until access is granted. More...
|
| |
| bool | sys_sw_bsr_acquired (SW_BSR_MASTER_ID sw_bsr_master_id, uint32_t periph_id) |
| | Checks if exclusive access to a specific peripheral has been acquired from a given master. More...
|
| |
| void | sys_sw_bsr_release (SW_BSR_MASTER_ID sw_bsr_master_id, uint32_t periph_id) |
| | Releases the exclusive access from a specific peripheral so it can be used by another master. More...
|
| |
Busy Status Register (BSR) driver.
◆ sys_sw_bsr_acquire()
| void sys_sw_bsr_acquire |
( |
SW_BSR_MASTER_ID |
sw_bsr_master_id, |
|
|
uint32_t |
periph_id |
|
) |
| |
Acquire exclusive access to a specific peripheral when it could also be used by another master. This function will block until access is granted.
- Parameters
-
| [in] | sw_bsr_master_id | The SW BSR ID of the relevant master |
| [in] | periph_id | The peripheral id for which exclusive access must be granted. Valid range is (0 - 15). Check HW_SYS_BSR_PERIPH_ID. |
◆ sys_sw_bsr_acquired()
| bool sys_sw_bsr_acquired |
( |
SW_BSR_MASTER_ID |
sw_bsr_master_id, |
|
|
uint32_t |
periph_id |
|
) |
| |
Checks if exclusive access to a specific peripheral has been acquired from a given master.
- Parameters
-
| [in] | sw_bsr_master_id | The SW BSR ID of the relevant master |
| [in] | periph_id | The peripheral id for which exclusive access will be checked. Valid range is (0 - BSR_PERIPH_ID_MAX). Check HW_SYS_BSR_PERIPH_ID. |
- Returns
- true if peripheral exclusive access has been acquired from the specific master, else false.
◆ sys_sw_bsr_release()
| void sys_sw_bsr_release |
( |
SW_BSR_MASTER_ID |
sw_bsr_master_id, |
|
|
uint32_t |
periph_id |
|
) |
| |
Releases the exclusive access from a specific peripheral so it can be used by another master.
- Parameters
-
| [in] | sw_bsr_master_id | The SW BSR ID of the relevant master |
| [in] | periph_id | The peripheral id for which exclusive access must be released. Valid range is (0 - 15). Check HW_SYS_BSR_PERIPH_ID. |