aboutsummaryrefslogtreecommitdiffstats
path: root/demos/MSP430-MSP430x1611-GCC/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/MSP430-MSP430x1611-GCC/main.c')
-rw-r--r--demos/MSP430-MSP430x1611-GCC/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/demos/MSP430-MSP430x1611-GCC/main.c b/demos/MSP430-MSP430x1611-GCC/main.c
index 4bc7d9895..2f9f6d8b9 100644
--- a/demos/MSP430-MSP430x1611-GCC/main.c
+++ b/demos/MSP430-MSP430x1611-GCC/main.c
@@ -18,6 +18,7 @@
*/
#include <ch.h>
+#include <pal.h>
#include <test.h>
#include "board.h"
@@ -30,9 +31,9 @@ static WORKING_AREA(waThread1, 64);
static msg_t Thread1(void *arg) {
while (TRUE) {
- P6OUT |= P6_O_LED;
+ palSetPad(IOPORT_F, P6_O_LED);
chThdSleepMilliseconds(500);
- P6OUT &= ~P6_O_LED;
+ palClearPad(IOPORT_F, P6_O_LED);
chThdSleepMilliseconds(500);
}
return 0;
@@ -64,7 +65,7 @@ int main(int argc, char **argv) {
* sleeping in a loop.
*/
while (TRUE) {
- if (!(P6IN & P6_I_BUTTON))
+ if (!palReadPad(IOPORT_F, P6_I_BUTTON))
TestThread(&COM1);
chThdSleepMilliseconds(500);
}