Deinit() method disables a peripheral and frees the allocated memory if supported by the RTOS adapter. Deinit() method is usually used in RTOS applications, not in bare-metal applications.