Skip to content

Commit 719e154

Browse files
committed
Merge branch 'master' into develop
2 parents d340ce9 + 64d8bcb commit 719e154

File tree

12 files changed

+426
-227
lines changed

12 files changed

+426
-227
lines changed

cores/nRF5/nordic/nrfx_config.h

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
11
#ifndef NRFX_CONFIG_H__
22
#define NRFX_CONFIG_H__
33

4-
#define NRFX_POWER_ENABLED 1
5-
#define NRFX_POWER_CONFIG_IRQ_PRIORITY 7
4+
#define NRFX_POWER_ENABLED 1
5+
#define NRFX_POWER_CONFIG_IRQ_PRIORITY 7
66

77
//#define NRFX_CLOCK_ENABLED 0
88

9+
#define NRFX_SPIM_ENABLED 1
10+
#define NRFX_SPIM_MISO_PULL_CFG 1 // pulldown
11+
#define NRFX_SPIM_EXTENDED_ENABLED 0
12+
13+
#define NRFX_SPIM0_ENABLED 0 // used as I2C
14+
#define NRFX_SPIM1_ENABLED 0 // used as I2C
15+
#define NRFX_SPIM2_ENABLED 1
16+
917
#ifdef NRF52840_XXAA
10-
#define NRFX_QSPI_ENABLED 1
18+
#define NRFX_QSPI_ENABLED 1
19+
#define NRFX_SPIM3_ENABLED 1
1120
#else
12-
#define NRFX_QSPI_ENABLED 0
21+
#define NRFX_QSPI_ENABLED 0
22+
#define NRFX_SPIM3_ENABLED 0
1323
#endif
1424

25+
1526
#endif // NRFX_CONFIG_H__

libraries/Bluefruit52Lib/examples/Peripheral/image_upload/image_upload.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ void bleuart_rx_callback(uint16_t conn_hdl)
239239
if ( totalPixel == imageWidth*imageHeight )
240240
{
241241
uint8_t crc = bleuart.read();
242+
(void) crc;
242243
// do checksum later
243244

244245
// print speed summary
@@ -310,6 +311,9 @@ void print_summary(uint32_t count, uint32_t ms)
310311

311312
void bleuart_overflow_callback(uint16_t conn_hdl, uint16_t leftover)
312313
{
314+
(void) conn_hdl;
315+
(void) leftover;
316+
313317
Serial.println("BLEUART rx buffer OVERFLOWED!");
314318
Serial.println("Please increase buffer size for bleuart");
315319

@@ -335,6 +339,7 @@ void bleuart_overflow_callback(uint16_t conn_hdl, uint16_t leftover)
335339
*/
336340
void disconnect_callback(uint16_t conn_handle, uint8_t reason)
337341
{
342+
(void) conn_handle;
338343
(void) reason;
339344

340345
tft.fillScreen(COLOR_BLACK);

libraries/Bluefruit52Lib/examples/Projects/homekit/homekit_lightbulb/.skip

Whitespace-only changes.

libraries/PDM/examples/PDMSerialPlotter/PDMSerialPlotter.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// The default Circuit Playground Bluefruit pins
1414
// data pin, clock pin, power pin (-1 if not used)
15-
PDMClass PDM(33, 34, -1);
15+
PDMClass PDM(24, 25, -1);
1616

1717
// buffer to read samples into, each sample is 16-bits
1818
short sampleBuffer[256];
@@ -41,13 +41,13 @@ void setup() {
4141

4242
void loop() {
4343
// wait for samples to be read
44-
if (samplesRead) {
44+
PDM.IrqHandler();
4545

46+
if (samplesRead) {
4647
// print samples to the serial monitor or plotter
4748
for (int i = 0; i < samplesRead; i++) {
4849
Serial.println(sampleBuffer[i]);
4950
}
50-
5151
// clear the read count
5252
samplesRead = 0;
5353
}
@@ -62,4 +62,4 @@ void onPDMdata() {
6262

6363
// 16-bit, 2 bytes per sample
6464
samplesRead = bytesAvailable / 2;
65-
}
65+
}

0 commit comments

Comments
 (0)