summaryrefslogtreecommitdiff
path: root/nuttx/configs/olimex-strp711/src
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-01 16:12:09 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-01 16:12:09 +0000
commit4915733091314a804c5d8884f04905a3dcc80c2d (patch)
tree82bf0badcb885c32b66b08b0e9f0462e4b87b150 /nuttx/configs/olimex-strp711/src
parent8e38ca30376833c609d8364e3db8e4d607b36422 (diff)
downloadpx4-nuttx-4915733091314a804c5d8884f04905a3dcc80c2d.tar.gz
px4-nuttx-4915733091314a804c5d8884f04905a3dcc80c2d.tar.bz2
px4-nuttx-4915733091314a804c5d8884f04905a3dcc80c2d.zip
Added ST71x system timer logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1115 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/olimex-strp711/src')
-rw-r--r--nuttx/configs/olimex-strp711/src/up_buttons.c6
-rw-r--r--nuttx/configs/olimex-strp711/src/up_leds.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/nuttx/configs/olimex-strp711/src/up_buttons.c b/nuttx/configs/olimex-strp711/src/up_buttons.c
index 2ee386daa..108a5831c 100644
--- a/nuttx/configs/olimex-strp711/src/up_buttons.c
+++ b/nuttx/configs/olimex-strp711/src/up_buttons.c
@@ -82,15 +82,15 @@ void up_buttoninit(void)
/* Configure the GPIO pins as inputs */
reg16 = getreg16(STR71X_GPIO1_PC0);
- reg16 |= STR71X_BOTHBUTTONS_GPIO1
+ reg16 |= STR71X_BOTHBUTTONS_GPIO1;
putreg16(reg16, STR71X_GPIO1_PC0);
reg16 = getreg16(STR71X_GPIO1_PC1);
- reg16 &= ~STR71X_BOTHBUTTONS_GPIO1
+ reg16 &= ~STR71X_BOTHBUTTONS_GPIO1;
putreg16(reg16, STR71X_GPIO1_PC1);
reg16 = getreg16(STR71X_GPIO1_PC2);
- reg16 &= ~STR71X_BOTHBUTTONS_GPIO1
+ reg16 &= ~STR71X_BOTHBUTTONS_GPIO1;
putreg16(reg16, STR71X_GPIO1_PC2);
}
diff --git a/nuttx/configs/olimex-strp711/src/up_leds.c b/nuttx/configs/olimex-strp711/src/up_leds.c
index 873994c68..a5719d5f9 100644
--- a/nuttx/configs/olimex-strp711/src/up_leds.c
+++ b/nuttx/configs/olimex-strp711/src/up_leds.c
@@ -106,21 +106,21 @@ void up_ledinit(void)
/* Set normal function output */
reg16 = getreg16(STR71X_GPIO1_PC0);
- reg16 |= STR71X_LEDGPIO1_BITS
+ reg16 |= STR71X_LEDGPIO1_BITS;
putreg16(reg16, STR71X_GPIO1_PC0);
reg16 = getreg16(STR71X_GPIO1_PC1);
- reg16 &= ~STR71X_LEDGPIO1_BITS
+ reg16 &= ~STR71X_LEDGPIO1_BITS;
putreg16(reg16, STR71X_GPIO1_PC1);
reg16 = getreg16(STR71X_GPIO1_PC2);
- reg16 |= STR71X_LEDGPIO1_BITS
+ reg16 |= STR71X_LEDGPIO1_BITS;
putreg16(reg16, STR71X_GPIO1_PC2);
/* Clear the LEDs (1 clears; 0 sets) */
reg16 = getreg16(STR71X_GPIO1_PD);
- reg16 |= STR71X_LEDGPIO1_BITS
+ reg16 |= STR71X_LEDGPIO1_BITS;
putreg16(reg16, STR71X_GPIO1_PD);
}