-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hibernation_and_stateaware_hibernation
- Loading branch information
Mohammad Seyed
committed
Jun 5, 2024
1 parent
f4bd13b
commit 7644e8d
Showing
16 changed files
with
4,478 additions
and
2,122 deletions.
There are no files selected for viewing
722 changes: 461 additions & 261 deletions
722
...on/project_environment/hibernation.uvoptx → ...are_hibernation/Keil_5/hibernation.uvoptx
Large diffs are not rendered by default.
Oops, something went wrong.
2,630 changes: 2,630 additions & 0 deletions
2,630
connectivity/hibernation_and_stateaware_hibernation/Keil_5/hibernation.uvprojx
Large diffs are not rendered by default.
Oops, something went wrong.
1,026 changes: 0 additions & 1,026 deletions
1,026
connectivity/hibernation_and_stateaware_hibernation/project_environment/hibernation.uvprojx
This file was deleted.
Oops, something went wrong.
259 changes: 259 additions & 0 deletions
259
connectivity/hibernation_and_stateaware_hibernation/src/config/da14531_config_advanced.h
Large diffs are not rendered by default.
Oops, something went wrong.
130 changes: 130 additions & 0 deletions
130
connectivity/hibernation_and_stateaware_hibernation/src/config/da14531_config_basic.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
/** | ||
**************************************************************************************** | ||
* | ||
* @file da14531_config_basic.h | ||
* | ||
* @brief Basic compile configuration file. | ||
* | ||
* Copyright (C) 2015-2023 Renesas Electronics Corporation and/or its affiliates. | ||
* All rights reserved. Confidential Information. | ||
* | ||
* This software ("Software") is supplied by Renesas Electronics Corporation and/or its | ||
* affiliates ("Renesas"). Renesas grants you a personal, non-exclusive, non-transferable, | ||
* revocable, non-sub-licensable right and license to use the Software, solely if used in | ||
* or together with Renesas products. You may make copies of this Software, provided this | ||
* copyright notice and disclaimer ("Notice") is included in all such copies. Renesas | ||
* reserves the right to change or discontinue the Software at any time without notice. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS". RENESAS DISCLAIMS ALL WARRANTIES OF ANY KIND, | ||
* WHETHER EXPRESS, IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. TO THE | ||
* MAXIMUM EXTENT PERMITTED UNDER LAW, IN NO EVENT SHALL RENESAS BE LIABLE FOR ANY DIRECT, | ||
* INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING FROM, OUT OF OR IN | ||
* CONNECTION WITH THE SOFTWARE, EVEN IF RENESAS HAS BEEN ADVISED OF THE POSSIBILITY OF | ||
* SUCH DAMAGES. USE OF THIS SOFTWARE MAY BE SUBJECT TO TERMS AND CONDITIONS CONTAINED IN | ||
* AN ADDITIONAL AGREEMENT BETWEEN YOU AND RENESAS. IN CASE OF CONFLICT BETWEEN THE TERMS | ||
* OF THIS NOTICE AND ANY SUCH ADDITIONAL LICENSE AGREEMENT, THE TERMS OF THE AGREEMENT | ||
* SHALL TAKE PRECEDENCE. BY CONTINUING TO USE THIS SOFTWARE, YOU AGREE TO THE TERMS OF | ||
* THIS NOTICE.IF YOU DO NOT AGREE TO THESE TERMS, YOU ARE NOT PERMITTED TO USE THIS | ||
* SOFTWARE. | ||
* | ||
**************************************************************************************** | ||
*/ | ||
|
||
#ifndef _DA14531_CONFIG_BASIC_H_ | ||
#define _DA14531_CONFIG_BASIC_H_ | ||
|
||
#include "da1458x_stack_config.h" | ||
#include "user_profiles_config.h" | ||
|
||
/***************************************************************************************************************/ | ||
/* Integrated or external processor configuration */ | ||
/* -defined Integrated processor mode. Host application runs in DA14585 processor. Host application */ | ||
/* is the TASK_APP kernel task. */ | ||
/* -undefined External processor mode. Host application runs on an external processor. Communicates with */ | ||
/* BLE application through GTL protocol over a signalling iface (UART, SPI etc) */ | ||
/***************************************************************************************************************/ | ||
#define CFG_APP | ||
|
||
/****************************************************************************************************************/ | ||
/* Enables the BLE security functionality in TASK_APP. If not defined BLE security related code is compiled out.*/ | ||
/****************************************************************************************************************/ | ||
#undef CFG_APP_SECURITY | ||
|
||
/****************************************************************************************************************/ | ||
/* Enables WatchDog timer. */ | ||
/****************************************************************************************************************/ | ||
#define CFG_WDOG | ||
|
||
/****************************************************************************************************************/ | ||
/* Watchdog timer behavior in production mode: */ | ||
/* Flag is not defined: Watchdog timer generates NMI at value 0. */ | ||
/* Flag is defined : Watchdog timer generates a WDOG (SYS) reset at value 0. */ | ||
/****************************************************************************************************************/ | ||
#undef CFG_WDG_TRIGGER_HW_RESET_IN_PRODUCTION_MODE | ||
|
||
/****************************************************************************************************************/ | ||
/* Determines maximum concurrent connections supported by application. It configures the heap memory allocated */ | ||
/* to service multiple connections. It is used for GAP central role applications. For GAP peripheral role it */ | ||
/* should be set to 1 for optimizing memory utilization. */ | ||
/* - MAX value for DA14531: 3 */ | ||
/****************************************************************************************************************/ | ||
#define CFG_MAX_CONNECTIONS (1) | ||
|
||
/****************************************************************************************************************/ | ||
/* Enables development/debug mode. For production mode builds it must be disabled. */ | ||
/* When enabled the following debugging features are enabled */ | ||
/* - Allows the emulation of the OTP mirroring to System RAM. No actual writing to RAM is done, but the */ | ||
/* exact same amount of time is spend as if the mirroring would take place. This is to mimic the */ | ||
/* behavior as if the System Code is already in OTP, and the mirroring takes place after waking up, */ | ||
/* but the (development) code still resides in an external source. */ | ||
/* - Validation of GPIO reservations. */ | ||
/* - Enables Debug module and sets code execution in breakpoint in Hardfault and NMI (Watchdog) handlers.*/ | ||
/* It allows developer to hot attach debugger and get debug information */ | ||
/****************************************************************************************************************/ | ||
#define CFG_DEVELOPMENT_DEBUG | ||
|
||
/****************************************************************************************************************/ | ||
/* UART Console Print. If CFG_PRINTF is defined, serial interface logging mechanism will be enabled. */ | ||
/* If CFG_PRINTF_UART2 is defined, then serial interface logging mechanism is implented using UART2, else UART1 */ | ||
/* will be used. */ | ||
/****************************************************************************************************************/ | ||
#undef CFG_PRINTF | ||
#ifdef CFG_PRINTF | ||
#define CFG_PRINTF_UART2 | ||
#endif | ||
|
||
/****************************************************************************************************************/ | ||
/* UART1 Driver Implementation. If CFG_UART1_SDK is defined, UART1 ROM driver will be overriden and UART SDK */ | ||
/* driver will be used, else ROM driver will be used for UART1 module. */ | ||
/****************************************************************************************************************/ | ||
#undef CFG_UART1_SDK | ||
|
||
|
||
/****************************************************************************************************************/ | ||
/* Select external memory device for data storage */ | ||
/* SPI FLASH (#define CFG_SPI_FLASH_ENABLE) */ | ||
/* I2C EEPROM (#define CFG_I2C_EEPROM_ENABLE) */ | ||
/****************************************************************************************************************/ | ||
#undef CFG_SPI_FLASH_ENABLE | ||
#undef CFG_I2C_EEPROM_ENABLE | ||
|
||
/****************************************************************************************************************/ | ||
/* Enables/Disables the DMA Support for the following interfaces: */ | ||
/* - UART */ | ||
/* - SPI */ | ||
/* - I2C */ | ||
/* - ADC */ | ||
/****************************************************************************************************************/ | ||
#undef CFG_UART_DMA_SUPPORT | ||
#undef CFG_SPI_DMA_SUPPORT | ||
#undef CFG_I2C_DMA_SUPPORT | ||
#undef CFG_ADC_DMA_SUPPORT | ||
|
||
/****************************************************************************************************************/ | ||
/* Notify the SDK about the fixed power mode (currently used only for Bypass): */ | ||
/* - CFG_POWER_MODE_BYPASS = Bypass mode */ | ||
/****************************************************************************************************************/ | ||
#undef CFG_POWER_MODE_BYPASS | ||
|
||
#endif // _DA14531_CONFIG_BASIC_H_ |
Oops, something went wrong.