summaryrefslogtreecommitdiff
path: root/src/drivers/include
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-05-15 15:57:16 +1000
committerjacqueline <me@jacqueline.id.au>2024-05-15 15:57:16 +1000
commit4c9b77ea1308ef3fe72a81d888560161d19485d6 (patch)
treeefbe0c69ea555915cbbd414ac91b96ae8f279e9f /src/drivers/include
parent00d6c2eca20571f1a53400f4f465c8dd7af557db (diff)
downloadtangara-fw-4c9b77ea1308ef3fe72a81d888560161d19485d6.tar.gz
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
Diffstat (limited to 'src/drivers/include')
-rw-r--r--src/drivers/include/drivers/samd.hpp1
1 files changed, 1 insertions, 0 deletions
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;