precision-converters-firmware
Macros | Functions | 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_gpio_irq.h"
#include "mbed_spi.h"
#include "mbed_i2c.h"
#include "mbed_gpio.h"
#include "mbed_pwm.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 I2C_SCL   ARDUINO_UNO_D15
 
#define I2C_SDA   ARDUINO_UNO_D14
 
#define UART_TX   CONSOLE_TX
 
#define UART_RX   CONSOLE_RX
 
#define DCLK_PIN   ARDUINO_UNO_D2
 
#define ODR_PIN   ARDUINO_UNO_D3
 
#define DOUT0_PIN   ARDUINO_UNO_D4
 
#define DOUT1_PIN   ARDUINO_UNO_D5
 
#define PDN_PIN   ARDUINO_UNO_D1
 
#define PDN_PORT   0
 
#define DOUT1_IDR   (*((volatile uint32_t *)0x40020010))
 
#define ODR_IDR   (*((volatile uint32_t *)0x40020C10))
 
#define DCLK_IDR   (*((volatile uint32_t *)0x40021810))
 
#define DOUT0_IDR   (*((volatile uint32_t *)0x40021810))
 
#define DCLK_ODR   (*((volatile uint32_t *)0x40021814))
 
#define DCLK_PIN_NUM   7
 
#define ODR_PIN_NUM   12
 
#define DOUT0_PIN_NUM   9
 
#define DOUT1_PIN_NUM   11
 
#define DCLK_PIN_MASK   (uint32_t)(1 << DCLK_PIN_NUM)
 
#define ODR_PIN_MASK   (uint32_t)(1 << ODR_PIN_NUM)
 
#define DOUT0_PIN_MASK   (uint32_t)(1 << DOUT0_PIN_NUM)
 
#define DOUT1_PIN_MASK   (uint32_t)(1 << DOUT1_PIN_NUM)
 
#define UART_IRQ_ID   0
 
#define IRQ_INT_ID   GPIO_IRQ_ID1
 
#define UART_DEVICE_ID   0
 
#define SPI_DEVICE_ID   0
 
#define I2C_DEVICE_ID   0
 
#define SAMPLING_RATE   (12000)
 
#define CONV_TRIGGER_PERIOD_NSEC   (((float)(1.0 / SAMPLING_RATE) * 1000000) * 1000)
 
#define CONV_TRIGGER_DUTY_CYCLE_NSEC   (CONV_TRIGGER_PERIOD_NSEC / 40)
 

Functions

void ad7134_configure_intr_priority (void)
 Configure the interrupt priorities. More...
 

Variables

struct mbed_gpio_irq_init_param mbed_ext_int_extra_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_i2c_init_param mbed_i2c_extra_init_params
 
struct mbed_pwm_init_param mbed_pwm_extra_init_params
 
struct mbed_gpio_init_param mbed_pdn_extra_init_params
 

Detailed Description

Header file for Mbed platform configurations.

Copyright (c) 2021, 2023 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

◆ CONV_TRIGGER_DUTY_CYCLE_NSEC

#define CONV_TRIGGER_DUTY_CYCLE_NSEC   (CONV_TRIGGER_PERIOD_NSEC / 40)

◆ CONV_TRIGGER_PERIOD_NSEC

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

◆ DCLK_IDR

#define DCLK_IDR   (*((volatile uint32_t *)0x40021810))

◆ DCLK_ODR

#define DCLK_ODR   (*((volatile uint32_t *)0x40021814))

◆ DCLK_PIN

#define DCLK_PIN   ARDUINO_UNO_D2

◆ DCLK_PIN_MASK

#define DCLK_PIN_MASK   (uint32_t)(1 << DCLK_PIN_NUM)

◆ DCLK_PIN_NUM

#define DCLK_PIN_NUM   7

◆ DOUT0_IDR

#define DOUT0_IDR   (*((volatile uint32_t *)0x40021810))

◆ DOUT0_PIN

#define DOUT0_PIN   ARDUINO_UNO_D4

◆ DOUT0_PIN_MASK

#define DOUT0_PIN_MASK   (uint32_t)(1 << DOUT0_PIN_NUM)

◆ DOUT0_PIN_NUM

#define DOUT0_PIN_NUM   9

◆ DOUT1_IDR

#define DOUT1_IDR   (*((volatile uint32_t *)0x40020010))

◆ DOUT1_PIN

#define DOUT1_PIN   ARDUINO_UNO_D5

◆ DOUT1_PIN_MASK

#define DOUT1_PIN_MASK   (uint32_t)(1 << DOUT1_PIN_NUM)

◆ DOUT1_PIN_NUM

#define DOUT1_PIN_NUM   11

◆ I2C_DEVICE_ID

#define I2C_DEVICE_ID   0

◆ I2C_SCL

#define I2C_SCL   ARDUINO_UNO_D15

◆ I2C_SDA

#define I2C_SDA   ARDUINO_UNO_D14

◆ IRQ_INT_ID

#define IRQ_INT_ID   GPIO_IRQ_ID1

◆ ODR_IDR

#define ODR_IDR   (*((volatile uint32_t *)0x40020C10))

◆ ODR_PIN

#define ODR_PIN   ARDUINO_UNO_D3

◆ ODR_PIN_MASK

#define ODR_PIN_MASK   (uint32_t)(1 << ODR_PIN_NUM)

◆ ODR_PIN_NUM

#define ODR_PIN_NUM   12

◆ PDN_PIN

#define PDN_PIN   ARDUINO_UNO_D1

◆ PDN_PORT

#define PDN_PORT   0

◆ SAMPLING_RATE

#define SAMPLING_RATE   (12000)

◆ 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_SCK

#define SPI_SCK   ARDUINO_UNO_D13

◆ UART_DEVICE_ID

#define UART_DEVICE_ID   0

◆ UART_IRQ_ID

#define UART_IRQ_ID   0

◆ UART_RX

#define UART_RX   CONSOLE_RX

◆ UART_TX

#define UART_TX   CONSOLE_TX

Function Documentation

◆ ad7134_configure_intr_priority()

void ad7134_configure_intr_priority ( void  )

Configure the interrupt priorities.

Returns
None

Variable Documentation

◆ mbed_ext_int_extra_init_params

struct mbed_gpio_irq_init_param mbed_ext_int_extra_init_params
extern

◆ mbed_i2c_extra_init_params

struct mbed_i2c_init_param mbed_i2c_extra_init_params
extern

◆ mbed_pdn_extra_init_params

struct mbed_gpio_init_param mbed_pdn_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_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