Hi
In your code the interrupt handler is missing (this would mean that the interrupt actually does nothing).
You can add a handler with a parameter like the following_
adc_setup.int_handler = adc_conversion_interrupt; // handling function
static void adc_conversion_interrupt(ADC_INTERRUPT_RESULT *adc_result)
{
// IRQ handling code here (note that this is a callback so doesn't need to be declared as interrupt routine)
}
However I am not sure that this method is the best for 10us sampling since this is quite high speed and the routines are designed for general purpose, flexibility and ease of use. This means that you may do best when you set up the ADC in free running mode (ensure that its conversion speed is configured to be faster than your sampling rate) and then use a timer (PIT or DMA) to generate a free-running 10us interrupt. The interrupt can then directly read the ADC sample - this probably reduces overhead quite a lot.
Although more complicated and possibly not exactly what you need, it is interesting to note that a DMA timer can be configured to save sample values at a high speed to a RAM buffer without any CPU intervention. It can for example sample 10'000 values to a buffer in 1s which can then be treated by the CPU while the next 10'000 are being stored. Although not that useful fro real time sample processing it can be a nice method in some circumstances to avoid interrupt handling of each sample. The coding is however a bit trickier...
Regards
Mark