Skip to content

fix at32 serial bidir pp od init and smart audio #13764

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

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

bkleiner
Copy link
Contributor

originally submitted as #13663,
cherry picked the original commits on top of master.

Copy link

Do you want to test this code? You can flash it directly from Betaflight Configurator:

  • Simply put #13764 (this pull request number) in the Select commit field of the Configurator firmware flasher tab (you need to Enable expert mode, Show release candidates and Development).

WARNING: It may be unstable. Use only for testing!

@@ -497,6 +497,7 @@ static void saReceiveFrame(uint8_t c)
static void saSendFrame(uint8_t *buf, int len)
{
if (!IS_RC_MODE_ACTIVE(BOXVTXCONTROLDISABLE)) {
#ifndef AT32F4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#ifndef AT32F4
#ifndef AT32F4

Also, at this level, AT32F4 should be identical to STM32 cpus; This will result in different protocol and AT32F4.
It almost looks like there are different bugs in smartaudio, dependent on version, and each developer adjusts his own CPU version accordingly ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i understand that the STM32 chips will always pull the line high before transmitting a byte, making the this dummy byte necessary. i could be wrong tho, maybe @freasy can elaborate.

include fix for F4 and G4 as well
@bkleiner
Copy link
Contributor Author

Applied formatting suggestions, squashed and rebased.

@haslinghuis haslinghuis requested a review from blckmn July 15, 2024 09:12
@haslinghuis haslinghuis merged commit ee9172f into betaflight:master Jul 15, 2024
24 checks passed
@bkleiner bkleiner deleted the fix-at32-sa branch July 16, 2024 07:42
haslinghuis pushed a commit to haslinghuis/betaflight that referenced this pull request Jul 16, 2024
include fix for F4 and G4 as well

Co-authored-by: Eike Ahmels <ea@weslink.de>
haslinghuis added a commit that referenced this pull request Jul 17, 2024
…3771)

fix at32 serial bidir pp od init and smart audio (#13764)

include fix for F4 and G4 as well

Co-authored-by: Benedikt Kleiner <b.kleiner@str8labs.com>
Co-authored-by: Eike Ahmels <ea@weslink.de>
haslinghuis added a commit to haslinghuis/betaflight that referenced this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

4 participants