Nordic Semiconductor nRF5 AirFuel SDK  version 2.2.0
common.c File Reference
#include <stdint.h>
#include "nrf_soc.h"
#include "app_error.h"
#include "nrf_sdm.h"
#include "bootloader_types.h"
#include "bootloader_util.h"

Go to the source code of this file.

Macros

#define NOF_IRQS   32
 
#define MAX_RTC_COUNTER_VAL   0x00FFFFFF
 

Functions

Static functions and variables
static void interrupts_disable (void)
 Function for disabling all interrupts before jumping from bootloader to application.
 
API implementation
void power_manage (void)
 Power manager.
 
void system_off (void)
 Function to put system in SYSTEMOFF mode.
 
uint32_t ticks_diff (uint32_t ticks_now, uint32_t ticks_old)
 
void dfu_start (void)
 Starts DFU mode. The function writes a special value to retention register to tell bootloader to start DFU mode, disables SoftDevice and performs a reset.
 

Macro Definition Documentation

#define NOF_IRQS   32

Max number of interrupts.

Definition at line 25 of file common.c.

#define MAX_RTC_COUNTER_VAL   0x00FFFFFF

Maximum value of the RTC counter.

Definition at line 28 of file common.c.