[En-Nut-Discussion] nutgpio_port_t nutgpio_pin_t

Harald Kipp harald.kipp at egnite.de
Mon Feb 11 11:09:06 CET 2013


Hi all,

I noticed, that 2 new types nutgpio_port_t and nutgpio_pin_t had been
introduced. However, it looks to me that these types are not available
for all platforms. As a result, I get

../../nut/dev/i2cbus_gpio.c:78:5: error: unknown type name 'nutgpio_port_t'
../../nut/dev/i2cbus_gpio.c:80:5: error: unknown type name 'nutgpio_pin_t'
../../nut/dev/i2cbus_gpio.c:82:5: error: unknown type name 'nutgpio_port_t'
../../nut/dev/i2cbus_gpio.c:84:5: error: unknown type name 'nutgpio_pin_t'
../../nut/dev/i2cbus_gpio.c:389:6: error: 'nutgpio_port_t' undeclared
here (not in a function)
../../nut/dev/i2cbus_gpio.c:390:6: error: 'nutgpio_pin_t' undeclared
here (not in a function)

when building for the AT91SAM7SE. I assume, that AVR32 is missing as
well. Not sure about Luminary (branch), GameBoy (old but still funny)
... may be more.

For Freescale I see

 typedef uint_fast8_t nutgpio_port_t;
 typedef uint_fast8_t nutgpio_pin_t;

instead of

 typedef uint32_t nutgpio_port_t;
 typedef uint32_t nutgpio_pin_t;

Is that intentional?

Regards,

Harald







More information about the En-Nut-Discussion mailing list