pierremolinaro / acan-esp32

An ESP32 CAN 2.0B library
MIT License
40 stars 16 forks source link

ACAN_ESP32: Add ACAN_ESP32::end() to stop the controller and remove ISR #15

Open kholk opened 2 months ago

kholk commented 2 months ago

Some applications require stopping the controller (at least temporarily) for example when starting the OTA process as, during that, getting any interrupt from the CAN controller may be not desirable, as that could be increasing the likeliness of an OTA failure (and noone wants to end up with a corrupt flash).

The OTA case is just one of the possible examples, anyway.

This was tested on ESP32-S3R8 and S3R2.