diff options
Diffstat (limited to 'mpm/lib/mykonos/adi/common.h')
-rw-r--r-- | mpm/lib/mykonos/adi/common.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/mpm/lib/mykonos/adi/common.h b/mpm/lib/mykonos/adi/common.h index 5268b2a8b..6ed697e7f 100644 --- a/mpm/lib/mykonos/adi/common.h +++ b/mpm/lib/mykonos/adi/common.h @@ -3,6 +3,13 @@ * \brief Contains type definitions and prototype declarations for common.c */ +/** +* \page Disclaimer Legal Disclaimer +* Copyright 2015-2017 Analog Devices Inc. +* Released under the AD9371 API license, for more information see the "LICENSE.txt" file in this zip file. +* +*/ + #ifndef _COMMON_H_ #define _COMMON_H_ @@ -13,6 +20,8 @@ extern "C" { /* build project settings include the path to the desired platform folder for correct includes */ #include "stdint.h" +#define THROW_ERROR() + #define SPIARRAYSIZE 1024 /* assuming 3 byte SPI message - integer math enforces floor() */ @@ -91,9 +100,9 @@ commonErr_t CMB_SPIReadField (spiSettings_t *spiSettings, uint16_t addr, uint8_t /* platform timer functions */ commonErr_t CMB_wait_ms(uint32_t time_ms); commonErr_t CMB_wait_us(uint32_t time_us); -commonErr_t CMB_setTimeout_ms(spiSettings_t *spiSettings, uint32_t timeOut_ms); -commonErr_t CMB_setTimeout_us(spiSettings_t *spiSettings, uint32_t timeOut_us); -commonErr_t CMB_hasTimeoutExpired(spiSettings_t *spiSettings); +commonErr_t CMB_setTimeout_ms(uint32_t timeOut_ms); +commonErr_t CMB_setTimeout_us(uint32_t timeOut_us); +commonErr_t CMB_hasTimeoutExpired(); /* platform logging functions */ commonErr_t CMB_openLog(const char *filename); |