Names should include the size in bits, if not 1
Signed-off-by: Michel Pollet <buserror@gmail.com>
[IOPORT_IRQ_PIN5] = "=pin5",
[IOPORT_IRQ_PIN6] = "=pin6",
[IOPORT_IRQ_PIN7] = "=pin7",
- [IOPORT_IRQ_PIN_ALL] = "=all",
- [IOPORT_IRQ_DIRECTION_ALL] = ">ddr",
+ [IOPORT_IRQ_PIN_ALL] = "8=all",
+ [IOPORT_IRQ_DIRECTION_ALL] = "8>ddr",
};
static avr_io_t _io = {
char * dst = buf;
// copy the 'flags' of the name out
const char * kind = io->irq_names[i];
+ while (isdigit(*kind))
+ *dst++ = *kind++;
while (!isalpha(*kind))
*dst++ = *kind++;
// add avr name