RE: i.MX RT 1060 ADC

2020-09-16 Thread Thomas Axelsson
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 driver is simpler (STM32 handles many variants), 
while the STM32 driver has a clearer multi-ADC and multi-channel structure 
(although I just realized that mask in the LPC driver might be the channel 
selector). Just writing this here in case someone wants to point me in another 
direction.

BR
Thomas

-Original Message-
From: David Sidrane  
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/master/platforms/nuttx/src/px4/nxp/im
xrt/adc/adc.cpp to get the required logic.

To fill in the 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 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 *_adc.c files turned up almost no differences). I tried grepping 
for some register names to see if the IP block is already implemented for 
another chip, but without luck.

I'm sending this e-mail to see if someone else is already working on the same 
thing. I did see that imxrt_adc.h has gotten some updates.

Thomas Axelsson
SW Developer
ACTIA Nordic AB (part of ACTIA Group)

Mail: thomas.axels...@actia.se
Web: www.actia.se


Re: [nuttx] nuttx.org going away

2020-09-16 Thread michal . lyszczek
On 2020-08-30 10:36:25, patacongo wrote:
> 
> For many years, the NuttX website was at nuttx.org.  However, when NuttX 
> joined the Apache Software Foundation (ASF) as an incubating project, the 
> website was redesigned and is now at nuttx.apache.org.  The nuttx.org 
> currently just redirects to nuttx.apache.org.
> 
> I will be ending that re-direction primarily do to certificate issues that 
> are just not worth bothering with.  So within the next 24 hours, nuttx.org 
> will no longer take you to the nuttx.apache.org website.  Please update 
> your links.

Wouldn't it be better to at least simply write "project moved to
nuttx.apache.org" and maybe some usefull links like wiki, mailing
list, git repo etc?  Right now someone might think project is dead
or something if one visits that site from an old resource.

Crossposting to dev@nuttx.apache.org

-- 
.-.---.-.--.
| Michal Lyszczek | Embedded C, Linux |   Company Address   |  .-. open source |
| +48 727 564 419 | Software Engineer | Leszczynskiego 4/29 |  oo|  supporter  |
| https://bofc.pl `.--: 50-078 Wroclaw, Pol | /`'\  &  |
| GPG FF1EBFE7E3A974B1 | Bits of Code | NIP:  813 349 58 78 |(\_;/) programer  |
`--^--^-^--'


signature.asc
Description: PGP signature


Re: [nuttx] nuttx.org going away

2020-09-16 Thread michal . lyszczek
On 2020-09-16 06:34:04, patacongo wrote:
>
> > Wouldn't it be better to at least simply write "project moved to
> > nuttx.apache.org " and maybe some usefull links
> like wiki, mailing
> > list, git repo etc? Right now someone might think project is dead
> > or something if one visits that site from an old resource.
>
> Sure, but the problem is that nuttx.org is not a website.  It is just a
> domain name that I own that is parked at GoDaddy.com.  It could re-direct,
> but it cannot serve up any pages.

Well, someone could host such simple site on his own webserwer. It would be
best if that was someone trustworthy so he doesn't replace links with
malicious ones somewhere in the future.

I could host it on my server if you wish.

-- 
.-.---.-.--.
| Michal Lyszczek | Embedded C, Linux |   Company Address   |  .-. open source |
| +48 727 564 419 | Software Engineer | Leszczynskiego 4/29 |  oo|  supporter  |
| https://bofc.pl `.--: 50-078 Wroclaw, Pol | /`'\  &  |
| GPG FF1EBFE7E3A974B1 | Bits of Code | NIP:  813 349 58 78 |(\_;/) programer  |
`--^--^-^--'


signature.asc
Description: PGP signature


Re: [nuttx] nuttx.org going away

2020-09-16 Thread michal . lyszczek
On 2020-09-16 07:52:48, patacongo wrote:
> > I could host it on my server if you wish. 
> 
> I can't transfer the name to anyone else.  The name now belongs to the 
> Apache Software Foundation (or it will if/when the project graduates).

No, no. I would never suggest to tranfer domain rights to me. You either
(1) specify DNS server for the domain (that will point to my dns server) or
(2) you manage your own DNS zone and only add "A" record and point it to
my server.

(2) is definately a way to go, since (1) allows me to setup subdomains
and even mail addresses with nuttx.org domain, while (2) will allow me
to control contents of single "http://nuttx.com"; domain - which of course
you can revoke by removing "A" record in your DNS zone.

Mind that (2) will also allow me to, for example do 'ssh nuttx.org',
which I will be able to redirect anywhere.

So yeah, you really need to ask yourself the question if you can afford
to give such power to some random dude on the net. I'm not saying I will
do any of it. But how can you know?

-- 
.-.---.-.--.
| Michal Lyszczek | Embedded C, Linux |   Company Address   |  .-. open source |
| +48 727 564 419 | Software Engineer | Leszczynskiego 4/29 |  oo|  supporter  |
| https://bofc.pl `.--: 50-078 Wroclaw, Pol | /`'\  &  |
| GPG FF1EBFE7E3A974B1 | Bits of Code | NIP:  813 349 58 78 |(\_;/) programer  |
`--^--^-^--'


signature.asc
Description: PGP signature


Fwd: Re: [nuttx] nuttx.org going away

2020-09-16 Thread Matias N.
Not sure if this was received on the second list as well, so I'm forwarding to 
googlegroups. I'm lost on which discussion this conversation is taking place.

Let's just move to our new official URL. There's no point in having Greg keep 
the nuttx.org domain by himself and that someone else keeps a private server 
for this. It is only asking for more burden on individuals. The right approach 
is to use the community resources for this.

Best,
Matias

- Original message -
From: "Matias N." 
To: NuttX 
Subject: Re: [nuttx] nuttx.org going away
Date: Wednesday, September 16, 2020 11:07

If you google "nuttx" the first result is Apache's site. If you explicitly 
google "nuttx.org", Apache's site is the second one.
We already switched references to nuttx.org in documentation so no point in 
keeping a second URL around even for a redirect. 

Best,
Matias

On Wed, Sep 16, 2020, at 11:03, michal.lyszc...@bofc.pl wrote:
> On 2020-09-16 06:34:04, patacongo wrote:
> >
> > > Wouldn't it be better to at least simply write "project moved to
> > > nuttx.apache.org " and maybe some usefull links
> > like wiki, mailing
> > > list, git repo etc? Right now someone might think project is dead
> > > or something if one visits that site from an old resource.
> >
> > Sure, but the problem is that nuttx.org is not a website.  It is just a
> > domain name that I own that is parked at GoDaddy.com.  It could re-direct,
> > but it cannot serve up any pages.
> 
> Well, someone could host such simple site on his own webserwer. It would be
> best if that was someone trustworthy so he doesn't replace links with
> malicious ones somewhere in the future.
> 
> I could host it on my server if you wish.
> 
> -- 
> .-.---.-.--.
> | Michal Lyszczek | Embedded C, Linux |   Company Address   |  .-. open 
> source |
> | +48 727 564 419 | Software Engineer | Leszczynskiego 4/29 |  oo|  supporter 
>  |
> | https://bofc.pl `.--: 50-078 Wroclaw, Pol | /`'\  & 
>  |
> | GPG FF1EBFE7E3A974B1 | Bits of Code | NIP:  813 349 58 78 |(\_;/) programer 
>  |
> `--^--^-^--'
> 
> -- 
> This group has moved to the Apache Foundation:
> http://nuttx.incubator.apache.org/community/
> --- 
> You received this message because you are subscribed to the Google Groups 
> "NuttX" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to nuttx+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/nuttx/20200916140327.nwfmoh53qmima53s%40marchewa.redembedded.pl.
> 
> 
> *Attachments:*
>  * signature.asc