File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ typedef uint32_t eps32_i2s_sample_rate_type;
425
425
#endif
426
426
427
427
// ----- MBED -----------
428
- #if defined(ARDUINO_ARCH_MBED_RP2040)
428
+ #if defined(ARDUINO_ARCH_MBED_RP2040) || defined(ARDUINO_ARCH_MBED_NANO)
429
429
// install https://github.com/pschatzmann/rp2040-i2s
430
430
#define RP2040_MBED
431
431
#define USE_I2S 1
Original file line number Diff line number Diff line change @@ -75,9 +75,9 @@ class I2SConfigStd : public AudioInfo {
75
75
LOGI (" rx/tx mode: %s" , RxTxModeNames[rx_tx_mode]);
76
76
// LOGI("port_no: %d", port_no);
77
77
LOGI (" is_master: %s" , is_master ? " Master" :" Slave" );
78
- LOGI (" sample rate: %d" , sample_rate);
79
- LOGI (" bits per sample: %d" , bits_per_sample);
80
- LOGI (" number of channels: %d" , channels);
78
+ LOGI (" sample rate: %d" , ( int ) sample_rate);
79
+ LOGI (" bits per sample: %d" , ( int ) bits_per_sample);
80
+ LOGI (" number of channels: %d" , ( int ) channels);
81
81
LOGI (" i2s_format: %s" , i2s_formats[i2s_format]);
82
82
LOGI (" buffer_count:%d" ,buffer_count);
83
83
LOGI (" buffer_size:%d" ,buffer_size);
Original file line number Diff line number Diff line change 8
8
9
9
namespace audio_tools {
10
10
11
- #if !defined(ARDUINO_ARCH_MBED_RP2040)
12
- static ::I2S I2S;
13
- #endif
11
+ // #if !defined(ARDUINO_ARCH_MBED_RP2040)
12
+ // static ::I2S I2S;
13
+ // #endif
14
14
15
15
/* *
16
16
* @brief Basic I2S API - for the ...
@@ -55,12 +55,12 @@ class I2SDriverRP2040MBED {
55
55
return false ;
56
56
}
57
57
if (cfg.bits_per_sample != 16 ) {
58
- LOGE (" Unsupported bits_per_sample: %d" , cfg.bits_per_sample );
58
+ LOGE (" Unsupported bits_per_sample: %d" , ( int ) cfg.bits_per_sample );
59
59
return false ;
60
60
}
61
61
62
62
if (cfg.channels < 1 || cfg.channels > 2 ) {
63
- LOGE (" Unsupported channels: '%d' - only 2 is supported" , cfg.channels );
63
+ LOGE (" Unsupported channels: '%d' - only 2 is supported" , ( int ) cfg.channels );
64
64
return false ;
65
65
}
66
66
You can’t perform that action at this time.
0 commit comments