aboutsummaryrefslogtreecommitdiff
path: root/examples/efm32
diff options
context:
space:
mode:
authorchrysn2012-03-01 02:09:02 +0100
committerchrysn2012-03-01 02:18:22 +0100
commit541fded753a27b8670c5b485ecec1794c02de187 (patch)
tree80bd29674e52d060d6e6aee0553ead0db0678355 /examples/efm32
parenta747e887bd819ad20bca83e8f43c9e81798a59f6 (diff)
convenience functions for efm32 gpio
also, the whole gpio header file is now a big doxygen group, structuring the convenience functions and the register/value definitions
Diffstat (limited to 'examples/efm32')
-rw-r--r--examples/efm32/tinygecko/efm32-tg-stk3300/miniblink/miniblink.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/efm32/tinygecko/efm32-tg-stk3300/miniblink/miniblink.c b/examples/efm32/tinygecko/efm32-tg-stk3300/miniblink/miniblink.c
index 1976080..e9907d3 100644
--- a/examples/efm32/tinygecko/efm32-tg-stk3300/miniblink/miniblink.c
+++ b/examples/efm32/tinygecko/efm32-tg-stk3300/miniblink/miniblink.c
@@ -60,10 +60,12 @@ void led_setup(void)
// according to t0011_efm32_tiny_gecko_stk_user_manual.pdf figures 16.2
// and 16.3 (called UIF_LED0)
- GPIO_PD_MODEL = GPIO_MODE_PUSHPULL<<(7*4);
+ gpio_set_mode(GPIO_PD, GPIO_MODE_PUSHPULL, GPIO7);
+ // GPIO_PD_MODEL = GPIO_MODE_PUSHPULL<<(7*4);
}
void led_toggle(void)
{
- GPIO_PD_DOUTTGL = 1<<7;
+ gpio_toggle(GPIO_PD, GPIO7);
+ // GPIO_PD_DOUTTGL = 1<<7;
}