BLE temperature profile using digital DS1820 or analog LM35 sensors

Dependencies:   DS1820

Committer:
gkroussos
Date:
Sat Mar 07 16:23:41 2015 +0000
Revision:
0:637031152314
Working version 1.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gkroussos 0:637031152314 1 /*
gkroussos 0:637031152314 2 * Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
gkroussos 0:637031152314 3 *
gkroussos 0:637031152314 4 * The information contained herein is confidential property of Nordic Semiconductor. The use,
gkroussos 0:637031152314 5 * copying, transfer or disclosure of such information is prohibited except by express written
gkroussos 0:637031152314 6 * agreement with Nordic Semiconductor.
gkroussos 0:637031152314 7 *
gkroussos 0:637031152314 8 */
gkroussos 0:637031152314 9
gkroussos 0:637031152314 10 /** @brief Utilities for verifying program logic
gkroussos 0:637031152314 11 */
gkroussos 0:637031152314 12
gkroussos 0:637031152314 13 #ifndef SOFTDEVICE_ASSERT_H_
gkroussos 0:637031152314 14 #define SOFTDEVICE_ASSERT_H_
gkroussos 0:637031152314 15
gkroussos 0:637031152314 16 #include <stdint.h>
gkroussos 0:637031152314 17
gkroussos 0:637031152314 18 /** @brief This function handles assertions.
gkroussos 0:637031152314 19 *
gkroussos 0:637031152314 20 *
gkroussos 0:637031152314 21 * @note
gkroussos 0:637031152314 22 * This function is called when an assertion has triggered.
gkroussos 0:637031152314 23 *
gkroussos 0:637031152314 24 *
gkroussos 0:637031152314 25 * @param line_num The line number where the assertion is called
gkroussos 0:637031152314 26 * @param file_name Pointer to the file name
gkroussos 0:637031152314 27 */
gkroussos 0:637031152314 28 void assert_softdevice_callback(uint16_t line_num, const uint8_t *file_name);
gkroussos 0:637031152314 29
gkroussos 0:637031152314 30
gkroussos 0:637031152314 31 /*lint -emacro(506, ASSERT) */ /* Suppress "Constant value Boolean */
gkroussos 0:637031152314 32 /*lint -emacro(774, ASSERT) */ /* Suppress "Boolean within 'if' always evaluates to True" */ \
gkroussos 0:637031152314 33 /** @brief Check intended for production code
gkroussos 0:637031152314 34 *
gkroussos 0:637031152314 35 * Check passes if "expr" evaluates to true. */
gkroussos 0:637031152314 36 #define ASSERT(expr) \
gkroussos 0:637031152314 37 if (expr) \
gkroussos 0:637031152314 38 { \
gkroussos 0:637031152314 39 } \
gkroussos 0:637031152314 40 else \
gkroussos 0:637031152314 41 { \
gkroussos 0:637031152314 42 assert_softdevice_callback((uint16_t)__LINE__, (uint8_t *)__FILE__); \
gkroussos 0:637031152314 43 /*lint -unreachable */ \
gkroussos 0:637031152314 44 }
gkroussos 0:637031152314 45
gkroussos 0:637031152314 46 #endif /* SOFTDEVICE_ASSERT_H_ */