Lancaster University fork of the Nordic nrf51-SDK repository, which actually lives on github: https://github.com/lancaster-university/nrf51-sdk

Dependents:   nRF51822

Embed: (wiki syntax)

« Back to documentation index

nrf_assert.h File Reference

nrf_assert.h File Reference

Utilities for verifying program logic. More...

Go to the source code of this file.

Functions

void assert_nrf_callback (uint16_t line_num, const uint8_t *file_name)
 Function for handling assertions.

Detailed Description

Utilities for verifying program logic.

Definition in file nrf_assert.h.


Function Documentation

void assert_nrf_callback ( uint16_t  line_num,
const uint8_t *  file_name 
)

Function for handling assertions.

Note:
This function is called when an assertion has triggered.
Postcondition:
All hardware is put into an idle non-emitting state (in particular the radio is highly important to switch off since the radio might be in a state that makes it send packets continiously while a typical final infinit ASSERT loop is executing).
Parameters:
line_numThe line number where the assertion is called
file_namePointer to the file name

Definition at line 35 of file nrf_assert.c.