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: sdp_k1_sdram
Diff: app/app_config_mbed.c
- Revision:
- 2:007533849deb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/app_config_mbed.c Thu Jul 21 16:45:24 2022 +0530
@@ -0,0 +1,67 @@
+/***************************************************************************//**
+ * @file app_config_mbed.c
+ * @brief Application configurations module for Mbed platform
+********************************************************************************
+ * Copyright (c) 2021-22 Analog Devices, Inc.
+ * All rights reserved.
+ *
+ * This software is proprietary to Analog Devices, Inc. and its licensors.
+ * By using this software you agree to the terms of the associated
+ * Analog Devices Software License Agreement.
+*******************************************************************************/
+
+/******************************************************************************/
+/***************************** Include Files **********************************/
+/******************************************************************************/
+
+#include <stdbool.h>
+#include "app_config.h"
+#include "app_config_mbed.h"
+
+/******************************************************************************/
+/************************ Macros/Constants ************************************/
+/******************************************************************************/
+
+/******************************************************************************/
+/******************** Variables and User Defined Data Types *******************/
+/******************************************************************************/
+
+/* UART Mbed platform specific init parameters */
+struct mbed_uart_init_param mbed_uart_extra_init_params = {
+#if defined(USE_PHY_COM_PORT)
+ .virtual_com_enable = false,
+ .uart_tx_pin = UART_TX,
+ .uart_rx_pin = UART_RX
+#else
+ .virtual_com_enable = true,
+ .vendor_id = VIRTUAL_COM_PORT_VID,
+ .product_id = VIRTUAL_COM_PORT_PID,
+ .serial_number = VIRTUAL_COM_SERIAL_NUM
+#endif
+};
+
+/* External interrupt Mbed platform specific parameters */
+struct mbed_irq_init_param mbed_ext_int_extra_init_params = {
+ .int_mode = EXT_IRQ_FALL,
+ .ext_int_pin = INT_EVENT,
+ .int_obj_type = NULL
+};
+
+struct mbed_pwm_init_param mbed_pwm_extra_init_params = {
+ .pwm_pin = PWM_TRIGGER
+};
+
+/* SPI Mbed platform specific parameters */
+struct mbed_spi_init_param mbed_spi_extra_init_params = {
+ .spi_clk_pin = SPI_SCK,
+ .spi_miso_pin = SPI_HOST_SDI,
+ .spi_mosi_pin = SPI_HOST_SDO
+};
+
+/******************************************************************************/
+/************************** Functions Declarations ****************************/
+/******************************************************************************/
+
+/******************************************************************************/
+/************************** Functions Definitions *****************************/
+/******************************************************************************/