mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
Correct linker ram, dont use lfclk ext crystal, increase adv interval back
This commit is contained in:
parent
f45a3ae475
commit
963db711da
@ -61,7 +61,7 @@ of beta. */
|
||||
#define DEVICE_NAME "Espruino "PC_BOARD_ID /**< Name of device. Will be included in the advertising data. */
|
||||
#define NUS_SERVICE_UUID_TYPE BLE_UUID_TYPE_VENDOR_BEGIN /**< UUID type for the Nordic UART Service (vendor specific). */
|
||||
|
||||
#define APP_ADV_INTERVAL 64 /**< The advertising interval (in units of 0.625 ms. This value corresponds to 750ms). */
|
||||
#define APP_ADV_INTERVAL 1200 /**< The advertising interval (in units of 0.625 ms. This value corresponds to 750ms). */
|
||||
#define APP_ADV_TIMEOUT_IN_SECONDS 180 /**< The advertising timeout (in units of seconds). */
|
||||
|
||||
#define SCAN_INTERVAL 0x00A0 /**< Scan interval in units of 0.625 millisecond. 100ms */
|
||||
@ -519,8 +519,8 @@ static void ble_stack_init(void)
|
||||
uint32_t err_code;
|
||||
|
||||
// Initialize SoftDevice.
|
||||
SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL);
|
||||
//SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_TEMP_8000MS_CALIBRATION, false);
|
||||
// SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL); // Maybe we should use this if external crystal available.
|
||||
SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_TEMP_8000MS_CALIBRATION, false);
|
||||
|
||||
ble_enable_params_t ble_enable_params;
|
||||
err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT,
|
||||
|
||||
@ -6,7 +6,7 @@ GROUP(-lgcc -lc -lnosys)
|
||||
MEMORY
|
||||
{
|
||||
FLASH (rx) : ORIGIN = 0x1B000, LENGTH = 0x21000
|
||||
RAM (rwx) : ORIGIN = 0x20001F00, LENGTH = 0x2100 /* 16kB */
|
||||
RAM (rwx) : ORIGIN = 0x20001E00, LENGTH = 0x2200 /* 16kB */
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
|
||||
@ -6,7 +6,7 @@ GROUP(-lgcc -lc -lnosys)
|
||||
MEMORY
|
||||
{
|
||||
FLASH (rx) : ORIGIN = 0x1B000, LENGTH = 0x21000
|
||||
RAM (rwx) : ORIGIN = 0x20001F00, LENGTH = 0x6100 /* 32kB */
|
||||
RAM (rwx) : ORIGIN = 0x20001E00, LENGTH = 0x6200 /* 32kB */
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
|
||||
@ -6,7 +6,7 @@ GROUP(-lgcc -lc -lnosys)
|
||||
MEMORY
|
||||
{
|
||||
FLASH (rx) : ORIGIN = 0x1B000, LENGTH = 0x5F000
|
||||
RAM (rwx) : ORIGIN = 0x20001F00, LENGTH = 0xE100 /* 64kB - This is PCA_10040 not the preview dev kit! */
|
||||
RAM (rwx) : ORIGIN = 0x20001E00, LENGTH = 0xE200 /* 64kB - This is PCA_10040 not the preview dev kit! */
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user