summaryrefslogtreecommitdiff
path: root/include/arch/msp430fr5994lp
diff options
context:
space:
mode:
Diffstat (limited to 'include/arch/msp430fr5994lp')
-rw-r--r--include/arch/msp430fr5994lp/driver/gpio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/arch/msp430fr5994lp/driver/gpio.h b/include/arch/msp430fr5994lp/driver/gpio.h
index c3f1abf..d8048c0 100644
--- a/include/arch/msp430fr5994lp/driver/gpio.h
+++ b/include/arch/msp430fr5994lp/driver/gpio.h
@@ -63,21 +63,21 @@ class GPIO {
P8REN = 0xff;
PJREN = BIT6 | BIT7; // HFXT (not populated)
}
- inline void led_on(unsigned char id) {
+ inline void led_on(unsigned char id = 0) {
if (id == 0) {
P1OUT |= BIT0;
} else {
P1OUT |= BIT1;
}
}
- inline void led_off(unsigned char id) {
+ inline void led_off(unsigned char id = 0) {
if (id == 0) {
P1OUT &= ~BIT0;
} else {
P1OUT &= ~BIT1;
}
}
- inline void led_toggle(unsigned char id) {
+ inline void led_toggle(unsigned char id = 0) {
if (id == 0) {
P1OUT ^= BIT0;
} else {