Skip to content
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] Add Generic F4xx #12

Closed
wants to merge 55 commits into from
Closed

Conversation

ABOSTM
Copy link

@ABOSTM ABOSTM commented Apr 2, 2021

Summary
[variant] Add Generic F4xx

Supersede stm32duino#1337

fpistm and others added 30 commits April 2, 2021 15:21
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 <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
To avoid having duplicated variants with all the same files.

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
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 <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
- 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

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
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 <frederic.pillon@st.com>
All specific L4 variants moved to the generic variant.

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
All specific G4 variants moved to the generic variant.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Supersede stm32duino#1236

Signed-off-by: Owen Williams <williams.owen@gmail.com>
Co-authored-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Nucleo G071RB and Disco G0316 moved to the generic variant.

Fix stm32duino#857

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm and others added 9 commits April 2, 2021 15:22
Some series require to have it defined by default (H7, MP1)

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Fix stm32duino#1302

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Supersede stm32duino#1123

Signed-off-by: Morten Kals <morten@kals.no>
Co-authored-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Supersede stm32duino#1238

Signed-off-by: dnandha <daljeet@gmx.net>
Co-authored-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Supersede stm32duino#1115

Signed-off-by: Stanimir Petev <stanimir.petev@gmail.com>
Co-authored-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistm
Copy link
Owner

fpistm commented Apr 3, 2021

One point raised on the forum which could be fixed in this PR
https://www.stm32duino.com/viewtopic.php?p=6652#p6652

ABOSTM and others added 4 commits April 6, 2021 15:06
Supersede stm32duino#1337

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Note this user buuton is not available on all revisions of this board

Fixes stm32duino#1144

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
Add [New variant] STM32F407ZGT6 Mini and Generic_F407Zx
Supersed stm32duino#1130

Signed-off-by: dds90 <40141422+dds90@users.noreply.github.com>
Co-authored-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
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 <alexandre.bourdiol@st.com>
@fpistm
Copy link
Owner

fpistm commented Apr 12, 2021

Integrated to official PR.

Thanks

@fpistm fpistm closed this Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.