Commit graph

34 commits

Author SHA1 Message Date
Frederic.Pillon
a90bb382c7 [genpinmap] Fix output format for AStyle
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-11-30 15:54:54 +01:00
Frederic.Pillon
b144be3df6 [PinMap] Update files after HAL update
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-11-30 15:46:49 +01:00
Frederic.Pillon
8602a18d76 [PinMap] Update STM32L47xx and STM32L48xx
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-11-16 16:30:55 +01:00
Frederic.Pillon
61b2c93dde [genpinmap] Fix STM32L47xxx/48xxx ADC pinmap
For the ADC, it is necessary to configure
the GPIOx_ASCR register, only for STM32L47xxx/48xxx

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-11-16 16:29:26 +01:00
Frederic.Pillon
c41950af8b [genpinmap] Use Flake8 for Style Guide Enforcement
http://flake8.pycqa.org/

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-11-16 16:02:24 +01:00
Frederic.Pillon
27cea3ca8a [genpinmap] Use Black code formatter
Black is the uncompromising Python code formatter:
https://github.com/ambv/black/

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-11-16 15:37:09 +01:00
Frederic.Pillon
476e696cfa [PinMap] Update files after HAL update
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-10-26 16:32:41 +02:00
Frederic.Pillon
5ff1da048f [PinMap] Update files after HAL update
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-08-13 14:23:35 +02:00
Frederic.Pillon
b6dc631379 [genpinmap] sort TIM by numerical order
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-05-03 16:07:57 +02:00
Frederic.Pillon
12fa1203f6 [genpinmap] Add SYS_WKUP definition
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-05-02 10:27:24 +02:00
Frederic.Pillon
39ae4adec6 [genpinmap] Clean up
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-05-02 09:12:45 +02:00
Frederic.Pillon
a944cb5f58 [genpinmap] Use foreach for list iteration
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-05-02 09:12:45 +02:00
Frederic.Pillon
33205722ff [genpinmap] Enhance arguments
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-05-02 09:12:45 +02:00
Frederic.Pillon
da6cd5ab0e [genpinmap] Enhance path management
Use JSON configuration file

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
2018-05-02 09:12:40 +02:00
Frederic.Pillon
88602c9d1a [genpinmap] Remove unuseful scripts
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-04-30 17:59:23 +02:00
Frederic.Pillon
29856620cc [genpinmap] Add input mcu xml file name used to generate file
Add some cleaning

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-04-30 17:59:03 +02:00
Frederic.Pillon
a15e64a7a7 Fix ADC channel parsing
Handle ADCx_INPy and ADCx_INPy used for H7

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-04-04 17:22:07 +02:00
Frederic.Pillon
54392779f3 Add all PeripheralPins.c
generated from MCU xml file description avalable in STM32CubeMX

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-03-20 10:41:57 +01:00
Frederic.Pillon
3debe0419a [genpinmap] use current year instead of constant one
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-03-20 10:41:57 +01:00
Frederic Pillon
0042fa24ba
Create README.md 2018-03-20 10:41:03 +01:00
Frederic.Pillon
f5c8329c64 Set CAN1 if only one instance
For some serie:
- CAN is defined and not CAN1
- CAN is not defined and CAN1 is
- CAN and CAN1 are defined

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2017-08-22 09:36:12 +02:00
Frederic.Pillon
9a384417b4 Add BluePill and MapleMini to the scripts
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2017-08-21 15:38:49 +02:00
Frederic.Pillon
fa4ff52ced Some AF for F1 are missing
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2017-08-21 15:28:17 +02:00
Frederic.Pillon
3078740849 Fix missing ',' for CAN
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2017-08-21 10:56:13 +02:00
Frederic Pillon
2fa77a8d9f Set the GPIO Mode to STM_MODE_INPUT instead of STM_MODE_AF_PP for F1
For Uart_RX and CAN_RD

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
2017-08-20 12:40:30 +02:00
Frederic Pillon
c7435b673b Remove uneeded comment
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
2017-08-20 09:44:13 +02:00
Frederic Pillon
d4f2c75843 Add support for STM32F10x
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2017-08-19 13:10:02 +02:00
Frederic.Pillon
2138479822 Update pin name formatting. PXn -> PX_n
Requested by:
https://github.com/stm32duino/Arduino_Core_STM32/issues/81

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2017-08-17 15:18:17 +02:00
Frederic.Pillon
2c61ba3451 Add Nucleo L152
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2017-08-14 09:58:57 +02:00
Frederic Pillon
65c78df5e4 Merge pull request #15 from fprwi6labs/add_qspi_pins
Add qspi pins
2017-08-14 09:44:13 +02:00
Frederic.Pillon
cc20fc283d Add command line for all supported variants
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2017-08-14 09:36:14 +02:00
fpr
d6ea7e2a02 Add board DISCO-L475VG
Signed-off-by: fpr <fabien.perroquin@wi6labs.com>
2017-08-14 09:08:23 +02:00
fpr
edadaf9018 Add QUADSPI pinmap generation
Signed-off-by: fpr <fabien.perroquin@wi6labs.com>
2017-08-14 09:06:08 +02:00
Frederic.Pillon
e7bc10e0f0 Add genpinmap script
This tool allows to generate the pins mapping of an STM32 MCU.

This script is able to generate the PeripheralPins.c using STM32
xml file description in Cube MX.
After file generation, review it carefully.
Comment a line if the pin is generated several times for the same IP
or if the pin should not be used
(overlaid with some HW on the board, for instance)

USAGE: genpinmap_arduino.py <BOARD_NAME> <product xml file name>

    <BOARD_NAME> is the name of the board as it will be named in mbed
    <product xml file name> is the STM32 file description in Cube MX

!!This xml file contains non alpha characters in its name, you should call it with quotes

Fix #10

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2017-07-04 17:44:08 +02:00