projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SEC: improve cipher API to allow variable-key ciphers.
[bertos.git]
/
bertos
/
cpu
/
cortex-m3
/
drv
/
gpio_lm3s.h
diff --git
a/bertos/cpu/cortex-m3/drv/gpio_lm3s.h
b/bertos/cpu/cortex-m3/drv/gpio_lm3s.h
index 9ff6b56b8bfd36e92c2da5d57314b4598b86a45d..d80c033f0177b98649c3f3e91d68f39021ca596b 100644
(file)
--- a/
bertos/cpu/cortex-m3/drv/gpio_lm3s.h
+++ b/
bertos/cpu/cortex-m3/drv/gpio_lm3s.h
@@
-82,7
+82,13
@@
enum
/* Write a value to the specified pin(s) */
INLINE void lm3s_gpioPinWrite(uint32_t port, uint8_t pins, uint8_t val)
{
/* Write a value to the specified pin(s) */
INLINE void lm3s_gpioPinWrite(uint32_t port, uint8_t pins, uint8_t val)
{
- HWREG(port + (GPIO_O_DATA + (pins << 2))) = val;
+ HWREG(port + GPIO_O_DATA + (pins << 2)) = val;
+}
+
+/* Read a value from the specified pin(s) */
+INLINE uint32_t lm3s_gpioPinRead(uint32_t port, uint8_t pins)
+{
+ return HWREG(port + GPIO_O_DATA + (pins << 2));
}
int lm3s_gpioPinConfig(uint32_t port, uint8_t pins,
}
int lm3s_gpioPinConfig(uint32_t port, uint8_t pins,