13#ifndef APP_CONFIG_STM32_H_ 
   14#define APP_CONFIG_STM32_H_ 
   21#include "stm32_uart.h" 
   22#include "stm32_gpio.h" 
   24#include "stm32_uart_stdio.h" 
   39#define SPI_DEVICE_ID       1  
   44#define I2C_DEVICE_ID       1  
   63#define SPI_DEVICE_ID       5  
   66#define I2C_DEVICE_ID       3  
   76#if defined(DEV_AD5686R) || defined(DEV_AD5686) || \ 
   77    defined(DEV_AD5684R) || defined(DEV_AD5684) || \ 
   88#elif defined(DEV_AD5696R) || defined(DEV_AD5696) || \ 
   89      defined(DEV_AD5694R) || defined(DEV_AD5694) || \ 
   90      defined(DEV_AD5695R) || defined(DEV_AD5697R) 
  100#define I2C_SLAVE_ADDRESS   0x18 
  101#elif defined(DEV_AD5683) || defined(DEV_AD5683R) || defined(DEV_AD5682R) || \ 
  112#elif defined(DEV_AD5693) || defined(DEV_AD5693R) || defined(DEV_AD5692R) || \ 
  123#define I2C_SLAVE_ADDRESS   0x98 
  124#elif defined (DEV_AD5674R) || defined (DEV_AD5674) || \ 
  125      defined (DEV_AD5679R) || defined (DEV_AD5679) || \ 
  126      defined (DEV_AD5677R) || defined (DEV_AD5673R) 
  136#define I2C_SLAVE_ADDRESS   0x1E 
  137#elif defined (DEV_AD5676R) || defined (DEV_AD5676) || \ 
  138      defined (DEV_AD5672R) 
  148#elif defined (DEV_AD5671R) || defined (DEV_AD5675R) 
  158#define I2C_SLAVE_ADDRESS   0x18 
  160#warning No/Unsupported EVAL board found. Using EVAL-AD5686R as default. 
  172#define LED_GREEN   LED3     
  173#define LED_GREEN_PORT 10    
  178#define APP_UART_HANDLE     &huart5 
  179#define UART_IRQ_ID         UART5_IRQn 
  182#define uart_ops stm32_uart_ops 
  183#define i2c_ops stm32_i2c_ops 
  184#define gpio_ops stm32_gpio_ops 
  185#define spi_ops stm32_spi_ops 
  192extern UART_HandleTypeDef 
huart5;
 
UART_HandleTypeDef huart5
 
struct stm32_gpio_init_param stm32_gpio_ldac_init_params
Definition app_config_stm32.c:59
 
void stm32_system_init(void)
Initialize the STM32 system peripherals.
Definition app_config_stm32.c:176
 
struct stm32_gpio_init_param stm32_gpio_reset_init_params
Definition app_config_stm32.c:72
 
struct stm32_i2c_init_param stm32_i2c_extra_init_params
Definition app_config_stm32.c:152
 
struct stm32_uart_init_param stm32_uart_extra_init_params
Definition app_config_stm32.c:102
 
struct stm32_spi_init_param stm32_spi_extra_init_params
Definition app_config_stm32.c:46
 
struct no_os_uart_desc * uart_desc
Definition app_config.c:97
 
struct stm32_gpio_init_param stm32_gain_gpio_init_params
Definition app_config_stm32.c:57