Robert Lewis

lwadc, example project

Discussion created by Robert Lewis on Apr 25, 2013
Latest reply on May 7, 2013 by David E Seymour

The example for lwadc has a test.c but no project, I get a multitude of errors when I add the test_task to a new project. Is there a working example of the lwadc project? Or can someone tell me how to get the test.c to run please?

 

There is a thread that talks about the lwadc example

 

A/D Driver Unable to Open Channel

 

but this is for a Tower Board with defines that mean nothing on a customer board. For example

#define BSP_ADC_POTENTIOMETER           (ADC0_SOURCE_AD12)

#define BSP_ADC_TWR_AN7 (ADC0_SOURCE_AD8) //DAS

#define BSP_ADC_TWR_AN6 (ADC0_SOURCE_AD9) //DAS

 

Can someone tell me how to define this so the lwadc would work on the twrk40x256 bsp please? I have searched through the mqx directory and do not see how BSP_ADC_TWR_AN7 would translate in the code to a non tower board.

 

It almost seems to be an exercise in futility to get these examples to work; why include only part of the code under the examples directory?

 

 

Thank you

 

Robert

Outcomes