Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[spi]: Keep constexpr constructor#2204

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fpistm merged 8 commits intostm32duino:mainfromfpistm:spi_fixup
Nov 24, 2023
Merged

Conversation

@fpistm
Copy link
Member

@fpistmfpistm commentedNov 24, 2023
edited
Loading

to ensures that constructing an SPISettings object can be done at compiletime.

This PR also:

  • revert the change made in SubGhz library.
  • clean up SubGhzSPI class since internal CS pin removed.
  • Remove skip receive from SPISettings as this is not a settings.
  • Allow to skip receive during transfer (SPI: improvements for SPI library #912).

Fixes#2201.

@fpistmfpistm added enhancementNew feature or request fix 🩹Bug fix labelsNov 24, 2023
@fpistmfpistm added this to the2.7.1 milestoneNov 24, 2023
Keep constexpr constructor to ensures that constructingan SPISettings object can be done at compiletime.Fixesstm32duino#2201.Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
This parameter should not be part of SPISettings.Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Since internal CS pin removed.Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Linked tostm32duino#912.Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
for backward compatibility.Example with Adafruit GFX Library library.Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistm
Copy link
MemberAuthor

Tested with Radiolib with success using Nucleo WL55JC1 and LoRa E5 mini.

Note to have generic sketch example use theLORAWAN_RFSWITCH_* definition defined in the variant_*.h:

staticconstuint32_t rfswitch_pins[] = { LORAWAN_RFSWITCH_PINS#if LORAWAN_RFSWITCH_PIN_COUNT == 2                                          ,                                          RADIOLIB_NC#endif};staticconst Module::RfSwitchMode_t rfswitch_table[] = {  { STM32WLx::MODE_IDLE, { LORAWAN_RFSWITCH_OFF_VALUES } },  { STM32WLx::MODE_RX, { LORAWAN_RFSWITCH_RX_VALUES } },  { STM32WLx::MODE_TX_LP, { LORAWAN_RFSWITCH_RFO_LP_VALUES } },  { STM32WLx::MODE_TX_HP, { LORAWAN_RFSWITCH_RFO_HP_VALUES } },  END_OF_MODE_TABLE,};

@fpistmfpistm merged commitcd3043f intostm32duino:mainNov 24, 2023
@fpistmfpistm deleted the spi_fixup branchNovember 24, 2023 14:53
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

enhancementNew feature or requestfix 🩹Bug fix

Projects

Milestone

2.7.1

Development

Successfully merging this pull request may close these issues.

SPISettings no longer constexpr

1 participant

@fpistm

[8]ページ先頭

©2009-2025 Movatter.jp