Skip to content

Commit b40d072

Browse files
committed
[stm] implementation of audiopwmio
Based on nrf PWMAudioOut by @jepler and stm PulseOut by @hierophect Tested on a Meowbit
1 parent 155b61f commit b40d072

File tree

12 files changed

+473
-3
lines changed

12 files changed

+473
-3
lines changed

locale/circuitpython.pot

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,10 @@ msgstr ""
411411
msgid "AnalogOut not supported on given pin"
412412
msgstr ""
413413

414+
#: ports/stm/common-hal/audiopwmio/PWMAudioOut.c
415+
msgid "Another PWMAudioOut is already active"
416+
msgstr ""
417+
414418
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c
415419
#: ports/cxd56/common-hal/pulseio/PulseOut.c
416420
msgid "Another send is already active"
@@ -525,6 +529,7 @@ msgid "Buffer is too small"
525529
msgstr ""
526530

527531
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c
532+
#: ports/stm/common-hal/audiopwmio/PWMAudioOut.c
528533
#, c-format
529534
msgid "Buffer length %d too big. It must be less than %d"
530535
msgstr ""
@@ -974,6 +979,10 @@ msgstr ""
974979
msgid "Failed to allocate wifi scan memory"
975980
msgstr ""
976981

982+
#: ports/stm/common-hal/audiopwmio/PWMAudioOut.c
983+
msgid "Failed to buffer the sample"
984+
msgstr ""
985+
977986
#: ports/nrf/common-hal/_bleio/Adapter.c
978987
msgid "Failed to connect: internal error"
979988
msgstr ""

ports/stm/boards/espruino_pico/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ LD_FILE = boards/STM32F401xd_fs.ld
2020
# lto for this port, and if other stuff hasn't been added in the
2121
# meantime
2222
CIRCUITPY_ULAB = 0
23+
CIRCUITPY_AUDIOCORE = 0
24+
CIRCUITPY_AUDIOPWMIO = 0
2325
CIRCUITPY_BUSDEVICE = 0
2426
CIRCUITPY_BITMAPTOOLS = 0
2527
CIRCUITPY_FRAMEBUFFERIO = 0

ports/stm/boards/espruino_wifi/mpconfigboard.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ MCU_PACKAGE = UFQFPN48
1111

1212
LD_COMMON = boards/common_default.ld
1313
LD_FILE = boards/STM32F411_fs.ld
14+
15+
# Too big for the flash
16+
CIRCUITPY_AUDIOCORE = 0
17+
CIRCUITPY_AUDIOPWMIO = 0

ports/stm/boards/pyb_nano_v2/mpconfigboard.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ MCU_PACKAGE = UFQFPN48
1212

1313
LD_COMMON = boards/common_default.ld
1414
LD_FILE = boards/STM32F411_fs.ld
15+
16+
# Too big for the flash
17+
CIRCUITPY_AUDIOCORE = 0
18+
CIRCUITPY_AUDIOPWMIO = 0

ports/stm/boards/stm32f411ce_blackpill/mpconfigboard.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ MCU_PACKAGE = UFQFPN48
1515

1616
LD_COMMON = boards/common_default.ld
1717
LD_FILE = boards/STM32F411_fs.ld
18+
19+
# Too big for the flash
20+
CIRCUITPY_AUDIOCORE = 0
21+
CIRCUITPY_AUDIOPWMIO = 0

ports/stm/boards/stm32f411ve_discovery/mpconfigboard.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ MCU_PACKAGE = LQFP100_f4
1111

1212
LD_COMMON = boards/common_default.ld
1313
LD_FILE = boards/STM32F411_fs.ld
14+
15+
# Too big for the flash
16+
CIRCUITPY_AUDIOCORE = 0
17+
CIRCUITPY_AUDIOPWMIO = 0

0 commit comments

Comments
 (0)