[Gnuk-users] Chopstx: USB init code and Supporting CQ STARM
NIIBE Yutaka
gniibe at fsij.org
Tue Jun 30 01:45:40 UTC 2015
Hello,
I updated Chopstx a bit. Integrating the support of STM32 Primer2
by Kaz Kojima, I found that the code was a bit ambiguous.
There are three things for GPIO.
(1) LED
This is mandatory. Chopstx assumes its application requires a
LED.
(2) USB
This is an optional feature of disconnecting USB bus. I don't
know what's the origin, but most of boards of STM32F103 have this
questionable feature. FST-01 also has this feature.
It is questionable and not needed at all, as we can just
disconnect USB bus from MCU side by configuring RCC (see
example-cdc/sys.c:usb_lld_sys_shutdown).
If I will have another opportunity to design a board, I will drop
this feature.
(3) OTHER
When analog inputs for NeuG is not on the GPIO port of LED or USB,
we use this to configure PORT A.
We can also define this if we use other port for some I/O (like
CIR input).
I fixed STM32 Primer2 port so that it can initialize analog inputs (as
FST-01 does).
I also added CQ STARM board support back.
--
More information about the gnuk-users
mailing list