Example program for CN0535-FMCZ.
Dependencies: platform_drivers AD77681
app_config.h@2:998f1de78dae, 2021-04-12 (annotated)
- Committer:
- jngarlitos
- Date:
- Mon Apr 12 07:44:03 2021 +0000
- Revision:
- 2:998f1de78dae
- Parent:
- 1:f3b5e79a8488
Update license of EVAL-CN0535-FMCZ example program
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jngarlitos | 2:998f1de78dae | 1 | /*! |
jngarlitos | 2:998f1de78dae | 2 | ***************************************************************************** |
jngarlitos | 2:998f1de78dae | 3 | *@file: app_config.h |
jngarlitos | 2:998f1de78dae | 4 | * |
jngarlitos | 2:998f1de78dae | 5 | *@brief: configuration file for EVAL-CN0535-FMCZ example program |
jngarlitos | 2:998f1de78dae | 6 | * |
jngarlitos | 2:998f1de78dae | 7 | *@details: configuration file for EVAL-CN0535-FMCZ example program |
jngarlitos | 2:998f1de78dae | 8 | *----------------------------------------------------------------------------- |
jngarlitos | 2:998f1de78dae | 9 | * |
jngarlitos | 2:998f1de78dae | 10 | Copyright (c) 2021 Analog Devices, Inc. |
jngarlitos | 2:998f1de78dae | 11 | All rights reserved. |
jngarlitos | 2:998f1de78dae | 12 | |
jngarlitos | 2:998f1de78dae | 13 | This software is proprietary to Analog Devices, Inc. and its licensors. |
jngarlitos | 2:998f1de78dae | 14 | By using this software you agree to the terms of the associated |
jngarlitos | 2:998f1de78dae | 15 | Analog Devices Software License Agreement. |
jngarlitos | 2:998f1de78dae | 16 | *****************************************************************************/ |
jngarlitos | 2:998f1de78dae | 17 | |
jngarlitos | 1:f3b5e79a8488 | 18 | #ifndef _APP_CONFIG_H_ |
jngarlitos | 1:f3b5e79a8488 | 19 | #define _APP_CONFIG_H_ |
jngarlitos | 1:f3b5e79a8488 | 20 | |
jngarlitos | 1:f3b5e79a8488 | 21 | #include <stdint.h> |
jngarlitos | 1:f3b5e79a8488 | 22 | #include "platform_drivers.h" |
jngarlitos | 1:f3b5e79a8488 | 23 | #ifdef __cplusplus |
jngarlitos | 1:f3b5e79a8488 | 24 | extern "C" |
jngarlitos | 1:f3b5e79a8488 | 25 | { |
jngarlitos | 1:f3b5e79a8488 | 26 | #endif |
jngarlitos | 1:f3b5e79a8488 | 27 | #ifdef __cplusplus |
jngarlitos | 1:f3b5e79a8488 | 28 | } |
jngarlitos | 1:f3b5e79a8488 | 29 | #endif |
jngarlitos | 1:f3b5e79a8488 | 30 | |
jngarlitos | 1:f3b5e79a8488 | 31 | |
jngarlitos | 1:f3b5e79a8488 | 32 | #define ARDUINO |
jngarlitos | 1:f3b5e79a8488 | 33 | |
jngarlitos | 1:f3b5e79a8488 | 34 | |
jngarlitos | 1:f3b5e79a8488 | 35 | /** |
jngarlitos | 1:f3b5e79a8488 | 36 | The ADI SDP_K1 can be used with both arduino headers |
jngarlitos | 1:f3b5e79a8488 | 37 | or the 120-pin SDP connector found on ADI evaluation |
jngarlitos | 1:f3b5e79a8488 | 38 | boards. The default is the SDP connector |
jngarlitos | 1:f3b5e79a8488 | 39 | |
jngarlitos | 1:f3b5e79a8488 | 40 | Uncomment the ARDUINO #define above to enable the ARDUINO connector |
jngarlitos | 1:f3b5e79a8488 | 41 | |
jngarlitos | 1:f3b5e79a8488 | 42 | */ |
jngarlitos | 1:f3b5e79a8488 | 43 | //#warning check this |
jngarlitos | 1:f3b5e79a8488 | 44 | #ifdef ARDUINO |
jngarlitos | 1:f3b5e79a8488 | 45 | #define I2C_SCL D15 |
jngarlitos | 1:f3b5e79a8488 | 46 | #define I2C_SDA D14 |
jngarlitos | 1:f3b5e79a8488 | 47 | |
jngarlitos | 1:f3b5e79a8488 | 48 | #define SPI_CS D10 |
jngarlitos | 1:f3b5e79a8488 | 49 | #define SPI_MISO D12 |
jngarlitos | 1:f3b5e79a8488 | 50 | #define SPI_MOSI D11 |
jngarlitos | 1:f3b5e79a8488 | 51 | #define SPI_SCK D13 |
jngarlitos | 1:f3b5e79a8488 | 52 | |
jngarlitos | 1:f3b5e79a8488 | 53 | #else |
jngarlitos | 1:f3b5e79a8488 | 54 | #define I2C_SCL SDP_I2C_SCL |
jngarlitos | 1:f3b5e79a8488 | 55 | #define I2C_SDA SDP_I2C_SDA |
jngarlitos | 1:f3b5e79a8488 | 56 | |
jngarlitos | 1:f3b5e79a8488 | 57 | #define SPI_CS SDP_SPI_CS_A |
jngarlitos | 1:f3b5e79a8488 | 58 | #define SPI_MISO SDP_SPI_MISO |
jngarlitos | 1:f3b5e79a8488 | 59 | #define SPI_MOSI SDP_SPI_MOSI |
jngarlitos | 1:f3b5e79a8488 | 60 | #define SPI_SCK SDP_SPI_SCK |
jngarlitos | 1:f3b5e79a8488 | 61 | |
jngarlitos | 1:f3b5e79a8488 | 62 | #endif |
jngarlitos | 1:f3b5e79a8488 | 63 | |
jngarlitos | 1:f3b5e79a8488 | 64 | #endif //_APP_CONFIG_H_ |