summaryrefslogtreecommitdiff
path: root/include/arch/msp430fr5969lp
diff options
context:
space:
mode:
Diffstat (limited to 'include/arch/msp430fr5969lp')
-rw-r--r--include/arch/msp430fr5969lp/driver/gpio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/arch/msp430fr5969lp/driver/gpio.h b/include/arch/msp430fr5969lp/driver/gpio.h
index 0b8058b..7f2a3f7 100644
--- a/include/arch/msp430fr5969lp/driver/gpio.h
+++ b/include/arch/msp430fr5969lp/driver/gpio.h
@@ -47,21 +47,21 @@ class GPIO {
P4REN = 0xff & ~BIT6; // red LED
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 {
P4OUT |= BIT6;
}
}
- inline void led_off(unsigned char id) {
+ inline void led_off(unsigned char id = 0) {
if (id == 0) {
P1OUT &= ~BIT0;
} else {
P4OUT &= ~BIT6;
}
}
- inline void led_toggle(unsigned char id) {
+ inline void led_toggle(unsigned char id = 0) {
if (id == 0) {
P1OUT ^= BIT0;
} else {