Merge pull request #1055 from gsomlo/gls-pico-warn-64
64-bit follow-up for picolibc warning fixes
This commit is contained in:
commit
16702c44fe
|
@ -668,7 +668,7 @@ static int copy_file_from_sdcard_to_ram(const char * filename, unsigned long ram
|
||||||
FIL file;
|
FIL file;
|
||||||
uint32_t br;
|
uint32_t br;
|
||||||
uint32_t offset;
|
uint32_t offset;
|
||||||
uint32_t length;
|
unsigned long length;
|
||||||
|
|
||||||
fr = f_mount(&fs, "", 1);
|
fr = f_mount(&fs, "", 1);
|
||||||
if (fr != FR_OK)
|
if (fr != FR_OK)
|
||||||
|
|
|
@ -104,7 +104,7 @@ static inline uint32_t pow2_round_up(uint32_t r) {
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
void sdcard_set_clk_freq(uint32_t clk_freq, int show) {
|
void sdcard_set_clk_freq(unsigned long clk_freq, int show) {
|
||||||
uint32_t divider;
|
uint32_t divider;
|
||||||
divider = clk_freq ? CONFIG_CLOCK_FREQUENCY/clk_freq : 256;
|
divider = clk_freq ? CONFIG_CLOCK_FREQUENCY/clk_freq : 256;
|
||||||
divider = pow2_round_up(divider);
|
divider = pow2_round_up(divider);
|
||||||
|
|
|
@ -65,7 +65,7 @@ int sdcard_wait_response(void);
|
||||||
/* SDCard clocker functions */
|
/* SDCard clocker functions */
|
||||||
/*-----------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------*/
|
||||||
|
|
||||||
void sdcard_set_clk_freq(uint32_t clk_freq, int show);
|
void sdcard_set_clk_freq(unsigned long clk_freq, int show);
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------*/
|
||||||
/* SDCard commands functions */
|
/* SDCard commands functions */
|
||||||
|
|
Loading…
Reference in New Issue