Hi,
I found out why the touch screen driver doesn't work under MQX 3.7. The MQX3.7 contains the completely new touch screen driver that change little bit phylosophy of using driver and (it start using standard MQX ADC driver) and the ADC driver and Touch screen driver must be installed by user like this:
const ADC_INIT_STRUCT adc_init = {
ADC_RESOLUTION_12BIT,// ADC_RESOLUTION_DEFAULT, /* resolution */
};
extern TCHRES_INIT_STRUCT _bsp_tchscr_resisitve_init;
d4d_task()
{
MQX_FILE_PTR adc_file;
adc_file = fopen(BSP_TCHRES_ADC_DEVICE, (const char*)&adc_init);
if( adc_file == NULL )
{
_mqx_exit(0);
}
ioctl( adc_file, ADC_IOCTL_CALIBRATE, NULL );
_io_tchres_install("tchscr:", &_bsp_tchscr_resisitve_init, adc_file );
.......
}
Check the Kinetis K40 demo, there is good main.c file, in other MQX3.7 demos was used old version of file, sorry for this.
Gargy