Skip to content

Update boards.txt #250

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

Merged
merged 10 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 27 additions & 33 deletions Arduino_package/hardware/boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Ameba_AMB21_AMB22.build.f_cpu=200000000L
Ameba_AMB21_AMB22.build.usb_product="AMB21"
Ameba_AMB21_AMB22.build.board=AMEBA
Ameba_AMB21_AMB22.build.core=ambd
Ameba_AMB21_AMB22.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_AMB21_AMB22 {build.usb_flags} -DArduino_STD_PRINTF
Ameba_AMB21_AMB22.build.extra_flags=-mthumb -DCORE_RTL8722DM -DCORE_RTL8722CSM -DBOARD_AMB21_AMB22 {build.usb_flags} -DArduino_STD_PRINTF
Ameba_AMB21_AMB22.build.ldscript=linker_scripts/gcc/amebad_img2_is_arduino.ld
Ameba_AMB21_AMB22.build.variant=rtl8722dm

Expand All @@ -43,9 +43,9 @@ Ameba_AMB21_AMB22.menu.EraseFlash.Enable.upload.erase_flash=Enable
#Ameba_AMB21_AMB22.menu.AutoUploadMode.Enable.upload.auto_mode=Enable

Ameba_AMB21_AMB22.menu.StdLibInit.Enable=Arduino_STD_PRINTF
Ameba_AMB21_AMB22.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_AMB21_AMB22 {build.usb_flags} -DArduino_STD_PRINTF
Ameba_AMB21_AMB22.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DCORE_RTL8722DM -DCORE_RTL8722CSM -DBOARD_AMB21_AMB22 {build.usb_flags} -DArduino_STD_PRINTF
Ameba_AMB21_AMB22.menu.StdLibInit.Disable=Disable
Ameba_AMB21_AMB22.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_AMB21_AMB22 {build.usb_flags}
Ameba_AMB21_AMB22.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DCORE_RTL8722DM -DCORE_RTL8722CSM -DBOARD_AMB21_AMB22 {build.usb_flags}

Ameba_AMB21_AMB22.menu.UploadBaudrate.1500000=1500000
Ameba_AMB21_AMB22.menu.UploadBaudrate.1500000.upload.speed=1500000
Expand All @@ -63,7 +63,7 @@ Ameba_AMB23.build.f_cpu=200000000L
Ameba_AMB23.build.usb_product="AMB23"
Ameba_AMB23.build.board=AMEBA
Ameba_AMB23.build.core=ambd
Ameba_AMB23.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_AMB23 {build.usb_flags} -DArduino_STD_PRINTF
Ameba_AMB23.build.extra_flags=-mthumb -DCORE_RTL8722DM -DBOARD_AMB23 {build.usb_flags} -DArduino_STD_PRINTF
Ameba_AMB23.build.ldscript=linker_scripts/gcc/amebad_img2_is_arduino.ld
Ameba_AMB23.build.variant=rtl8722dm_mini

Expand All @@ -88,9 +88,9 @@ Ameba_AMB23.menu.EraseFlash.Enable.upload.erase_flash=Enable
#Ameba_AMB23.menu.AutoUploadMode.Enable.upload.auto_mode=Enable

Ameba_AMB23.menu.StdLibInit.Enable=Arduino_STD_PRINTF
Ameba_AMB23.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_AMB23 {build.usb_flags} -DArduino_STD_PRINTF
Ameba_AMB23.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DCORE_RTL8722DM -DBOARD_AMB23 {build.usb_flags} -DArduino_STD_PRINTF
Ameba_AMB23.menu.StdLibInit.Disable=Disable
Ameba_AMB23.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_AMB23 {build.usb_flags}
Ameba_AMB23.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DCORE_RTL8722DM -DBOARD_AMB23 {build.usb_flags}

Ameba_AMB23.menu.UploadBaudrate.1500000=1500000
Ameba_AMB23.menu.UploadBaudrate.1500000.upload.speed=1500000
Expand All @@ -108,7 +108,7 @@ Ai-Thinker_BW16.build.f_cpu=200000000L
Ai-Thinker_BW16.build.usb_product="BW16"
Ai-Thinker_BW16.build.board=AMEBA
Ai-Thinker_BW16.build.core=ambd
Ai-Thinker_BW16.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_AITHINKER_BW16 {build.usb_flags} -DArduino_STD_PRINTF
Ai-Thinker_BW16.build.extra_flags=-mthumb -DCORE_RTL8720DN -DBOARD_AITHINKER_BW16 {build.usb_flags} -DArduino_STD_PRINTF
Ai-Thinker_BW16.build.ldscript=linker_scripts/gcc/amebad_img2_is_arduino.ld
Ai-Thinker_BW16.build.variant=rtl8720dn_bw16

Expand All @@ -133,9 +133,9 @@ Ai-Thinker_BW16.menu.AutoUploadMode.Enable=Enable
Ai-Thinker_BW16.menu.AutoUploadMode.Enable.upload.auto_mode=Enable

Ai-Thinker_BW16.menu.StdLibInit.Enable=Arduino_STD_PRINTF
Ai-Thinker_BW16.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_AITHINKER_BW16 {build.usb_flags} -DArduino_STD_PRINTF
Ai-Thinker_BW16.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DCORE_RTL8720DN -DBOARD_AITHINKER_BW16 {build.usb_flags} -DArduino_STD_PRINTF
Ai-Thinker_BW16.menu.StdLibInit.Disable=Disable
Ai-Thinker_BW16.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_AITHINKER_BW16 {build.usb_flags}
Ai-Thinker_BW16.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DCORE_RTL8720DN -DBOARD_AITHINKER_BW16 {build.usb_flags}

Ai-Thinker_BW16.menu.UploadBaudrate.1500000=1500000
Ai-Thinker_BW16.menu.UploadBaudrate.1500000.upload.speed=1500000
Expand All @@ -153,7 +153,7 @@ SparkFun_ThingPlus-AWCU488.build.f_cpu=200000000L
SparkFun_ThingPlus-AWCU488.build.usb_product="AW-CU488_ThingPlus"
SparkFun_ThingPlus-AWCU488.build.board=AMEBA
SparkFun_ThingPlus-AWCU488.build.core=ambd
SparkFun_ThingPlus-AWCU488.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_SPARKFUN_AWCU488 {build.usb_flags} -DArduino_STD_PRINTF
SparkFun_ThingPlus-AWCU488.build.extra_flags=-mthumb -DCORE_RTL8721DM -DBOARD_SPARKFUN_AWCU488 {build.usb_flags} -DArduino_STD_PRINTF
SparkFun_ThingPlus-AWCU488.build.ldscript=linker_scripts/gcc/amebad_img2_is_arduino.ld
SparkFun_ThingPlus-AWCU488.build.variant=sparkfun_thingplus-awcu488

Expand All @@ -178,9 +178,9 @@ SparkFun_ThingPlus-AWCU488.menu.AutoUploadMode.Enable=Enable
SparkFun_ThingPlus-AWCU488.menu.AutoUploadMode.Enable.upload.auto_mode=Enable

SparkFun_ThingPlus-AWCU488.menu.StdLibInit.Enable=Arduino_STD_PRINTF
SparkFun_ThingPlus-AWCU488.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_SPARKFUN_AWCU488 {build.usb_flags} -DArduino_STD_PRINTF
SparkFun_ThingPlus-AWCU488.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DCORE_RTL8721DM -DBOARD_SPARKFUN_AWCU488 {build.usb_flags} -DArduino_STD_PRINTF
SparkFun_ThingPlus-AWCU488.menu.StdLibInit.Disable=Disable
SparkFun_ThingPlus-AWCU488.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_SPARKFUN_AWCU488 {build.usb_flags}
SparkFun_ThingPlus-AWCU488.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DCORE_RTL8721DM -DBOARD_SPARKFUN_AWCU488 {build.usb_flags}

SparkFun_ThingPlus-AWCU488.menu.UploadBaudrate.1500000=1500000
SparkFun_ThingPlus-AWCU488.menu.UploadBaudrate.1500000.upload.speed=1500000
Expand All @@ -198,7 +198,7 @@ Ameba_AMB25.build.f_cpu=200000000L
Ameba_AMB25.build.usb_product="AMB25"
Ameba_AMB25.build.board=AMEBA
Ameba_AMB25.build.core=ambd
Ameba_AMB25.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_AMB25 {build.usb_flags} -DArduino_STD_PRINTF
Ameba_AMB25.build.extra_flags=-mthumb -DCORE_RTL8720DF -DBOARD_AMB25 {build.usb_flags} -DArduino_STD_PRINTF
Ameba_AMB25.build.ldscript=linker_scripts/gcc/amebad_img2_is_arduino.ld
Ameba_AMB25.build.variant=ameba_amb25_amb26

Expand All @@ -223,9 +223,9 @@ Ameba_AMB25.menu.AutoUploadMode.Enable=Enable
Ameba_AMB25.menu.AutoUploadMode.Enable.upload.auto_mode=Enable

Ameba_AMB25.menu.StdLibInit.Enable=Arduino_STD_PRINTF
Ameba_AMB25.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_AMB25 {build.usb_flags} -DArduino_STD_PRINTF
Ameba_AMB25.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DCORE_RTL8720DF -DBOARD_AMB25 {build.usb_flags} -DArduino_STD_PRINTF
Ameba_AMB25.menu.StdLibInit.Disable=Disable
Ameba_AMB25.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_AMB25 {build.usb_flags}
Ameba_AMB25.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DCORE_RTL8720DF -DBOARD_AMB25 {build.usb_flags}

Ameba_AMB25.menu.UploadBaudrate.1500000=1500000
Ameba_AMB25.menu.UploadBaudrate.1500000.upload.speed=1500000
Expand All @@ -243,7 +243,7 @@ Ameba_AMB26.build.f_cpu=200000000L
Ameba_AMB26.build.usb_product="AMB26"
Ameba_AMB26.build.board=AMEBA
Ameba_AMB26.build.core=ambd
Ameba_AMB26.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_AMB26 {build.usb_flags} -DArduino_STD_PRINTF
Ameba_AMB26.build.extra_flags=-mthumb -DCORE_RTL8720DF -DBOARD_AMB26 {build.usb_flags} -DArduino_STD_PRINTF
Ameba_AMB26.build.ldscript=linker_scripts/gcc/amebad_img2_is_arduino.ld
Ameba_AMB26.build.variant=ameba_amb25_amb26

Expand All @@ -268,9 +268,9 @@ Ameba_AMB26.menu.AutoUploadMode.Enable=Enable
Ameba_AMB26.menu.AutoUploadMode.Enable.upload.auto_mode=Enable

Ameba_AMB26.menu.StdLibInit.Enable=Arduino_STD_PRINTF
Ameba_AMB26.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_AMB26 {build.usb_flags} -DArduino_STD_PRINTF
Ameba_AMB26.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DCORE_RTL8720DF -DBOARD_AMB26 {build.usb_flags} -DArduino_STD_PRINTF
Ameba_AMB26.menu.StdLibInit.Disable=Disable
Ameba_AMB26.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_AMB26 {build.usb_flags}
Ameba_AMB26.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DCORE_RTL8720DF -DBOARD_AMB26 {build.usb_flags}

Ameba_AMB26.menu.UploadBaudrate.1500000=1500000
Ameba_AMB26.menu.UploadBaudrate.1500000.upload.speed=1500000
Expand All @@ -286,7 +286,7 @@ u-blox_NORA-W30.build.f_cpu=200000000L
u-blox_NORA-W30.build.usb_product="u-blox_NORA-W30"
u-blox_NORA-W30.build.board=AMEBA
u-blox_NORA-W30.build.core=ambd
u-blox_NORA-W30.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_UBLOX_NORAW30 {build.usb_flags} -DArduino_STD_PRINTF
u-blox_NORA-W30.build.extra_flags=-mthumb -DCORE_RTL8720DF -DBOARD_UBLOX_NORAW30 {build.usb_flags} -DArduino_STD_PRINTF
u-blox_NORA-W30.build.ldscript=linker_scripts/gcc/amebad_img2_is_arduino.ld
u-blox_NORA-W30.build.variant=u-blox_nora-w30

Expand All @@ -311,11 +311,9 @@ u-blox_NORA-W30.menu.AutoUploadMode.Enable=Enable
u-blox_NORA-W30.menu.AutoUploadMode.Enable.upload.auto_mode=Enable

u-blox_NORA-W30.menu.StdLibInit.Enable=Arduino_STD_PRINTF
u-blox_NORA-W30.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_UBLOX_NORAW30 {build.usb_flags} -DArduino_STD_PRINTF
u-blox_NORA-W30.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DCORE_RTL8720DF -DBOARD_UBLOX_NORAW30 {build.usb_flags} -DArduino_STD_PRINTF
u-blox_NORA-W30.menu.StdLibInit.Disable=Disable
u-blox_NORA-W30.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_UBLOX_NORAW30 {build.usb_flags}
u-blox_NORA-W30.menu.StdLibInit.Enable=Arduino_STD_PRINTF
u-blox_NORA-W30.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_UBLOX_NORAW30 {build.usb_flags} -DArduino_STD_PRINTF
u-blox_NORA-W30.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DCORE_RTL8720DF -DBOARD_UBLOX_NORAW30 {build.usb_flags}

u-blox_NORA-W30.menu.UploadBaudrate.921600=921600
u-blox_NORA-W30.menu.UploadBaudrate.921600.upload.speed=921600
Expand All @@ -331,7 +329,7 @@ Sparkfun_ThingPlus-NORA-W306.build.f_cpu=200000000L
Sparkfun_ThingPlus-NORA-W306.build.usb_product="Sparkfun_ThingPlus-NORA-W306"
Sparkfun_ThingPlus-NORA-W306.build.board=SPARKFUN_THINGPLUS_NORAW306
Sparkfun_ThingPlus-NORA-W306.build.core=ambd
Sparkfun_ThingPlus-NORA-W306.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_SPARKFUN_NORAW306 {build.usb_flags} -DArduino_STD_PRINTF
Sparkfun_ThingPlus-NORA-W306.build.extra_flags=-mthumb -DCORE_RTL8720DF -DBOARD_SPARKFUN_NORAW306 {build.usb_flags} -DArduino_STD_PRINTF
Sparkfun_ThingPlus-NORA-W306.build.ldscript=linker_scripts/gcc/amebad_img2_is_arduino.ld
Sparkfun_ThingPlus-NORA-W306.build.variant=sparkfun_thingplus-nora-w306

Expand All @@ -356,11 +354,9 @@ Sparkfun_ThingPlus-NORA-W306.menu.AutoUploadMode.Disable=Disable
Sparkfun_ThingPlus-NORA-W306.menu.AutoUploadMode.Disable.upload.auto_mode=Disable

Sparkfun_ThingPlus-NORA-W306.menu.StdLibInit.Enable=Arduino_STD_PRINTF
Sparkfun_ThingPlus-NORA-W306.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_SPARKFUN_NORAW306 {build.usb_flags} -DArduino_STD_PRINTF
Sparkfun_ThingPlus-NORA-W306.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DCORE_RTL8720DF -DBOARD_SPARKFUN_NORAW306 {build.usb_flags} -DArduino_STD_PRINTF
Sparkfun_ThingPlus-NORA-W306.menu.StdLibInit.Disable=Disable
Sparkfun_ThingPlus-NORA-W306.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_SPARKFUN_NORAW306 {build.usb_flags}
Sparkfun_ThingPlus-NORA-W306.menu.StdLibInit.Enable=Arduino_STD_PRINTF
Sparkfun_ThingPlus-NORA-W306.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_SPARKFUN_NORAW306 {build.usb_flags} -DArduino_STD_PRINTF
Sparkfun_ThingPlus-NORA-W306.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DCORE_RTL8720DF -DBOARD_SPARKFUN_NORAW306 {build.usb_flags}

Sparkfun_ThingPlus-NORA-W306.menu.UploadBaudrate.921600=921600
Sparkfun_ThingPlus-NORA-W306.menu.UploadBaudrate.921600.upload.speed=921600
Expand All @@ -376,7 +372,7 @@ DataloggerIot.build.f_cpu=200000000L
DataloggerIot.build.usb_product="Datalogger Iot"
DataloggerIot.build.board=AMEBA
DataloggerIot.build.core=ambd
DataloggerIot.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_DATALOGGER_AMB26 {build.usb_flags} -DArduino_STD_PRINTF
DataloggerIot.build.extra_flags=-mthumb -DCORE_RTL8720DF -DBOARD_DATALOGGER_AMB26 {build.usb_flags} -DArduino_STD_PRINTF
DataloggerIot.build.ldscript=linker_scripts/gcc/amebad_img2_is_arduino.ld
DataloggerIot.build.variant=Datalogger_AMB26

Expand All @@ -401,11 +397,9 @@ DataloggerIot.menu.AutoUploadMode.Enable=Enable
DataloggerIot.menu.AutoUploadMode.Enable.upload.auto_mode=Enable

DataloggerIot.menu.StdLibInit.Enable=Arduino_STD_PRINTF
DataloggerIot.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_DATALOGGER_AMB26 {build.usb_flags} -DArduino_STD_PRINTF
DataloggerIot.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DCORE_RTL8720DF -DBOARD_DATALOGGER_AMB26 {build.usb_flags} -DArduino_STD_PRINTF
DataloggerIot.menu.StdLibInit.Disable=Disable
DataloggerIot.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_DATALOGGER_AMB26 {build.usb_flags}
DataloggerIot.menu.StdLibInit.Enable=Arduino_STD_PRINTF
DataloggerIot.menu.StdLibInit.Enable.build.extra_flags=-mthumb -DRTL8722DM -DBOARD_DATALOGGER_AMB26 {build.usb_flags} -DArduino_STD_PRINTF
DataloggerIot.menu.StdLibInit.Disable.build.extra_flags=-mthumb -DCORE_RTL8720DF -DBOARD_DATALOGGER_AMB26 {build.usb_flags}

DataloggerIot.menu.UploadBaudrate.921600=921600
DataloggerIot.menu.UploadBaudrate.921600.upload.speed=921600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
https://www.amebaiot.com/en/amebad-arduino-audio-basic/
*/

// AudioCodec is not supported on core RTL8720DN nor RTL8720DF.
#if !defined(CORE_RTL8720DF) && !defined(CORE_RTL8720DN)

#include "AudioCodec.h"

#define SAMPLECOUNT 512
Expand All @@ -26,3 +29,11 @@ void loop() {
vol = map(vol, 0, 1024, 0, 100);
Codec.setOutputVolume(vol, vol);
}

#else

void setup() {}

void loop() {}

#endif
12 changes: 12 additions & 0 deletions Arduino_package/hardware/libraries/AudioCodec/examples/FFT/FFT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
https://www.amebaiot.com/en/amebad-arduino-audio-fft/
*/

// AudioCodec is not supported on core RTL8720DN nor RTL8720DF.
#if !defined(CORE_RTL8720DF) && !defined(CORE_RTL8720DN)

#include "FFT.h"

#define SAMPLERATE 16000
Expand Down Expand Up @@ -43,3 +46,12 @@ void setup() {
void loop() {
delay(1);
}

#else

void setup() {}

void loop() {}

#endif

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
https://www.amebaiot.com/en/amebad-arduino-audio-inputfft/
*/

// AudioCodec is not supported on core RTL8720DN nor RTL8720DF.
#if !defined(CORE_RTL8720DF) && !defined(CORE_RTL8720DN)

#include "AudioCodec.h"
#include "FFT.h"

Expand Down Expand Up @@ -48,3 +51,11 @@ void loop() {
}
delay(1);
}

#else

void setup() {}

void loop() {}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
https://www.amebaiot.com/en/amebad-arduino-audio-sinewave/
*/

// AudioCodec is not supported on core RTL8720DN nor RTL8720DF.
#if !defined(CORE_RTL8720DF) && !defined(CORE_RTL8720DN)

#include "AudioCodec.h"

#define SAMPLERATE 16000
Expand Down Expand Up @@ -31,3 +34,11 @@ void loop() {
}
delay(1);
}

#else

void setup() {}

void loop() {}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
https://www.amebaiot.com/en/amebad-arduino-audio-wav/
*/

// AudioCodec is not supported on core RTL8720DN nor RTL8720DF.
#if !defined(CORE_RTL8720DF) && !defined(CORE_RTL8720DN)

#include "FatFs_SD.h"
#include "PlaybackWav.h"
#include "AudioCodec.h"
Expand Down Expand Up @@ -48,3 +51,11 @@ void loop() {
delay(100);

}

#else

void setup() {}

void loop() {}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
https://www.amebaiot.com/en/amebad-arduino-audio-wav/
*/

// AudioCodec is not supported on core RTL8720DN nor RTL8720DF.
#if !defined(CORE_RTL8720DF) && !defined(CORE_RTL8720DN)

#include "FatFs_SD.h"
#include "PlaybackWav.h"
#include "RecordWav.h"
Expand Down Expand Up @@ -68,3 +71,11 @@ void loop() {
}
delay(100);
}

#else

void setup() {}

void loop() {}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
https://www.amebaiot.com/en/amebad-arduino-audio-wav/
*/

// AudioCodec is not supported on core RTL8720DN nor RTL8720DF.
#if !defined(CORE_RTL8720DF) && !defined(CORE_RTL8720DN)

#include "FatFs_SD.h"
#include "RecordWav.h"
#include "AudioCodec.h"
Expand Down Expand Up @@ -53,3 +56,11 @@ void loop() {
}
delay(100);
}

#else

void setup() {}

void loop() {}

#endif
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#include "AudioCodec.h"

#if defined(BOARD_RTL8720DN_BW16) || defined(BOARD_RTL8720DF)
#error Sorry, AudioCodec is not supported on RTL8720DN and RTL8720DF.
#endif
#if defined(BOARD_AITHINKER_BW16) || defined(BOARD_AMB25) || defined(BOARD_AMB26) || defined(BOARD_UBLOX_NORAW30) || defined(BOARD_SPARKFUN_NORAW306) || defined(BOARD_DATALOGGER_AMB26)
// error Sorry, AudioCodec is not supported on RTL8720DN and RTL8720DF.

#else

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -619,3 +620,5 @@ void AudioCodec::rxCompleteHandler(void* DMAinfo) {
rx_length = getFreeRxLength();
AUDIO_SP_RXGDMA_Restart(GDMA_InitStruct->GDMA_Index, GDMA_InitStruct->GDMA_ChNum, rx_addr, rx_length);
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
https://www.amebaiot.com/en/amebad-arduino-audio-fatfssdio/
*/

// Core RTL8720DN do not support SDIO. Please use SPI interface for SD card
#ifndef CORE_RTL8720DN

#include "FatFs_SD.h"

char dirname[] = "testdir";
Expand Down Expand Up @@ -46,3 +49,11 @@ void setup() {
void loop() {
delay(1000);
}

#else

void setup() {}

void loop() {}

#endif
Loading
Loading