Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

static void FSDev_####_Close (FS_DEV *p_dev);

File

Called from

Code enabled by

fs_dev_####.c

FSDev_Close()

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

  1. Tracking whether a device is open is not necessary, because this should ONLY be called when a device is open.
  2. This will be called

...

  1. every time the device is closed.
  2. The device driver Close() function is called while the caller holds the device lock.