Re: i.MX RT 1060 ADC

2020-09-23 Thread Alan Carvalho de Assis
Hi Thomas, On 9/22/20, Thomas Axelsson wrote: > Hi, > > I have now created a PR for a simple IMXRT ADC driver. ( > https://github.com/apache/incubator-nuttx/pull/1868 ) > Nice work, thank you! > The names of register bit values for ADC_CFG:ADSTS do not match between > IMXRT 1020 and 1050/1060.

RE: i.MX RT 1060 ADC

2020-09-22 Thread Thomas Axelsson
@nuttx.apache.org Subject: RE: i.MX RT 1060 ADC Thank you, David, It's good to have a working example. Regarding the existing ADC code, I realized that I had only diffed over the various LPCxxx drivers. My current starting point is the LPC driver with things picked from the STM32. The LPC driv

RE: i.MX RT 1060 ADC

2020-09-16 Thread Thomas Axelsson
drane Sent: den 15 september 2020 12:15 To: dev@nuttx.apache.org Subject: RE: i.MX RT 1060 ADC Hi Thomas, If you structure the driver like any of the other ADC drivers in tree you should be able to reference px4_arch_adc_init and px4_arch_adc_sample from https://github.com/PX4/Firmware/blob/m

RE: i.MX RT 1060 ADC

2020-09-15 Thread David Sidrane
meat, but you will have to do it in nuttx style using the {get|set}reg32 calls. David -Original Message- From: Thomas Axelsson [mailto:thomas.axels...@actia.se] Sent: Tuesday, September 15, 2020 2:55 AM To: dev@nuttx.apache.org Subject: i.MX RT 1060 ADC Hi, I'm looking into using th

i.MX RT 1060 ADC

2020-09-15 Thread Thomas Axelsson
Hi, I'm looking into using the ADC on IMXRT 1060. I have found imxrt_adc.h and some examples in nuttx-apps using /dev/adcXX. However, it seems that the actual functionality is not yet implemented for IMXRT. So I'm looking into implementing this driver, based on e.g. lpc17_40_adc.c (diffing all