Close Device and Close Libmetal Environment - 2022.1 English

Libmetal and OpenAMP User Guide (UG1186)

Document ID
UG1186
Release Date
2022-06-15
Version
2022.1 English

After using the libmetal APIs to talk to the devices, close the device and libmetal environment as follows:

/* Close the opened device */

metal_device_close(device);

/* Close the libmetal environment */

metal_finish();