precision-converters-firmware
Macros | Functions | Variables
app_config.h File Reference
#include <stdint.h>
#include "app_config_mbed.h"
Include dependency graph for app_config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MBED_PLATFORM   1
 
#define STM32_PLATFORM   2
 
#define XSTR(s)   #s
 
#define STR(s)   XSTR(s)
 
#define ACTIVE_PLATFORM   MBED_PLATFORM
 
#define USE_VIRTUAL_COM_PORT
 
#define HW_CARRIER_NAME   TARGET_NAME
 
#define uart_extra_init_params   mbed_vcom_extra_init_params
 
#define uart_ops   mbed_virtual_com_ops
 
#define i2c_extra_init_params   mbed_i2c_extra_init_params
 
#define i2c_ops   mbed_i2c_ops
 
#define FIRMWARE_NAME   "evb_discovery_firmware"
 
#define PLATFORM_NAME   HW_CARRIER_NAME
 
#define VIRTUAL_COM_PORT_VID   0x0456
 
#define VIRTUAL_COM_PORT_PID   0xb66c
 
#define VIRTUAL_COM_SERIAL_NUM   (FIRMWARE_NAME "_" STR(PLATFORM_NAME))
 
#define IIO_UART_BAUD_RATE   (230400)
 

Functions

int32_t init_system (void)
 Initialize the system peripherals. More...
 

Variables

struct no_os_uart_desc * uart_desc
 
struct no_os_eeprom_desc * eeprom_desc
 

Macro Definition Documentation

◆ ACTIVE_PLATFORM

#define ACTIVE_PLATFORM   MBED_PLATFORM

◆ FIRMWARE_NAME

#define FIRMWARE_NAME   "evb_discovery_firmware"

◆ HW_CARRIER_NAME

#define HW_CARRIER_NAME   TARGET_NAME

◆ i2c_extra_init_params

#define i2c_extra_init_params   mbed_i2c_extra_init_params

◆ i2c_ops

#define i2c_ops   mbed_i2c_ops

◆ IIO_UART_BAUD_RATE

#define IIO_UART_BAUD_RATE   (230400)

◆ MBED_PLATFORM

#define MBED_PLATFORM   1

◆ PLATFORM_NAME

#define PLATFORM_NAME   HW_CARRIER_NAME

◆ STM32_PLATFORM

#define STM32_PLATFORM   2

◆ STR

#define STR (   s)    XSTR(s)

◆ uart_extra_init_params

#define uart_extra_init_params   mbed_vcom_extra_init_params

◆ uart_ops

#define uart_ops   mbed_virtual_com_ops

◆ USE_VIRTUAL_COM_PORT

#define USE_VIRTUAL_COM_PORT

◆ VIRTUAL_COM_PORT_PID

#define VIRTUAL_COM_PORT_PID   0xb66c

◆ VIRTUAL_COM_PORT_VID

#define VIRTUAL_COM_PORT_VID   0x0456

◆ VIRTUAL_COM_SERIAL_NUM

#define VIRTUAL_COM_SERIAL_NUM   (FIRMWARE_NAME "_" STR(PLATFORM_NAME))

◆ XSTR

#define XSTR (   s)    #s

Function Documentation

◆ init_system()

int32_t init_system ( void  )

Initialize the system peripherals.

Returns
0 in case of success, negative error code otherwise

Initialize the system peripherals.

Returns
0 in case of success, negative error code otherwise.

This function initializes system peripherals for the application

Returns
- 0 in case of success, negative error code otherwise

Variable Documentation

◆ eeprom_desc

struct no_os_eeprom_desc* eeprom_desc
extern

◆ uart_desc

struct no_os_uart_desc* uart_desc
extern