Advanced Distributed Systems module at HSLU
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Jonas Arnold 2404d9a09d renamed project ADIS_Sumo_Styger to ADIS_Sumo 4 years ago
..
cdc renamed project ADIS_Sumo_Styger to ADIS_Sumo 4 years ago
device renamed project ADIS_Sumo_Styger to ADIS_Sumo 4 years ago
include renamed project ADIS_Sumo_Styger to ADIS_Sumo 4 years ago
osa renamed project ADIS_Sumo_Styger to ADIS_Sumo 4 years ago
readme.txt renamed project ADIS_Sumo_Styger to ADIS_Sumo 4 years ago

readme.txt

readme usb cdc
--------------
- add following to the compiler defines:
USB_STACK_BM

- add the following to the include path settings
../usb/device/source/khci
../usb/include
../usb/device/include
../usb/device/source
../usb/device/class
../usb/device/class/cdc
../usb/osa
../usb/cdc

- add the following to platform.h
#define PL_CONFIG_USE_USB_CDC (1)

- add the following to platform.c:
#if PL_CONFIG_USE_USB_CDC
#include "virtual_com.h"
#endif

#if PL_CONFIG_USE_USB_CDC
USB_APPInit(); /* Initialize USB first before the UART, because this changes the clock settings! */
#endif

- the shell.c shall have USB CDC I/O descriptor enabled



Notes:
- USB_CDC_ABSTRACT_CONTROL_FUNC_DESC in usb_device_descriptor.c
- USB_DEVICE_CDC_REQUEST_SET_CONTROL_LINE_STATE in virtual_com.c
- #define LINE_CODING_DTERATE (115200)

Termite needs Flow Control (RTS/CTS) enabled!
The 'fix' in https://community.nxp.com/thread/493438 did not work :-(

Termite: 115200, RTS/CTC enabled, append CR+LF
SmarTTY: