aboutsummaryrefslogtreecommitdiff
path: root/lib/lpc17xx
diff options
context:
space:
mode:
authorTaylor Vesely2012-03-26 16:43:43 -0600
committerTaylor Vesely2012-03-26 16:43:43 -0600
commitbf2b8aad2feff6126085e06c60c8e43842d6da43 (patch)
treec44b704195c1523d8a08cfd8bdb5b316fd8bbbae /lib/lpc17xx
parentfa1c6bc632d1fe9a84a7e38ecb239b5cedc15c15 (diff)
Added a bunch of register definitions and gpio_set() to LPC17xx gpio.
Diffstat (limited to 'lib/lpc17xx')
-rw-r--r--lib/lpc17xx/gpio.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/lpc17xx/gpio.c b/lib/lpc17xx/gpio.c
index e69de29..8913082 100644
--- a/lib/lpc17xx/gpio.c
+++ b/lib/lpc17xx/gpio.c
@@ -0,0 +1,25 @@
+/*
+ * This file is part of the libopencm3 project.
+ *
+ * Copyright (C) 2010 Uwe Hermann <uwe@hermann-uwe.de>
+ *
+ * This library is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <libopencm3/lpc17xx/gpio.h>
+
+void gpio_set(u32 gpioport, u32 gpios)
+{
+ GPIO_SET(gpioport) = gpios;
+}