1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 02:27:35 +00:00

Kernel: Allow enabling high level detection on GPIOs

Co-authored-by: Timon Kruiper <timonkruiper@gmail.com>
Co-authored-by: Ollrogge <nils-ollrogge@outlook.de>
This commit is contained in:
Marco Cutecchia 2023-03-16 11:12:11 +01:00 committed by Linus Groh
parent 28acf25035
commit bb8092d6a1
2 changed files with 17 additions and 0 deletions

View file

@ -50,6 +50,8 @@ public:
internal_enable_pins(enable, state);
}
void set_pin_high_detect_enable(unsigned pin_number, bool enable);
private:
GPIO();
void internal_enable_pins(u32 enable[2], PullUpDownState state);