Implements a USB-to-serial adapter, compliant to the CDCACM subclass.
UART1 is used for the TX/RX lines. Although UART1 also has lines for flow
control, they are not used. Instead, the control lines are implemented in
software via GPIOA.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
We updated the GPIO API to use the AHB bus; however the AHP aperture for
GPIO ports A through J needs to be explicitly enabled at runtime. Accessing
the AHB aperture otherwise hardfaults.
To make the examples work again, we call gpio_enable_ahb_aperture() at the
start of main().
Since we're at it, we also take out the ugly register accesses in favor
of the new gpio functions.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Nothing fancy, just a demonstration of the blocking send and recieve.
Also update libopencm3 submodule to include the lm4f UART API.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>