no-OS
Loading...
Searching...
No Matches
common_data.h
Go to the documentation of this file.
1/***************************************************************************/
33#ifndef __COMMON_DATA_H__
34#define __COMMON_DATA_H__
35
36#include "adhv4710.h"
37#include "no_os_uart.h"
38#include "no_os_pwm.h"
39#include "no_os_delay.h"
40#include "no_os_gpio.h"
41#include "no_os_spi.h"
42#include "no_os_print_log.h"
43#include "no_os_units.h"
44#include "no_os_util.h"
45#include "no_os_error.h"
46#include "maxim_uart.h"
47#include "maxim_gpio.h"
48#include "maxim_uart_stdio.h"
49#include "maxim_pwm.h"
50#include "maxim_spi.h"
51#include "maxim_irq.h"
52
53/* UART init params */
54extern struct no_os_uart_init_param uart_ip;
55/* GPIO LED init params */
57/* SPI init params */
59/* GPIO RESET init params */
61
62/* check for triggered alarms interval */
63#define READ_INTERVAL 2000000
64
65/* Setup values for ADHV4710 */
66/* Current resolution */
67#define ADHV4710_CURRENT_RESOLUTION 15.625
68/* Voltage resolution */
69#define ADHV4710_VOLTAGE_RESOLUTION 1.953
70/* Temperature resolution */
71#define ADHV4710_TEMP_RESOLUTION 6.51
72/* User defined values (Must be changed by user)*/
73/* Overcurrent limit set to 100mA for both source and sink */
74#define CURRENT_LIMIT_SOURCE 100
75#define CURRENT_LIMIT_SINK 100
76/* Overvoltage limit set to 20V for both negative and positive */
77#define VOLTAGE_POSITIVE_LIMIT 20
78#define VOLTAGE_NEGATIVE_LIMIT 20
79/* Overtemperature limit 85℃ */
80#define TEMPERATURE_LIMIT 88
81#define TEMP_OFFSET 266.64
82/* */
83#endif /* __COMMON_DATA_H__ */
Header file of ADHV4710 Driver.
struct no_os_uart_init_param uart_ip
Definition common_data.c:52
struct no_os_gpio_init_param gpio_reset_ip
Definition platform.c:74
struct no_os_gpio_init_param gpio_led1_ip
Definition platform.c:65
struct no_os_spi_init_param adhv4710_spi_ip
Definition platform.c:83
Header file of Delay functions.
Error codes definition.
Header file of GPIO Interface.
Print messages helpers.
Header file of PWM Interface.
Header file of SPI Interface.
Header file of UART interface.
Header file of Units.
Header file of utility functions.
Structure holding the parameters for GPIO initialization.
Definition no_os_gpio.h:67
Structure holding the parameters for SPI initialization.
Definition no_os_spi.h:128
Structure holding the parameters for UART initialization.
Definition no_os_uart.h:98