LPC24xx PIO_PINS_PER_PORT

classic Classic list List threaded Threaded
3 messages Options
Dado Sutter Dado Sutter
Reply | Threaded
Open this post in threaded view
|

LPC24xx PIO_PINS_PER_PORT

Hello,
   On platform_conf.h for lpc24xx platform, we have:

// Pins per port configuration: 
// #define PIO_PINS_PER_PORT (n) if each port has the same number of pins, or
// #define PIO_PIN_ARRAY { n1, n2, ... } to define pins per port in an array
// Use #define PIO_PINS_PER_PORT 0 if this isn't needed
#define PIO_PINS_PER_PORT     31

Is PIO_PINS_PER_PORT really what it means or it is actually pio_pins_per_port - 1 ?

LPC2468 has 32 pins per port. Is there any reason this was limited to 31 ?
I've built an image with PINS_PER_PORT beeing 32, tested it on an LPC2468 and it seems to work fine for all I/O pins.

I'm ready to commit it (as 32...) but it doesn't look like an error at first sight.

Best
Dado









_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
BogdanM BogdanM
Reply | Threaded
Open this post in threaded view
|

Re: LPC24xx PIO_PINS_PER_PORT

Sorry, it is an error :) Committing it as 32 shold be just fine.

Best,
Bogdan

On Mon, Feb 1, 2010 at 11:48 PM, Dado Sutter <[hidden email]> wrote:
Hello,
   On platform_conf.h for lpc24xx platform, we have:

// Pins per port configuration: 
// #define PIO_PINS_PER_PORT (n) if each port has the same number of pins, or
// #define PIO_PIN_ARRAY { n1, n2, ... } to define pins per port in an array
// Use #define PIO_PINS_PER_PORT 0 if this isn't needed
#define PIO_PINS_PER_PORT     31

Is PIO_PINS_PER_PORT really what it means or it is actually pio_pins_per_port - 1 ?

LPC2468 has 32 pins per port. Is there any reason this was limited to 31 ?
I've built an image with PINS_PER_PORT beeing 32, tested it on an LPC2468 and it seems to work fine for all I/O pins.

I'm ready to commit it (as 32...) but it doesn't look like an error at first sight.

Best
Dado









_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev



_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
Dado Sutter Dado Sutter
Reply | Threaded
Open this post in threaded view
|

Re: LPC24xx PIO_PINS_PER_PORT

On Mon, Feb 1, 2010 at 19:53, Bogdan Marinescu <[hidden email]> wrote:
Sorry, it is an error :) Committing it as 32 shold be just fine.

Done.
 
Best,
Bogdan

Thanks!
Dado



 

On Mon, Feb 1, 2010 at 11:48 PM, Dado Sutter <[hidden email]> wrote:
Hello,
   On platform_conf.h for lpc24xx platform, we have:

// Pins per port configuration: 
// #define PIO_PINS_PER_PORT (n) if each port has the same number of pins, or
// #define PIO_PIN_ARRAY { n1, n2, ... } to define pins per port in an array
// Use #define PIO_PINS_PER_PORT 0 if this isn't needed
#define PIO_PINS_PER_PORT     31

Is PIO_PINS_PER_PORT really what it means or it is actually pio_pins_per_port - 1 ?

LPC2468 has 32 pins per port. Is there any reason this was limited to 31 ?
I've built an image with PINS_PER_PORT beeing 32, tested it on an LPC2468 and it seems to work fine for all I/O pins.

I'm ready to commit it (as 32...) but it doesn't look like an error at first sight.

Best
Dado









_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev



_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev



_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev