Showing changes from revision #0 to #1:
Added | Removed | Changed
Entry | |
---|---|
R1 | &81045 (Reason Code) |
R2 | Bits 0 – 7 = slot number |
Bits 8 – 15 = bus number |
Exit | |
---|---|
R1 | Preserved (do not claim) |
This service is used to notify the OS that a slot has been released.
This service call is issued just before exclusive access to an SDIO slot is released. It is particularly useful in reducing the overhead of frequently issued SD commands, because it enables software to determine whether anyone else might have changed the card state (deselected the card, set a different block size and so on). In the common case where this doesn’t happen, it means a number of SD commands can be omitted, allowing increased throughput.
To guard against reentrancy, the procedure that should be employed is thus:
This service call may have an additional benefit to enable a background process to be woken up if it previously found that the slot was not available. However you should note that the slot cannot be acquired from within the service call handler. Instead, you should schedule the background process to execute at a later time, for example using OS_CallAfter, OS_AddCallBack or the RTSupport module.