summaryrefslogtreecommitdiff
path: root/ucoo/hal/gpio/gpio.stm32f4.hh
diff options
context:
space:
mode:
Diffstat (limited to 'ucoo/hal/gpio/gpio.stm32f4.hh')
-rw-r--r--ucoo/hal/gpio/gpio.stm32f4.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/ucoo/hal/gpio/gpio.stm32f4.hh b/ucoo/hal/gpio/gpio.stm32f4.hh
index 01f3661..fa73fa2 100644
--- a/ucoo/hal/gpio/gpio.stm32f4.hh
+++ b/ucoo/hal/gpio/gpio.stm32f4.hh
@@ -67,6 +67,10 @@ class Gpio : public Io
void pull (Pull dir);
/// Set output speed.
void speed (Speed s);
+ /// Set alternate function.
+ void af (int num);
+ /// Set as analog.
+ void analog ();
private:
/// Port register base address.
const uint32_t port_;