precision-converters-firmware
Macros | Variables
app_config_mbed.h File Reference

Header file for Mbed platform configurations. More...

#include <stdint.h>
#include <PinNames.h>
#include "mbed_uart.h"
#include "mbed_spi.h"
#include "mbed_pwm.h"
#include "mbed_gpio_irq.h"
#include "mbed_gpio.h"
#include "mbed_i2c.h"
Include dependency graph for app_config_mbed.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SPI_CSB   ARDUINO_UNO_D10
 
#define SPI_HOST_SDO   ARDUINO_UNO_D11
 
#define SPI_HOST_SDI   ARDUINO_UNO_D12
 
#define SPI_SCK   ARDUINO_UNO_D13
 
#define UART_TX   CONSOLE_TX
 
#define UART_RX   CONSOLE_RX
 
#define I2C_SCL   ARDUINO_UNO_D15
 
#define I2C_SDA   ARDUINO_UNO_D14
 
#define DIGI_GOOD_PIN   ARDUINO_UNO_D6
 
#define SAMPLING_RATE   (62500)
 
#define CONV_TRIGGER_PERIOD_NSEC(x)   (((float)(1.0 / x) * 1000000) * 1000)
 
#define CONV_TRIGGER_DUTY_CYCLE_NSEC(x)   (CONV_TRIGGER_PERIOD_NSEC(x) / 10)
 
#define gpio_ops   mbed_gpio_ops
 
#define spi_ops   mbed_spi_ops
 
#define i2c_ops   mbed_i2c_ops
 
#define uart_ops   mbed_uart_ops
 
#define vcom_ops   mbed_virtual_com_ops
 
#define pwm_ops   mbed_pwm_ops
 
#define gpio_ops   mbed_gpio_ops
 
#define spi_ops   mbed_spi_ops
 
#define trigger_gpio_irq_ops   mbed_gpio_irq_ops
 
#define trigger_gpio_handle   0
 
#define TRIGGER_GPIO_PORT   0
 
#define TRIGGER_GPIO_PIN   ARDUINO_UNO_D2
 
#define TIMER1_ID   0
 
#define TIMER2_ID   0
 
#define TRIGGER_INT_ID   0
 
#define I2C_DEV_ID   0
 
#define UART_MODULE   0
 
#define UART_IRQ   0
 
#define SPI_DEVICE_ID   0
 
#define SPI_CS_PIN_NUM   ARDUINO_UNO_D10
 
#define CNV_PIN_NUM   ARDUINO_UNO_D9
 
#define CNV_PORT_NUM   0
 
#define GP0_PIN_NUM   0
 
#define GP0_PORT_NUM   0
 
#define GP1_PIN_NUM   0
 
#define GP1_PORT_NUM   0
 
#define BSY_PIN_NUM   ARDUINO_UNO_D2
 
#define BSY_PORT_NUM   0
 
#define RESET_PIN_NUM   ARDUINO_UNO_D4
 
#define RESET_PORT_NUM   0
 
#define MAX_SPI_SCLK   22500000
 

Variables

struct mbed_gpio_init_param mbed_gpio_bsy_extra_init_params
 
struct mbed_gpio_irq_init_param mbed_trigger_gpio_irq_init_params
 
struct mbed_uart_init_param mbed_uart_extra_init_params
 
struct mbed_uart_init_param mbed_vcom_extra_init_params
 
struct mbed_spi_init_param mbed_spi_extra_init_params
 
struct mbed_pwm_init_param mbed_pwm_extra_init_params
 
struct mbed_i2c_init_param mbed_i2c_extra_init_params
 
struct mbed_gpio_init_param mbed_gpio_reset_extra_init_params
 
struct mbed_gpio_init_param mbed_gpio_cnv_extra_init_params
 

Detailed Description

Header file for Mbed platform configurations.

Copyright (c) 2021-23 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.

Macro Definition Documentation

◆ BSY_PIN_NUM

#define BSY_PIN_NUM   ARDUINO_UNO_D2

◆ BSY_PORT_NUM

#define BSY_PORT_NUM   0

◆ CNV_PIN_NUM

#define CNV_PIN_NUM   ARDUINO_UNO_D9

◆ CNV_PORT_NUM

#define CNV_PORT_NUM   0

◆ CONV_TRIGGER_DUTY_CYCLE_NSEC

#define CONV_TRIGGER_DUTY_CYCLE_NSEC (   x)    (CONV_TRIGGER_PERIOD_NSEC(x) / 10)

◆ CONV_TRIGGER_PERIOD_NSEC

#define CONV_TRIGGER_PERIOD_NSEC (   x)    (((float)(1.0 / x) * 1000000) * 1000)

◆ DIGI_GOOD_PIN

#define DIGI_GOOD_PIN   ARDUINO_UNO_D6

◆ GP0_PIN_NUM

#define GP0_PIN_NUM   0

◆ GP0_PORT_NUM

#define GP0_PORT_NUM   0

◆ GP1_PIN_NUM

#define GP1_PIN_NUM   0

◆ GP1_PORT_NUM

#define GP1_PORT_NUM   0

◆ gpio_ops [1/2]

#define gpio_ops   mbed_gpio_ops

◆ gpio_ops [2/2]

#define gpio_ops   mbed_gpio_ops

◆ I2C_DEV_ID

#define I2C_DEV_ID   0

◆ i2c_ops

#define i2c_ops   mbed_i2c_ops

◆ I2C_SCL

#define I2C_SCL   ARDUINO_UNO_D15

◆ I2C_SDA

#define I2C_SDA   ARDUINO_UNO_D14

◆ MAX_SPI_SCLK

#define MAX_SPI_SCLK   22500000

◆ pwm_ops

#define pwm_ops   mbed_pwm_ops

◆ RESET_PIN_NUM

#define RESET_PIN_NUM   ARDUINO_UNO_D4

◆ RESET_PORT_NUM

#define RESET_PORT_NUM   0

◆ SAMPLING_RATE

#define SAMPLING_RATE   (62500)

◆ SPI_CS_PIN_NUM

#define SPI_CS_PIN_NUM   ARDUINO_UNO_D10

◆ SPI_CSB

#define SPI_CSB   ARDUINO_UNO_D10

◆ SPI_DEVICE_ID

#define SPI_DEVICE_ID   0

◆ SPI_HOST_SDI

#define SPI_HOST_SDI   ARDUINO_UNO_D12

◆ SPI_HOST_SDO

#define SPI_HOST_SDO   ARDUINO_UNO_D11

◆ spi_ops [1/2]

#define spi_ops   mbed_spi_ops

◆ spi_ops [2/2]

#define spi_ops   mbed_spi_ops

◆ SPI_SCK

#define SPI_SCK   ARDUINO_UNO_D13

◆ TIMER1_ID

#define TIMER1_ID   0

◆ TIMER2_ID

#define TIMER2_ID   0

◆ trigger_gpio_handle

#define trigger_gpio_handle   0

◆ trigger_gpio_irq_ops

#define trigger_gpio_irq_ops   mbed_gpio_irq_ops

◆ TRIGGER_GPIO_PIN

#define TRIGGER_GPIO_PIN   ARDUINO_UNO_D2

◆ TRIGGER_GPIO_PORT

#define TRIGGER_GPIO_PORT   0

◆ TRIGGER_INT_ID

#define TRIGGER_INT_ID   0

◆ UART_IRQ

#define UART_IRQ   0

◆ UART_MODULE

#define UART_MODULE   0

◆ uart_ops

#define uart_ops   mbed_uart_ops

◆ UART_RX

#define UART_RX   CONSOLE_RX

◆ UART_TX

#define UART_TX   CONSOLE_TX

◆ vcom_ops

#define vcom_ops   mbed_virtual_com_ops

Variable Documentation

◆ mbed_gpio_bsy_extra_init_params

struct mbed_gpio_init_param mbed_gpio_bsy_extra_init_params
extern

◆ mbed_gpio_cnv_extra_init_params

struct mbed_gpio_init_param mbed_gpio_cnv_extra_init_params
extern

◆ mbed_gpio_reset_extra_init_params

struct mbed_gpio_init_param mbed_gpio_reset_extra_init_params
extern

◆ mbed_i2c_extra_init_params

struct mbed_i2c_init_param mbed_i2c_extra_init_params
extern

◆ mbed_pwm_extra_init_params

struct mbed_pwm_init_param mbed_pwm_extra_init_params
extern

◆ mbed_spi_extra_init_params

struct mbed_spi_init_param mbed_spi_extra_init_params
extern

◆ mbed_trigger_gpio_irq_init_params

struct mbed_gpio_irq_init_param mbed_trigger_gpio_irq_init_params
extern

◆ mbed_uart_extra_init_params

struct mbed_uart_init_param mbed_uart_extra_init_params
extern

◆ mbed_vcom_extra_init_params

struct mbed_uart_init_param mbed_vcom_extra_init_params
extern