DuinOS: small and simple rtos

Thanks. I haven't got the 168 hardware right now, but I think it may be a RAM issue. I will try to do some tests this week (but it's a hard week :slight_smile: ).
But looking at the HardwareSerial.h and HardwareSerial.cpp files, I saw that we forgot to create the instances for the Serial1 when the 644 and the 1284 CPUs are used. It will be done in the v0.2 version, but now you can add something like this to your files:

HardwareSerial.cpp:

#if defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__)
HardwareSerial Serial1(&rx_buffer1, &UBRR1H, &UBRR1L, &UCSR1A, &UCSR1B, &UDR1, RXEN1, TXEN1, RXCIE1, UDRE1, U2X1);
#endif

HardwareSerial.h:

#if defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__)
extern HardwareSerial Serial1;
#endif

Regards,
Julián