Close() - Device Driver
static void FSDev_####_Close (FS_DEV *p_dev);
File | Called from | Code enabled by |
---|---|---|
|
| N/A |
The device driver Close()
function should uninitialize the hardware and release or free any resources acquired in the Open()
function.
Arguments
p_dev
Pointer to device to close.
Returned Value
None.
Notes/Warnings
- Tracking whether a device is open is not necessary, because this should ONLY be called when a device is open.
- This will be called every time the device is closed.
- The device driver
Close()
function is called while the caller holds the device lock.