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

refactor: new GPIO HAL and StdPeriph removed #4389

Closed
wants to merge 1 commit into from

Conversation

gagarinlg
Copy link
Member

Summary of changes:
This PR removed the StdPeriph libraries
all code has been converted to STM32 HAL

@gagarinlg gagarinlg added this to the 2.11 milestone Dec 7, 2023
@gagarinlg gagarinlg force-pushed the gagarinlg/noStdPeriph branch from b733ec3 to a03c588 Compare December 23, 2023 17:11
@gagarinlg gagarinlg modified the milestones: 2.11, 2.10 Feb 11, 2024
@gagarinlg gagarinlg force-pushed the gagarinlg/noStdPeriph branch from a03c588 to e963016 Compare February 18, 2024 10:21
…rectly

chore: some additional work, still WIP

chore(hal): TX16S bootloader is now working without any StdPeriph code

refactor: new GPIO HAL

Ported from RIOT-OS

chore(noStdPeriph): fix rebase issues, get bootloader and firmware for TX16S to build, fix warnings

chore(noStdPeriph): fix TX16S bootloader LCD issues

chore(noStdPeriph): fix F2 compilation

chore(noStdPeriph): update gpio api to allow setting the pin speed

fix: make NV14/EL18/PL18/PL18EV build without StdPeriph

fix: X12S compilation

fix: MT12 compilation
@raphaelcoeffic raphaelcoeffic force-pushed the gagarinlg/noStdPeriph branch from 7be21c0 to 583d002 Compare March 30, 2024 06:30
@raphaelcoeffic raphaelcoeffic changed the title Gagarinlg/no std periph refactor: new GPIO HAL and StdPeriph removed Mar 30, 2024
ThomasKuehne added a commit to ThomasKuehne/edgetx that referenced this pull request Apr 7, 2024
__CORTEX_M remains broken - potentially obsoleted by pull request EdgeTX#4389
@gagarinlg gagarinlg marked this pull request as ready for review April 14, 2024 08:34
Comment on lines -199 to -221
#if defined(JACK_DETECT_GPIO) && !defined(SIMU)
bool isJackPlugged()
{
// debounce
static bool debounced_state = 0;
static bool last_state = 0;

if (GPIO_ReadInputDataBit(JACK_DETECT_GPIO, JACK_DETECT_GPIO_PIN)) {
if (!last_state) {
debounced_state = false;
}
last_state = false;
}
else {
if (last_state) {
debounced_state = true;
}
last_state = true;
}
return debounced_state;
}
#endif

Copy link
Member

Choose a reason for hiding this comment

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

Was about to rebase this rather than bother you since it looks straightforward... but, um... did you remove this by accident? As isJackPlugged() is still used in code...

@raphaelcoeffic
Copy link
Member

Closed in favour of #5023

@pfeerick pfeerick deleted the gagarinlg/noStdPeriph branch August 2, 2024 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants