Add loopback support to STM32 CAN driver; Add apps/examples/can loopback test

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4213 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2011-12-22 15:59:50 +00:00
parent 907471d5dc
commit bfc578860c
41 changed files with 865 additions and 68 deletions
+6 -1
View File
@@ -124,6 +124,11 @@ int adc_devinit(void)
/* Call stm32_adcinitialize() to get an instance of the ADC interface */
adc = stm32_adcinitialize(1, g_chanlist, ADC_NCHANNELS);
if (adc == NULL)
{
adbg("ERROR: Failed to get ADC interface\n");
return;
}
/* Register the ADC driver at "/dev/adc0" */
@@ -133,7 +138,7 @@ int adc_devinit(void)
adbg("adc_register failed: %d\n", ret);
}
return OK;
return ret;
}
#endif /* CONFIG_STM32_ADC || CONFIG_STM32_ADC2 || CONFIG_STM32_ADC3 */