Commit graph

26 commits

Author SHA1 Message Date
Frederic.Pillon
059e2c8c22 [genpimap] Ignore STM32MP*.xml provided with STM32CubeMX 5.1.0
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2019-02-20 09:33:04 +01:00
Frederic.Pillon
1308c7b361 [genpinmap] Fix PinNamesVar.h format
To avoid astyle check issue

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2019-02-15 14:54:37 +01:00
Frederic.Pillon
2453a90ac1 [genpinmap] Fix PinMap_USB_OTG_HS
If USE_USB_HS_IN_FS is defined only those pins have
to be defined

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2019-01-25 09:17:04 +01:00
Frederic.Pillon
840b8d62cc [genpinmap] Add missing pins
Fix #31

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2019-01-04 14:34:45 +01:00
Frederic.Pillon
4a869802e5 [genpinmap] Add USB feature
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-12-08 16:04:22 +01:00
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
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
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
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
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
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
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
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
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