mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
add cast (#2298)
This commit is contained in:
parent
c757f36aac
commit
a38da922e5
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ bool clock_configure(clock_handle_t clock, uint32_t src, uint32_t auxsrc, uint32
|
||||||
div = 0;
|
div = 0;
|
||||||
actual_freq = src_freq >> (32 - CLOCKS_CLK_GPOUT0_DIV_INT_LSB);
|
actual_freq = src_freq >> (32 - CLOCKS_CLK_GPOUT0_DIV_INT_LSB);
|
||||||
} else {
|
} else {
|
||||||
div = div64;
|
div = (uint32_t) div64;
|
||||||
#if PICO_RP2040
|
#if PICO_RP2040
|
||||||
// on RP2040 only clock divider of 1, or >= 2 are supported
|
// on RP2040 only clock divider of 1, or >= 2 are supported
|
||||||
if (div < (2u << CLOCKS_CLK_GPOUT0_DIV_INT_LSB)) {
|
if (div < (2u << CLOCKS_CLK_GPOUT0_DIV_INT_LSB)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue