We don't want this device to be updatable over the air, and we don't
need the serial DFU bootloader. This leaves only UF2.
Signed-off-by: Sean Cross <sean@xobs.io>
#define BOOTLOADER_REGION_START 0x00074000 /**< This field should correspond to start address of the bootloader, found in UICR.RESERVED, 0x10001014, register. This value is used for sanity check, so the bootloader will fail immediately if this value differs from runtime value. The value is used to determine max application size for updating. */
#define BOOTLOADER_REGION_START 0x0007A000 /**< This field should correspond to start address of the bootloader, found in UICR.RESERVED, 0x10001014, register. This value is used for sanity check, so the bootloader will fail immediately if this value differs from runtime value. The value is used to determine max application size for updating. */
#define BOOTLOADER_SETTINGS_ADDRESS 0x0007F000 /**< The field specifies the page location of the bootloader settings address. */
#define BOOTLOADER_MBR_PARAMS_PAGE_ADDRESS 0x0007E000 /**< The field specifies the page location of the mbr params page address. */
staticdfu_ble_peer_data_tm_peer_data__attribute__((section("NoInit"),zero_init));/**< This variable should be placed in a non initialized RAM section in order to be valid upon soft reset from application into bootloader. */
staticuint16_tm_peer_data_crc__attribute__((section("NoInit"),zero_init));/**< CRC variable to ensure the integrity of the peer data provided. */
#elif defined ( __GNUC__ )
__attribute__((section(".noinit")))staticdfu_ble_peer_data_tm_peer_data;/**< This variable should be placed in a non initialized RAM section in order to be valid upon soft reset from application into bootloader. */
__attribute__((section(".noinit")))staticuint16_tm_peer_data_crc;/**< CRC variable to ensure the integrity of the peer data provided. */
#elif defined ( __ICCARM__ )
__no_initstaticdfu_ble_peer_data_tm_peer_data@0x20003F80;/**< This variable should be placed in a non initialized RAM section in order to be valid upon soft reset from application into bootloader. */
__no_initstaticuint16_tm_peer_data_crc@0x20003F80+sizeof(dfu_ble_peer_data_t);/**< CRC variable to ensure the integrity of the peer data provided. */
#endif
/**@brief Function for setting the peer data from application in bootloader before reset.
// static dfu_ble_peer_data_t m_peer_data __attribute__((section("NoInit"), zero_init)); /**< This variable should be placed in a non initialized RAM section in order to be valid upon soft reset from application into bootloader. */
// static uint16_t m_peer_data_crc __attribute__((section("NoInit"), zero_init)); /**< CRC variable to ensure the integrity of the peer data provided. */
// #elif defined ( __GNUC__ )
// __attribute__((section(".noinit"))) static dfu_ble_peer_data_t m_peer_data; /**< This variable should be placed in a non initialized RAM section in order to be valid upon soft reset from application into bootloader. */
// __attribute__((section(".noinit"))) static uint16_t m_peer_data_crc; /**< CRC variable to ensure the integrity of the peer data provided. */
// #elif defined ( __ICCARM__ )
// __no_init static dfu_ble_peer_data_t m_peer_data @ 0x20003F80; /**< This variable should be placed in a non initialized RAM section in order to be valid upon soft reset from application into bootloader. */
// __no_init static uint16_t m_peer_data_crc @ 0x20003F80 + sizeof(dfu_ble_peer_data_t); /**< CRC variable to ensure the integrity of the peer data provided. */
// #endif
// /**@brief Function for setting the peer data from application in bootloader before reset.
// *
// * @param[in] p_peer_data Pointer to the peer data containing keys for the connection.
// *
// * @retval NRF_SUCCES The data was set succesfully.
// * @retval NRF_ERROR_NULL If a null pointer was passed as argument.