get most of the sketches compiled with 833 except though with external flash since 833 does not have qspi
This commit is contained in:
15 files changed
+233
-17
No files matched your search
Submodule libraries/Adafruit_nRFCrypto updated: 7444c2e947...8499e741e2.
+1
-1
@@ -99,7 +99,7 @@ void setup()
|
||||
// changing the default "deferred" option to false to invoke callback immediately.
|
||||
// However, the transfer speed will be affected since immediate callback will block BLE task
|
||||
// to process data especially when tft.drawRGBBitmap() is calling.
|
||||
#ifdef NRF52840_XXAA
|
||||
#if defined(NRF52840_XXAA) || defined(NRF52833_XXAA)
|
||||
// 2nd argument is true to deferred callbacks i.e queue it up in separated callback Task
|
||||
bleuart.setRxCallback(bleuart_rx_callback, true);
|
||||
#else
|
||||
|
||||
@@ -166,7 +166,7 @@ void setup()
|
||||
// changing the default "deferred" option to false to invoke callback immediately.
|
||||
// However, the transfer speed will be affected since immediate callback will block BLE task
|
||||
// to process data especially when tft.drawRGBBitmap() is calling.
|
||||
#ifdef NRF52840_XXAA
|
||||
#if defined(NRF52840_XXAA) || defined(NRF52833_XXAA)
|
||||
// 2nd argument is true to deferred callbacks i.e queue it up in separated callback Task
|
||||
bleuart.setRxCallback(bleuart_rx_callback, true);
|
||||
#else
|
||||
|
||||
@@ -149,7 +149,7 @@ static inline bool is_tx_power_valid(int8_t power)
|
||||
{
|
||||
#if defined(NRF52832_XXAA)
|
||||
int8_t const accepted[] = { -40, -20, -16, -12, -8, -4, 0, 3, 4 };
|
||||
#elif defined( NRF52840_XXAA)
|
||||
#elif defined(NRF52840_XXAA) || defined(NRF52833_XXAA)
|
||||
int8_t const accepted[] = { -40, -20, -16, -12, -8, -4, 0, 2, 3, 4, 5, 6, 7, 8 };
|
||||
#endif
|
||||
|
||||
|
||||
@@ -537,7 +537,7 @@ static inline bool is_tx_power_valid(int8_t power)
|
||||
{
|
||||
#if defined(NRF52832_XXAA)
|
||||
int8_t const accepted[] = { -40, -20, -16, -12, -8, -4, 0, 3, 4 };
|
||||
#elif defined( NRF52840_XXAA)
|
||||
#elif defined(NRF52840_XXAA) || defined(NRF52833_XXAA)
|
||||
int8_t const accepted[] = { -40, -20, -16, -12, -8, -4, 0, 2, 3, 4, 5, 6, 7, 8 };
|
||||
#endif
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
#define BLE_MAX_CONNECTION 20 // SD support up to 20 connections
|
||||
|
||||
// Allocate more memory for GATT table for 840
|
||||
#ifdef NRF52840_XXAA
|
||||
#if defined(NRF52840_XXAA) || defined(NRF52833_XXAA)
|
||||
#define CFG_SD_ATTR_TABLE_SIZE 0x1000
|
||||
#else
|
||||
#define CFG_SD_ATTR_TABLE_SIZE 0xC00
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "flash/flash_nrf5x.h"
|
||||
|
||||
#ifdef NRF52840_XXAA
|
||||
#define LFS_FLASH_ADDR 0xED000
|
||||
#define LFS_FLASH_ADDR 0xED000
|
||||
#else
|
||||
#define LFS_FLASH_ADDR 0x6D000
|
||||
#define LFS_FLASH_ADDR 0x6D000
|
||||
#endif
|
||||
|
||||
#define LFS_FLASH_TOTAL_SIZE (7*FLASH_NRF52_PAGE_SIZE)
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
// Due to nRF52832 Errata with SPIM, we will only use SPIM for 840 variant
|
||||
// https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_58.html
|
||||
#ifdef NRF52840_XXAA
|
||||
#if defined(NRF52840_XXAA) || defined(NRF52833_XXAA)
|
||||
|
||||
#include "SPI.h"
|
||||
#include <Arduino.h>
|
||||
|
||||
Reference in new issue
Block a user