From 4c9b77ea1308ef3fe72a81d888560161d19485d6 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 15 May 2024 15:57:16 +1000 Subject: Support setting the samd charge rate We default to the fast one, and do not try setting the charge rate bit on older samd versions --- src/drivers/include/drivers/samd.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/drivers/include') diff --git a/src/drivers/include/drivers/samd.hpp b/src/drivers/include/drivers/samd.hpp index 55ea513c..897e78d6 100644 --- a/src/drivers/include/drivers/samd.hpp +++ b/src/drivers/include/drivers/samd.hpp @@ -56,6 +56,7 @@ class Samd { auto UpdateUsbStatus() -> void; auto ResetToFlashSamd() -> void; + auto SetFastChargeEnabled(bool) -> void; auto PowerDown() -> void; auto UsbMassStorage(bool en) -> void; -- cgit v1.2.3