![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Example program for CN0535-FMCZ.
Dependencies: platform_drivers AD77681
app_config.h@1:f3b5e79a8488, 2021-03-15 (annotated)
- Committer:
- jngarlitos
- Date:
- Mon Mar 15 07:12:29 2021 +0000
- Revision:
- 1:f3b5e79a8488
- Child:
- 2:998f1de78dae
Initial Commit for EVAL-CN0535-FMCZ Program Files
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jngarlitos | 1:f3b5e79a8488 | 1 | #ifndef _APP_CONFIG_H_ |
jngarlitos | 1:f3b5e79a8488 | 2 | #define _APP_CONFIG_H_ |
jngarlitos | 1:f3b5e79a8488 | 3 | |
jngarlitos | 1:f3b5e79a8488 | 4 | #include <stdint.h> |
jngarlitos | 1:f3b5e79a8488 | 5 | #include "platform_drivers.h" |
jngarlitos | 1:f3b5e79a8488 | 6 | #ifdef __cplusplus |
jngarlitos | 1:f3b5e79a8488 | 7 | extern "C" |
jngarlitos | 1:f3b5e79a8488 | 8 | { |
jngarlitos | 1:f3b5e79a8488 | 9 | #endif |
jngarlitos | 1:f3b5e79a8488 | 10 | #ifdef __cplusplus |
jngarlitos | 1:f3b5e79a8488 | 11 | } |
jngarlitos | 1:f3b5e79a8488 | 12 | #endif |
jngarlitos | 1:f3b5e79a8488 | 13 | |
jngarlitos | 1:f3b5e79a8488 | 14 | |
jngarlitos | 1:f3b5e79a8488 | 15 | #define ARDUINO |
jngarlitos | 1:f3b5e79a8488 | 16 | |
jngarlitos | 1:f3b5e79a8488 | 17 | |
jngarlitos | 1:f3b5e79a8488 | 18 | /** |
jngarlitos | 1:f3b5e79a8488 | 19 | The ADI SDP_K1 can be used with both arduino headers |
jngarlitos | 1:f3b5e79a8488 | 20 | or the 120-pin SDP connector found on ADI evaluation |
jngarlitos | 1:f3b5e79a8488 | 21 | boards. The default is the SDP connector |
jngarlitos | 1:f3b5e79a8488 | 22 | |
jngarlitos | 1:f3b5e79a8488 | 23 | Uncomment the ARDUINO #define above to enable the ARDUINO connector |
jngarlitos | 1:f3b5e79a8488 | 24 | |
jngarlitos | 1:f3b5e79a8488 | 25 | */ |
jngarlitos | 1:f3b5e79a8488 | 26 | //#warning check this |
jngarlitos | 1:f3b5e79a8488 | 27 | #ifdef ARDUINO |
jngarlitos | 1:f3b5e79a8488 | 28 | #define I2C_SCL D15 |
jngarlitos | 1:f3b5e79a8488 | 29 | #define I2C_SDA D14 |
jngarlitos | 1:f3b5e79a8488 | 30 | |
jngarlitos | 1:f3b5e79a8488 | 31 | #define SPI_CS D10 |
jngarlitos | 1:f3b5e79a8488 | 32 | #define SPI_MISO D12 |
jngarlitos | 1:f3b5e79a8488 | 33 | #define SPI_MOSI D11 |
jngarlitos | 1:f3b5e79a8488 | 34 | #define SPI_SCK D13 |
jngarlitos | 1:f3b5e79a8488 | 35 | |
jngarlitos | 1:f3b5e79a8488 | 36 | #else |
jngarlitos | 1:f3b5e79a8488 | 37 | #define I2C_SCL SDP_I2C_SCL |
jngarlitos | 1:f3b5e79a8488 | 38 | #define I2C_SDA SDP_I2C_SDA |
jngarlitos | 1:f3b5e79a8488 | 39 | |
jngarlitos | 1:f3b5e79a8488 | 40 | #define SPI_CS SDP_SPI_CS_A |
jngarlitos | 1:f3b5e79a8488 | 41 | #define SPI_MISO SDP_SPI_MISO |
jngarlitos | 1:f3b5e79a8488 | 42 | #define SPI_MOSI SDP_SPI_MOSI |
jngarlitos | 1:f3b5e79a8488 | 43 | #define SPI_SCK SDP_SPI_SCK |
jngarlitos | 1:f3b5e79a8488 | 44 | |
jngarlitos | 1:f3b5e79a8488 | 45 | #endif |
jngarlitos | 1:f3b5e79a8488 | 46 | |
jngarlitos | 1:f3b5e79a8488 | 47 | #endif //_APP_CONFIG_H_ |