enum Parity in library Serial

21 Aug 2011

Hi all,

I try to write a class for a breakout board. For this I thought I can use data types from serial.h

It looks like so:

  1. include "mbed.h" ... Serial7Segment(SerPort sp, int baud, Parity parity, int stop); ...

When I compile it seems that Parity is not recognized. I had a look at the Serial.h and saw that Parity is an enum which is public. So, someone has some advice what went wrong?

Cheers,Lumberjack