im trying to have ADC in my stm32f103 ,
i'm sure that every things should work well , but during compilation i get the this error : C:\ChibiStudio\workspace\myProjectName/../../chibios/os/hal/src/hal.c:79: undefined reference to `adcInit' in my hal.c file
from halconf.h i make ADC enable :
Code: Select all
/**
* @brief Enables the ADC subsystem.
*/
#if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
#define HAL_USE_ADC TRUE
#endifand in mcuconf.h i enables ADC1 too :
Code: Select all
/*
* ADC driver system settings.
*/
#define STM32_ADC_USE_ADC1 TRUE
#define STM32_ADC_ADC1_DMA_PRIORITY 2
#define STM32_ADC_ADC1_IRQ_PRIORITY 6
from your experiences , what's wrong with my project ??
any help would be great.
thanks in advance
MA