Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: platform_drivers
app_config_mbed.h
00001 /***************************************************************************//** 00002 * @file app_config_mbed.h 00003 * @brief Header file for Mbed platform configurations 00004 ******************************************************************************** 00005 * Copyright (c) 2021 Analog Devices, Inc. 00006 * All rights reserved. 00007 * 00008 * This software is proprietary to Analog Devices, Inc. and its licensors. 00009 * By using this software you agree to the terms of the associated 00010 * Analog Devices Software License Agreement. 00011 *******************************************************************************/ 00012 00013 #ifndef APP_CONFIG_MBED_H_ 00014 #define APP_CONFIG_MBED_H_ 00015 00016 /******************************************************************************/ 00017 /***************************** Include Files **********************************/ 00018 /******************************************************************************/ 00019 00020 #include <stdint.h> 00021 #include <PinNames.h> 00022 00023 #include "uart_extra.h" 00024 #include "irq_extra.h" 00025 #include "spi_extra.h" 00026 #include "gpio_extra.h" 00027 00028 /******************************************************************************/ 00029 /********************** Macros and Constants Definition ***********************/ 00030 /******************************************************************************/ 00031 00032 /* Pin mapping for AD4696 w.r.t Arduino Headers */ 00033 #define SPI_CSB D10 00034 #define SPI_HOST_SDO D11 00035 #define SPI_HOST_SDI D12 00036 #define SPI_SCK D13 00037 00038 /* Common pin mapping on SDP-K1 */ 00039 #define UART_TX USBTX 00040 #define UART_RX USBRX 00041 00042 /* Pins used to trigger, reset and/or read a new (periodic) conversion event */ 00043 #define RESET_PIN D5 00044 #define BUSY_PIN D7 00045 #define CONVST_PIN D6 00046 00047 /* Define the max possible sampling (or output data) rate for a given platform. 00048 * This is also used to find the time period to trigger a periodic conversion event. 00049 * Note: Max possible ODR is 62.5KSPS per channel for continuous data capture on 00050 * IIO client. This is derived by testing the firmware on SDP-K1 controller board 00051 * @22Mhz SPI clock. The max possible ODR can vary from board to board and 00052 * data continuity is not guaranteed above this ODR on IIO oscilloscope */ 00053 #define SAMPLING_RATE (62500) 00054 #define CONV_TRIGGER_PERIOD_NSEC (((float)(1.0 / SAMPLING_RATE) * 1000000) * 1000) 00055 #define CONV_TRIGGER_DUTY_CYCLE_NSEC (CONV_TRIGGER_PERIOD_NSEC / 10) 00056 00057 /******************************************************************************/ 00058 /********************** Public/Extern Declarations ****************************/ 00059 /******************************************************************************/ 00060 00061 extern mbed_gpio_init_param mbed_gpio_bsy_extra_init_params; 00062 extern mbed_irq_init_param mbed_ext_int_extra_init_params; 00063 extern mbed_uart_init_param mbed_uart_extra_init_params; 00064 extern mbed_spi_init_param mbed_spi_extra_init_params; 00065 00066 #endif /* APP_CONFIG_MBED_H_ */
Generated on Tue Jul 12 2022 15:35:46 by
1.7.2