-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Change div_int_frac methods to be suffixed by the number of bits of fraction e.g. div_int_frac8 #1926
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
Changes from 7 commits
d9c6151
765aeb8
f2e738f
4d4964e
e5f3ea6
b3552b8
5dd0e1b
128396a
063c7c8
7f77b13
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,9 +58,13 @@ void cyw43_driver_deinit(struct async_context *context); | |
| #endif | ||
| #endif | ||
|
|
||
| // 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 | ||
kilograham marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| #ifndef CYW43_PIO_CLOCK_DIV_FRAC8 | ||
| #ifdef CYW43_PIO_CLOCK_DIV_FRAC | ||
kilograham marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| #define CYW43_PIO_CLOCK_DIV_FRAC8 CYW43_PIO_CLOCK_DIV_FRAC | ||
| #else | ||
| #define CYW43_PIO_CLOCK_DIV_FRAC8 0 | ||
| #endif | ||
| #endif | ||
|
|
||
| #if CYW43_PIO_CLOCK_DIV_DYNAMIC | ||
|
|
@@ -72,9 +76,14 @@ void cyw43_driver_deinit(struct async_context *context); | |
| * This function is only available if \ref CYW43_PIO_CLOCK_DIV_DYNAMIC is true | ||
| * | ||
| * \param clock_div_int Integer part of the divisor | ||
| * \param clock_div_frac Fractional part in 1/256ths | ||
| * \param clock_div_frac8 Fractional part in 1/256ths | ||
| */ | ||
| void cyw43_set_pio_clock_divisor(uint16_t clock_div_int, uint8_t clock_div_frac); | ||
| void cyw43_set_pio_clkdiv_int_frac8(uint32_t clock_div_int, uint8_t clock_div_frac8); | ||
|
|
||
| // backwards compatibility | ||
| static inline void cyw43_set_pio_clock_divisor(uint16_t clock_div_int, uint8_t clock_div_frac8) { | ||
| return cyw43_set_pio_clkdiv_int_frac8(clock_div_int, clock_div_frac8); | ||
| } | ||
| #endif | ||
|
|
||
| #if CYW43_PIN_WL_DYNAMIC | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.