mirror of
https://github.com/eddyem/stm32samples.git
synced 2025-12-06 10:45:11 +03:00
12 lines
316 B
Plaintext
12 lines
316 B
Plaintext
USB PL2303 emulation. Send data to SPI and read answer.
|
|
|
|
Protocol:
|
|
"F - change SPI flags (F f val), f== l-LSBFIRST, b-BR [18MHz/2^(b+1)], p-CPOL, h-CPHA\n"
|
|
"G - get SPI status\n"
|
|
"I - reinit SPI\n"
|
|
"R - software reset\n"
|
|
"S - send data over SPI\n"
|
|
"T - show Tms value\n"
|
|
|
|
APB2 clock is 18MHz
|