summaryrefslogtreecommitdiff
path: root/include/arch/lm4f120h5qr-stellaris
diff options
context:
space:
mode:
Diffstat (limited to 'include/arch/lm4f120h5qr-stellaris')
-rw-r--r--include/arch/lm4f120h5qr-stellaris/driver/gpio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/arch/lm4f120h5qr-stellaris/driver/gpio.h b/include/arch/lm4f120h5qr-stellaris/driver/gpio.h
index f71164e..3c99eb9 100644
--- a/include/arch/lm4f120h5qr-stellaris/driver/gpio.h
+++ b/include/arch/lm4f120h5qr-stellaris/driver/gpio.h
@@ -30,13 +30,13 @@ class GPIO {
inline void setup() {
mp_gpio_setup();
}
- inline void led_on(unsigned char id) {
+ inline void led_on(unsigned char id = 0) {
mp_gpio_write(pf_1 + id, 1);
}
- inline void led_off(unsigned char id) {
+ inline void led_off(unsigned char id = 0) {
mp_gpio_write(pf_1 + id, 0);
}
- inline void led_toggle(unsigned char id) {
+ inline void led_toggle(unsigned char id = 0) {
mp_gpio_write(pf_1 + id, !mp_gpio_read(pf_1 + id));
}
inline void input(unsigned char const pin) {