This repository was archived by the owner on Apr 16, 2021. It is now read-only.
File tree 4 files changed +8
-5
lines changed
4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ sentence=Enables the communication with devices that use the PDM Bus. Specific i
6
6
paragraph =
7
7
category =Communication
8
8
url =
9
- architectures =nRF52
9
+ architectures =mbed
Original file line number Diff line number Diff line change 1
- #include < hal/nrf_pdm.h>
2
-
3
1
#include " PDM.h"
2
+ #include < hal/nrf_pdm.h>
4
3
5
4
#define DEFAULT_PDM_GAIN 20
6
5
#define PDM_IRQ_PRIORITY 7
Original file line number Diff line number Diff line change 3
3
4
4
#include < Arduino.h>
5
5
6
+ #ifndef ARDUINO_ARCH_NRF52840
7
+ #error "This library targets only NRF52840 boards, not every mbed target"
8
+ #endif
9
+
6
10
#include " utility/PDMDoubleBuffer.h"
7
11
8
12
class PDMClass
Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ compiler.warning_flags.all=-Wall -Wextra
18
18
19
19
compiler.path={build.compiler_path}
20
20
compiler.c.cmd={build.crossprefix}gcc
21
- compiler.c.flags=-c -I. {compiler.warning_flags} -Os -g -nostdlib "@{compiler.mbed.defines}" "@{compiler.mbed.cflags}" -MMD -mcpu={build.mcu}
21
+ compiler.c.flags=-c -I. {compiler.warning_flags} -Os -g -nostdlib "@{compiler.mbed.defines}" "@{compiler.mbed.cflags}" {compiler.mbed.arch.define} -MMD -mcpu={build.mcu}
22
22
compiler.c.elf.cmd={build.crossprefix}g++
23
23
compiler.c.elf.flags=-Wl,--gc-sections {compiler.warning_flags} -Wl,--as-needed
24
24
compiler.S.flags=-c -g -x assembler-with-cpp -Os -mcpu={build.mcu}
25
25
compiler.cpp.cmd={build.crossprefix}g++
26
- compiler.cpp.flags=-c -I. {compiler.warning_flags} -g -Os -nostdlib "@{compiler.mbed.defines}" "@{compiler.mbed.cxxflags}" -MMD -mcpu={build.mcu}
26
+ compiler.cpp.flags=-c -I. {compiler.warning_flags} -g -Os -nostdlib "@{compiler.mbed.defines}" "@{compiler.mbed.cxxflags}" {compiler.mbed.arch.define} -MMD -mcpu={build.mcu}
27
27
compiler.ar.cmd={build.crossprefix}ar
28
28
compiler.ar.flags=rcs
29
29
compiler.objcopy.cmd=
You can’t perform that action at this time.
0 commit comments