-
Notifications
You must be signed in to change notification settings - Fork 957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[variant] Improve variant support and genericity #1091
Commits on Apr 2, 2021
-
[variant] Group each variant per STM32 series
As the number of variants continues to grow and in order to ease navigation, they have been grouped in sub-folders per STM32 series. Moreover will ease generic variants management. Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 66047f8 - Browse repository at this point
Copy the full SHA 66047f8View commit details -
[PIO] Fix variants path changes
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c64a09c - Browse repository at this point
Copy the full SHA c64a09cView commit details -
[ThunderPack] Split variant per series
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7011b58 - Browse repository at this point
Copy the full SHA 7011b58View commit details -
Rename PinMap_PWM to PinMap_TIM
Define PinMap_PWM as PinMap_TIM for backward compatibility as several libraries use it. They should be updated to use the new name. Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 99c49a2 - Browse repository at this point
Copy the full SHA 99c49a2View commit details -
Extend Arduino pin naming to the max possibilities
- 192 digital pins: GPIO port (A to K + Z) * 16 pins As Ax is defined as an uint8_t the max number is now: 256 - 192 = 64 Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7469071 - Browse repository at this point
Copy the full SHA 7469071View commit details -
Clean up old way to define Ax pins definition
NUM_ANALOG_FIRST is no more supported. Only analogInputPin array is. Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4afab84 - Browse repository at this point
Copy the full SHA 4afab84View commit details -
Introduce all alternative pins per peripheral
- Alternate pins (PY_n_ALTx) - Dual pad pins (PY_n_C) - Remap pins (PY_n_R) Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0a7489d - Browse repository at this point
Copy the full SHA 0a7489dView commit details -
Use mask to ease analog pin management and ease alternative analog pins introduction. Fix some issues. Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ff7f85e - Browse repository at this point
Copy the full SHA ff7f85eView commit details -
Change Ax constants to an enum
to avoid conflicts with other (library) code (i.e. local variables or class attributes named Ax break). Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ac2d9cc - Browse repository at this point
Copy the full SHA ac2d9ccView commit details -
Fix stm32duino#1180 Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0898a85 - Browse repository at this point
Copy the full SHA 0898a85View commit details -
Add Alternate pins (ALTx) management
The PinName mentioned Px_y_ALTz (described in the PeripheralPins.c/PinNames.h files) are alternative possibilities which use other HW peripheral instances. To access those alternative PinName name using a pin number can be performed like this: - PYn_ALTx - Ax | ALTx - Dx | ALTx - x | ALTx Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 71108a3 - Browse repository at this point
Copy the full SHA 71108a3View commit details -
Definition and comments improvements for pins management
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0cafa3c - Browse repository at this point
Copy the full SHA 0cafa3cView commit details -
Move genpinmap from Arduino_Tools repository
Renamed stm32variant.py Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for da7ef68 - Browse repository at this point
Copy the full SHA da7ef68View commit details -
[stm32variant] Update to generate in the core
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e4edbf4 - Browse repository at this point
Copy the full SHA e4edbf4View commit details -
[stm32variant] Use Mcu description
This allows to harden the code as some mcu file name is not enough to define the family, ex: STM32GBK1CBTx is a STM32G4 Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 49a09e9 - Browse repository at this point
Copy the full SHA 49a09e9View commit details
Commits on Apr 6, 2021
-
[stm32variant] Add board_entry.txt
This will help to add generic board entry. Note: upload.maximum_size and product_line have to be verified and changed if needed. Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4fae0c7 - Browse repository at this point
Copy the full SHA 4fae0c7View commit details -
[stm32variant] Add option to generate only one family
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8ff95b8 - Browse repository at this point
Copy the full SHA 8ff95b8View commit details -
[stm32variant] Aggregate generated variant if they are the same
To avoid having duplicated variants with all the same files. Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e6ac2bd - Browse repository at this point
Copy the full SHA e6ac2bdView commit details -
[stm32variant] Add generic_clock.c generation
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 66d6408 - Browse repository at this point
Copy the full SHA 66d6408View commit details -
[stm32variant] Comment option to generate from one mcu file
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4fbc7c7 - Browse repository at this point
Copy the full SHA 4fbc7c7View commit details -
Allow use of a custom peripheral pins file
Syntax in the board.txt: xxx.build.peripheral_pins=-DCUSTOM_PERIPHERAL_PINS Example to use a custom peripheral pins file for Nucleo_L476RG: Nucleo_64.menu.pnum.NUCLEO_L476RG.build.peripheral_pins=-DCUSTOM_PERIPHERAL_PINS Then add a file with ".c" extension like "PeripheralPins_<board>.c" in the variantfolder. At sketch folder: CUSTOM_PERIPHERAL_PINS could now be overridden using the build_opt.h, ex: -DCUSTOM_PERIPHERAL_PINS=\"PeripheralPins_NUCLEO_L476RG.c\" Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 677c076 - Browse repository at this point
Copy the full SHA 677c076View commit details -
[CI] arduino-builder is replaced by arduino-cli
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for abf08af - Browse repository at this point
Copy the full SHA abf08afView commit details -
[stm32variant] Change generic variant generation
- variant.* files are renamed variant_generic.* Generic variant header file will be included thanks a single variant.h using a variable defined in boards.txt - Clean template to remove useless extern "C" - Include guards replaced by #pragma once directive - Use PIN_Ax instead of Ax - Add Dx and Ax info to the digitalPin array Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d046589 - Browse repository at this point
Copy the full SHA d046589View commit details -
[stm32variant] Fix USB mode when AF is not none
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d2674fd - Browse repository at this point
Copy the full SHA d2674fdView commit details
Commits on Apr 7, 2021
-
[stm32variant] Rework dirname aggregation
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cfd7cff - Browse repository at this point
Copy the full SHA cfd7cffView commit details
Commits on Apr 8, 2021
-
[stm32variant] Fix ALTx issue with remapped pins
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0b4c5f7 - Browse repository at this point
Copy the full SHA 0b4c5f7View commit details
Commits on Apr 12, 2021
-
[stm32variant] Fix AFIO definition for F1
Add default AFIO to disable some remapping, used when: <RemapBlock Name="TIM2_REMAP0" DefaultRemap="true" /> is present in xml file. It allows to disable properly to the default remap. Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b4cdfc8 - Browse repository at this point
Copy the full SHA b4cdfc8View commit details
Commits on Apr 15, 2021
-
[stm32variant] Add a README.md
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8366f41 - Browse repository at this point
Copy the full SHA 8366f41View commit details -
[stm32variant] Rename ND by PNUM_NOT_DEFINED
ND is used by some Arduino Library (ex: Ethernet) Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 20e6e72 - Browse repository at this point
Copy the full SHA 20e6e72View commit details -
Add all generated STM32F0xx generic variant files
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b5662d7 - Browse repository at this point
Copy the full SHA b5662d7View commit details -
Add all generated STM32F1xx generic variant files
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6b2b23d - Browse repository at this point
Copy the full SHA 6b2b23dView commit details -
Add all generated STM32F2xx generic variant files
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b78ebe7 - Browse repository at this point
Copy the full SHA b78ebe7View commit details -
Add all generated STM32F3xx generic variant files
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e0cfa88 - Browse repository at this point
Copy the full SHA e0cfa88View commit details -
Add all generated STM32F4xx generic variant files
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 046afd7 - Browse repository at this point
Copy the full SHA 046afd7View commit details -
Add all generated STM32F7xx generic variant files
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0b3dac6 - Browse repository at this point
Copy the full SHA 0b3dac6View commit details -
Add all generated STM32G0xx generic variant files
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4d23012 - Browse repository at this point
Copy the full SHA 4d23012View commit details -
Add all generated STM32G4xx generic variant files
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ec30479 - Browse repository at this point
Copy the full SHA ec30479View commit details -
Add all generated STM32H7xx generic variant files
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2f7d688 - Browse repository at this point
Copy the full SHA 2f7d688View commit details -
Add all generated STM32L0xx generic variant files
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e0157b7 - Browse repository at this point
Copy the full SHA e0157b7View commit details -
Add all generated STM32L1xx generic variant files
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b9e45d1 - Browse repository at this point
Copy the full SHA b9e45d1View commit details -
Add all generated STM32L4xx generic variant files
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f1685bd - Browse repository at this point
Copy the full SHA f1685bdView commit details -
Add all generated STM32L5xx generic variant files
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b04d918 - Browse repository at this point
Copy the full SHA b04d918View commit details -
Add all generated STM32MP1xx generic variant files
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7c2fddd - Browse repository at this point
Copy the full SHA 7c2fdddView commit details -
Add all generated STM32WBxx generic variant files
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f3f7c43 - Browse repository at this point
Copy the full SHA f3f7c43View commit details -
Add all generated STM32WLxx generic variant files
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d71f287 - Browse repository at this point
Copy the full SHA d71f287View commit details -
Update variant header management
By default the variant.h will include variant_generic.h file. *.build.variant_h=variant_{build.board}.h can be added in the boards.txt to define the dedicated header to a board. Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7a95366 - Browse repository at this point
Copy the full SHA 7a95366View commit details -
All specific L4 variants moved to the generic variant. Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d61905e - Browse repository at this point
Copy the full SHA d61905eView commit details -
All specific G4 variants moved to the generic variant. Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 24c724a - Browse repository at this point
Copy the full SHA 24c724aView commit details -
[variant] Add support of board B-G431B-ESC1
Supersede stm32duino#1236 Signed-off-by: Owen Williams <[email protected]> Co-authored-by: Alexandre Bourdiol <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 55c761f - Browse repository at this point
Copy the full SHA 55c761fView commit details -
Nucleo G071RB and Disco G0316 moved to the generic variant. Fix stm32duino#857 Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 606b131 - Browse repository at this point
Copy the full SHA 606b131View commit details -
https://www.bfy.kr/aurora-one/ Supersede stm32duino#1176 Signed-off-by: JongHyeon Lee <[email protected]> Co-authored-by: Frederic.Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2a78e9d - Browse repository at this point
Copy the full SHA 2a78e9dView commit details -
Add Nucleo G031K8 and generic G031Kx
Fix stm32duino#855 Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cfd0b17 - Browse repository at this point
Copy the full SHA cfd0b17View commit details -
All specific F0 variants moved to the generic variant. Supersede stm32duino#1080 Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 503f79e - Browse repository at this point
Copy the full SHA 503f79eView commit details -
Supersede stm32duino#1103 Signed-off-by: seeers <[email protected]> Co-authored-by: Frederic.Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9234b65 - Browse repository at this point
Copy the full SHA 9234b65View commit details -
Supersede stm32duino#1167 Signed-off-by: Geoffrey Hunter <[email protected]> Co-authored-by: Frederic.Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6a45026 - Browse repository at this point
Copy the full SHA 6a45026View commit details -
[variant] Update Generic MP1xx
As STM32MP1 is particular, the generic target have to be customized by end user based on the used device tree. So, currently, generic menu will not be deployed. Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 51b7236 - Browse repository at this point
Copy the full SHA 51b7236View commit details -
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for db9b6ed - Browse repository at this point
Copy the full SHA db9b6edView commit details -
[variant] Add Generic L5xx and Nucleo L552ZE-Q
Supersede stm32duino#1256 Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b20c5ed - Browse repository at this point
Copy the full SHA b20c5edView commit details -
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1920959 - Browse repository at this point
Copy the full SHA 1920959View commit details -
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5bd495f - Browse repository at this point
Copy the full SHA 5bd495fView commit details -
Fix stm32duino#1276 and Fix stm32duino#1277 Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4f033ba - Browse repository at this point
Copy the full SHA 4f033baView commit details -
Supersede stm32duino#1192 Signed-off-by: Vladimir Kozlov <[email protected]> Co-authored-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f79a926 - Browse repository at this point
Copy the full SHA f79a926View commit details -
Some series require to have it defined by default (H7, MP1) Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 30ddea4 - Browse repository at this point
Copy the full SHA 30ddea4View commit details -
Fix stm32duino#1302 Signed-off-by: Alexandre Bourdiol <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7a3a084 - Browse repository at this point
Copy the full SHA 7a3a084View commit details
Commits on Apr 16, 2021
-
Signed-off-by: Alexandre Bourdiol <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d3438df - Browse repository at this point
Copy the full SHA d3438dfView commit details -
Supersede stm32duino#1123 Signed-off-by: Morten Kals <[email protected]> Co-authored-by: Alexandre Bourdiol <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2315591 - Browse repository at this point
Copy the full SHA 2315591View commit details -
Signed-off-by: Alexandre Bourdiol <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 87bb2ed - Browse repository at this point
Copy the full SHA 87bb2edView commit details -
Supersede stm32duino#1238 Signed-off-by: dnandha <[email protected]> Co-authored-by: Alexandre Bourdiol <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f4d5b62 - Browse repository at this point
Copy the full SHA f4d5b62View commit details -
[Variant] Add OLIMEXINO-STM32F3
Supersede stm32duino#1115 Signed-off-by: Stanimir Petev <[email protected]> Co-authored-by: Alexandre Bourdiol <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0bc6d02 - Browse repository at this point
Copy the full SHA 0bc6d02View commit details -
Supersede stm32duino#1337 Signed-off-by: Alexandre Bourdiol <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 51e9a15 - Browse repository at this point
Copy the full SHA 51e9a15View commit details -
BlackPill F401CC: add USER_BTN on PA0
Note this user button is not available on all revisions of this board Fixes stm32duino#1144 Signed-off-by: Alexandre Bourdiol <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0496974 - Browse repository at this point
Copy the full SHA 0496974View commit details -
[variant] Add STM32F407ZGT6 Mini and Generic_F407Zx
Supersed stm32duino#1130 Signed-off-by: dds90 <[email protected]> Co-authored-by: Alexandre Bourdiol <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9207aaa - Browse repository at this point
Copy the full SHA 9207aaaView commit details -
BLACK_F407ZX: invert PF9 and PF10 in digitalPin[]
Invert PF9 and PF10 in digitalPin[] to match their definition in variant.h Fixes forum issue: https://www.stm32duino.com/viewtopic.php?p=6652#p6652 Signed-off-by: Alexandre Bourdiol <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7582527 - Browse repository at this point
Copy the full SHA 7582527View commit details -
Signed-off-by: Alexandre Bourdiol <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f17e7be - Browse repository at this point
Copy the full SHA f17e7beView commit details -
Supersed stm32duino#1208 Signed-off-by: Martin Cerný <[email protected]> Co-authored-by: Alexandre Bourdiol <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6a94738 - Browse repository at this point
Copy the full SHA 6a94738View commit details -
[PIO]Fix variant header and path changes
This is is only a workaround to allow the PIO build action. Targets have been changed due to '(' and ')' in their paths which prevent the build even if they are protected. Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cbbb14c - Browse repository at this point
Copy the full SHA cbbb14cView commit details -
[CI] Update configuration to build only one generic per variant
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1e38015 - Browse repository at this point
Copy the full SHA 1e38015View commit details -
[variant] Remove board_template
Wiki will be updated to describe the new way to define a variant. Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ba52cf2 - Browse repository at this point
Copy the full SHA ba52cf2View commit details -
Group system IP clock enable in separate function called at init
This new function could be called by STM32duino_Low_Power library Signed-off-by: Alexandre Bourdiol <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 088209c - Browse repository at this point
Copy the full SHA 088209cView commit details -
Currently only H7 is concerned. MP1 hardware also have dualpad analog switch but behavior is different and in our case, switch should always remain open. Signed-off-by: Alexandre Bourdiol <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f8ddc9c - Browse repository at this point
Copy the full SHA f8ddc9cView commit details -
[CI] Update core configuration
Signed-off-by: Frederic Pillon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7ec57a1 - Browse repository at this point
Copy the full SHA 7ec57a1View commit details