![](/media/cache/group/ADI_Logo_AWP_zgjvy7B.png.50x50_q85.png)
Example Program for EVAL-AD7606
Dependencies: platform_drivers
app/app_config_mbed.c@7:054dbd5e1f45, 2021-08-03 (annotated)
- Committer:
- Kjansen
- Date:
- Tue Aug 03 11:54:49 2021 +0100
- Revision:
- 7:054dbd5e1f45
- Parent:
- 6:32de160dce43
Modified the ADC data capture module to remove dependancy on type of ADC and it's specific operations
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kjansen |
6:32de160dce43 | 1 | /***************************************************************************//** |
Kjansen |
6:32de160dce43 | 2 | * @file app_config_mbed.c |
Kjansen |
6:32de160dce43 | 3 | * @brief Application configurations module for Mbed platform |
Kjansen |
6:32de160dce43 | 4 | ******************************************************************************** |
Kjansen |
6:32de160dce43 | 5 | * Copyright (c) 2021 Analog Devices, Inc. |
Kjansen |
6:32de160dce43 | 6 | * All rights reserved. |
Kjansen |
6:32de160dce43 | 7 | * |
Kjansen |
6:32de160dce43 | 8 | * This software is proprietary to Analog Devices, Inc. and its licensors. |
Kjansen |
6:32de160dce43 | 9 | * By using this software you agree to the terms of the associated |
Kjansen |
6:32de160dce43 | 10 | * Analog Devices Software License Agreement. |
Kjansen |
6:32de160dce43 | 11 | *******************************************************************************/ |
Kjansen |
6:32de160dce43 | 12 | |
Kjansen |
6:32de160dce43 | 13 | /******************************************************************************/ |
Kjansen |
6:32de160dce43 | 14 | /***************************** Include Files **********************************/ |
Kjansen |
6:32de160dce43 | 15 | /******************************************************************************/ |
Kjansen |
6:32de160dce43 | 16 | |
Kjansen |
6:32de160dce43 | 17 | #include <stdbool.h> |
Kjansen |
6:32de160dce43 | 18 | #include "app_config.h" |
Kjansen |
6:32de160dce43 | 19 | #include "app_config_mbed.h" |
Kjansen |
6:32de160dce43 | 20 | |
Kjansen |
6:32de160dce43 | 21 | /******************************************************************************/ |
Kjansen |
6:32de160dce43 | 22 | /************************ Macros/Constants ************************************/ |
Kjansen |
6:32de160dce43 | 23 | /******************************************************************************/ |
Kjansen |
6:32de160dce43 | 24 | |
Kjansen |
6:32de160dce43 | 25 | /******************************************************************************/ |
Kjansen |
6:32de160dce43 | 26 | /******************** Variables and User Defined Data Types *******************/ |
Kjansen |
6:32de160dce43 | 27 | /******************************************************************************/ |
Kjansen |
6:32de160dce43 | 28 | |
Kjansen |
6:32de160dce43 | 29 | /* UART Mbed platform specific init parameters */ |
Kjansen |
6:32de160dce43 | 30 | mbed_uart_init_param mbed_uart_extra_init_params = { |
Kjansen |
6:32de160dce43 | 31 | #if defined(USE_VIRTUAL_COM_PORT) |
Kjansen |
6:32de160dce43 | 32 | .virtual_com_enable = true, |
Kjansen |
6:32de160dce43 | 33 | .vendor_id = VIRTUAL_COM_PORT_VID, |
Kjansen |
6:32de160dce43 | 34 | .product_id = VIRTUAL_COM_PORT_PID, |
Kjansen |
6:32de160dce43 | 35 | .serial_number = VIRTUAL_COM_SERIAL_NUM |
Kjansen |
6:32de160dce43 | 36 | #else |
Kjansen |
6:32de160dce43 | 37 | .uart_tx_pin = UART_TX, |
Kjansen |
6:32de160dce43 | 38 | .uart_rx_pin = UART_RX, |
Kjansen |
6:32de160dce43 | 39 | .virtual_com_enable = false |
Kjansen |
6:32de160dce43 | 40 | #endif |
Kjansen |
6:32de160dce43 | 41 | }; |
Kjansen |
6:32de160dce43 | 42 | |
Kjansen |
6:32de160dce43 | 43 | /* External interrupt Mbed platform specific parameters */ |
Kjansen |
6:32de160dce43 | 44 | mbed_irq_init_param mbed_ext_int_extra_init_params = { |
Kjansen |
6:32de160dce43 | 45 | .int_mode = EXT_IRQ_FALL, |
Kjansen |
6:32de160dce43 | 46 | .ext_int_pin = INT_EVENT, |
Kjansen |
6:32de160dce43 | 47 | .int_obj_type = NULL |
Kjansen |
6:32de160dce43 | 48 | }; |
Kjansen |
6:32de160dce43 | 49 | |
Kjansen |
6:32de160dce43 | 50 | /* SPI Mbed platform specific parameters */ |
Kjansen |
6:32de160dce43 | 51 | mbed_spi_init_param mbed_spi_extra_init_params = { |
Kjansen |
6:32de160dce43 | 52 | .spi_clk_pin = SPI_SCK, |
Kjansen |
6:32de160dce43 | 53 | .spi_miso_pin = SPI_HOST_SDI, |
Kjansen |
6:32de160dce43 | 54 | .spi_mosi_pin = SPI_HOST_SDO |
Kjansen |
6:32de160dce43 | 55 | }; |
Kjansen |
6:32de160dce43 | 56 | |
Kjansen |
6:32de160dce43 | 57 | /******************************************************************************/ |
Kjansen |
6:32de160dce43 | 58 | /************************** Functions Declarations ****************************/ |
Kjansen |
6:32de160dce43 | 59 | /******************************************************************************/ |
Kjansen |
6:32de160dce43 | 60 | |
Kjansen |
6:32de160dce43 | 61 | /******************************************************************************/ |
Kjansen |
6:32de160dce43 | 62 | /************************** Functions Definitions *****************************/ |
Kjansen |
6:32de160dce43 | 63 | /******************************************************************************/ |