summaryrefslogtreecommitdiffstats
path: root/nuttx/configs/olimex-stm32-p207/src
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-03-31 15:00:23 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-03-31 15:00:23 -0600
commit494dfe2ae6157348956b941eb7a1f57b66181a56 (patch)
tree7201b16b309f34b73f46936ed1980c0ef0b8154a /nuttx/configs/olimex-stm32-p207/src
parent49a7570f92a3ae31838f2eea2fa71354361f2881 (diff)
Rename adc_devinit() to board_adc_setup(). Add support to the boardctl() interface so that it can call board_adc_setup() on behalf of an application. Change apps/examples/adc to that is now calls boardctl() instead of adc_devinit() in order to initalize the ADC device.
Diffstat (limited to 'nuttx/configs/olimex-stm32-p207/src')
-rw-r--r--nuttx/configs/olimex-stm32-p207/src/stm32_adc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/configs/olimex-stm32-p207/src/stm32_adc.c b/nuttx/configs/olimex-stm32-p207/src/stm32_adc.c
index 0665c44c65..96fc837b97 100644
--- a/nuttx/configs/olimex-stm32-p207/src/stm32_adc.c
+++ b/nuttx/configs/olimex-stm32-p207/src/stm32_adc.c
@@ -41,8 +41,11 @@
#include <errno.h>
#include <debug.h>
+
+#include <nuttx/board.h>
#include <nuttx/analog/adc.h>
#include <arch/board/board.h>
+
#include "chip.h"
#include "stm32_adc.h"
#include "olimex-stm32-p207.h"
@@ -103,7 +106,7 @@ static const uint32_t g_pinlist[ADC1_NCHANNELS] = {GPIO_ADC1_IN10};
************************************************************************************/
/************************************************************************************
- * Name: adc_devinit
+ * Name: board_adc_setup
*
* Description:
* All STM32 architectures must provide the following interface to work with
@@ -111,7 +114,7 @@ static const uint32_t g_pinlist[ADC1_NCHANNELS] = {GPIO_ADC1_IN10};
*
************************************************************************************/
-int adc_devinit(void)
+int board_adc_setup(void)
{
return stm32_adc_initialize();
}