krüe :: avrforth :: usb

usb controller

The usb controller supports v2.0 full speed and low speed (not high speed). All devices support device mode. Some devices also support host mode and on the go.

words

word stack description
usb-host ( -- ) use host mode
usb-device ( -- ) use device mode
usb-uid ( -- ) use the mode determined by the uid pin
usb ( -- ) enable usb
/usb ( -- ) disable usb
usb-freeze ( -- ) freeze usb clock
usb-thaw ( -- ) thaw usb clock
usb-vbus? ( -- f ) read vbus status