summaryrefslogtreecommitdiff
path: root/src/stm/stm32l.h
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2013-07-30 00:15:06 -0600
committerBdale Garbee <bdale@gag.com>2013-07-30 00:15:06 -0600
commit01f8df088759ee7e6bc3900a013e0ea4fafaf984 (patch)
tree3821af32f96f1ac1be04e48e0b1dee953fac7d62 /src/stm/stm32l.h
parente2ebe60adf061479a1259a5c68b9cd5f5bacf644 (diff)
parent15063cbb8f76bffea71575d295ca87b7ceca36d8 (diff)
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Diffstat (limited to 'src/stm/stm32l.h')
-rw-r--r--src/stm/stm32l.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stm/stm32l.h b/src/stm/stm32l.h
index 63bde0f8..1868468f 100644
--- a/src/stm/stm32l.h
+++ b/src/stm/stm32l.h
@@ -171,6 +171,11 @@ stm_gpio_get(struct stm_gpio *gpio, int pin) {
return (gpio->idr >> pin) & 1;
}
+static inline uint16_t
+stm_gpio_get_all(struct stm_gpio *gpio) {
+ return gpio->idr;
+}
+
extern struct stm_gpio stm_gpioa;
extern struct stm_gpio stm_gpiob;
extern struct stm_gpio stm_gpioc;