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

Change div_int_frac methods to be suffixed by the number of bits of fraction e.g. div_int_frac8 #1926

Merged
merged 10 commits into from
Nov 12, 2024

Conversation

kilograham
Copy link
Contributor

fixes #1924

@kilograham kilograham added this to the 2.0.1 milestone Sep 11, 2024
@kilograham kilograham mentioned this pull request Sep 16, 2024
@kilograham kilograham self-assigned this Sep 28, 2024
// PICO_CONFIG: CYW43_PIO_CLOCK_DIV_FRAC, Fractional part of the clock divider for communication with the wireless chip, type=bool, default=0, group=pico_cyw43_driver
#ifndef CYW43_PIO_CLOCK_DIV_FRAC
#define CYW43_PIO_CLOCK_DIV_FRAC 0
// PICO_CONFIG: CYW43_PIO_CLOCK_DIV_FRAC8, Fractional part of the clock divider for communication with the wireless chip 0-255, type=bool, default=0, group=pico_cyw43_driver
Copy link
Contributor

Choose a reason for hiding this comment

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

If we're renaming the PICO_CONFIG: entry from CYW43_PIO_CLOCK_DIV_FRAC to CYW43_PIO_CLOCK_DIV_FRAC8, we probably ought to do the same for the PICO_CMAKE_CONFIG: entry at https://github.com/raspberrypi/pico-sdk/blob/develop/src/rp2_common/pico_cyw43_driver/CMakeLists.txt#L87-L90

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch; @peterharperuk since this value was new post SDK2.0 I'm not going to support the old value

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, I doubt there's much use for it anyway

Copy link
Contributor Author

Choose a reason for hiding this comment

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

presumably much use OF it?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, there's unlikely to be much need for changing the cyw43 pio divider by anything but a whole number.

@lurch lurch mentioned this pull request Nov 11, 2024
@kilograham kilograham requested a review from Wren6991 November 11, 2024 18:22
@@ -48,7 +48,7 @@ void cyw43_driver_deinit(struct async_context *context);
#define CYW43_PIO_CLOCK_DIV_DYNAMIC 0
#endif

// PICO_CONFIG: CYW43_PIO_CLOCK_DIV_INT, Integer part of the clock divider for communication with the wireless chip, type=bool, default=2, group=pico_cyw43_driver
// PICO_CONFIG: CYW43_PIO_CLOCK_DIV_INT, Integer part of the clock divider for communication with the wireless chip, type=int, default=2, group=pico_cyw43_driver
Copy link
Contributor

Choose a reason for hiding this comment

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

LOL, how on earth did I miss this?? 🤣

Copy link
Contributor

@peterharperuk peterharperuk left a comment

Choose a reason for hiding this comment

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

I can't spot any issues and my head hurts look at this change.

@kilograham kilograham merged commit 06b7c1c into develop Nov 12, 2024
6 checks passed
@kilograham kilograham deleted the int_frac branch November 12, 2024 17:18
lurch added a commit that referenced this pull request Nov 20, 2024
Looks like this change accidentally got omitted from #1926
kilograham pushed a commit that referenced this pull request Nov 20, 2024
Looks like this change accidentally got omitted from #1926
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.

4 participants