Merge pull request #1055 from gsomlo/gls-pico-warn-64

64-bit follow-up for picolibc warning fixes
This commit is contained in:
enjoy-digital 2021-10-01 10:49:07 +02:00 committed by GitHub
commit 16702c44fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -668,7 +668,7 @@ static int copy_file_from_sdcard_to_ram(const char * filename, unsigned long ram
FIL file;
uint32_t br;
uint32_t offset;
uint32_t length;
unsigned long length;
fr = f_mount(&fs, "", 1);
if (fr != FR_OK)

View File

@ -104,7 +104,7 @@ static inline uint32_t pow2_round_up(uint32_t 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;
divider = clk_freq ? CONFIG_CLOCK_FREQUENCY/clk_freq : 256;
divider = pow2_round_up(divider);

View File

@ -65,7 +65,7 @@ int sdcard_wait_response(void);
/* 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 */