/** * Constructor. * */ StandardIO::StandardIO() : ManuvrXport("StandardIO") { // Build some pre-formed Events. read_abort_event.repurpose(MANUVR_MSG_XPORT_QUEUE_RDY, (EventReceiver*) this); read_abort_event.incRefs(); read_abort_event.specific_target = (EventReceiver*) this; read_abort_event.priority(5); _bp_set_flag(BPIPE_FLAG_PIPE_PACKETIZED, true); _xport_mtu = 255; }
/** * Constructor. * */ STM32F7USB::STM32F7USB() : ManuvrXport() { INSTANCE = this; setReceiverName("USB"); // /* Init USB peripheral as VCP */ // TM_USBD_CDC_Init(TM_USB_FS); // TM_USBD_Start(TM_USB_FS); _bp_set_flag(BPIPE_FLAG_IS_BUFFERED, true); // We are the software nearest to the counterparty, and we do not // allocate buffers we send. setNear(this); // Build some pre-formed Events. read_abort_event.repurpose(MANUVR_MSG_XPORT_QUEUE_RDY, (EventReceiver*) this); read_abort_event.incRefs(); read_abort_event.specific_target = (EventReceiver*) this; read_abort_event.priority(1); _xport_mtu = MANUVR_USB_BUF_SIZE; }