Ejemplo n.º 1
0
        public Serial(UARTName uart, PinName tx, PinName rx, PinName rts = PinName.NC, PinName cts = PinName.NC)
        {
            this.uart = uart;
            this.tx   = tx;
            this.rx   = rx;
            this.rts  = rts;
            this.cts  = cts;

            serial = new SerialPort();
        }
Ejemplo n.º 2
0
 public PinMap(PinName pin, UARTName peripheral, int function) :
     this(pin, (int)peripheral, function)
 {
 }