aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTaylor Vesely2012-03-26 16:43:43 -0600
committerTaylor Vesely2012-03-26 16:43:43 -0600
commitbf2b8aad2feff6126085e06c60c8e43842d6da43 (patch)
treec44b704195c1523d8a08cfd8bdb5b316fd8bbbae /examples
parentfa1c6bc632d1fe9a84a7e38ecb239b5cedc15c15 (diff)
Added a bunch of register definitions and gpio_set() to LPC17xx gpio.
Diffstat (limited to 'examples')
-rw-r--r--examples/lpc17xx/blueboard-lpc1768-h/miniblink/miniblink.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/lpc17xx/blueboard-lpc1768-h/miniblink/miniblink.c b/examples/lpc17xx/blueboard-lpc1768-h/miniblink/miniblink.c
index cfc53a5..c351581 100644
--- a/examples/lpc17xx/blueboard-lpc1768-h/miniblink/miniblink.c
+++ b/examples/lpc17xx/blueboard-lpc1768-h/miniblink/miniblink.c
@@ -33,7 +33,14 @@ int main(void)
/* Blink LED0 (P3_0) on the board. */
while (1) {
/* Manually: */
- GPIO1_SET = (1 << 29); /* LED off */
+ //GPIO1_SET = (1 << 29); /* LED off */
+ //for (i = 0; i < 800000; i++) /* Wait a bit. */
+ // __asm__("nop");
+ //GPIO1_CLR = (1 << 29); /* LED on */
+ //for (i = 0; i < 800000; i++) /* Wait a bit. */
+ // __asm__("nop");
+
+ gpio_set(GPIO1, GPIOPIN29); /* LED off */
for (i = 0; i < 800000; i++) /* Wait a bit. */
__asm__("nop");
GPIO1_CLR = (1 << 29); /* LED on */