no-OS
|
Definitions specific to the Maxim platform used by the STOUT project. More...
#include "maxim_uart_stdio.h"
#include "maxim_gpio.h"
#include "maxim_uart.h"
#include "maxim_irq.h"
#include "maxim_i2c.h"
#include "maxim_spi.h"
Go to the source code of this file.
Variables | |
struct max_gpio_init_param | ade9113_gpio_extra_ip |
struct max_uart_init_param | ade9113_uart_extra_ip |
struct max_spi_init_param | ade9113_spi_extra_ip |
struct max_i2c_init_param | adt75_i2c_extra |
Definitions specific to the Maxim platform used by the STOUT project.
Copyright (c) 2023 Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define ADC_CHANNEL MXC_ADC_CH_0 |
#define ADJUST_TIME (5000l) |
#define COMPUTE_VALUES_INTERVAL (5u) |
#define COMPUTE_VRELAY_INTERVAL (25u) |
#define CP_DC_PWM_DELAY (2000u) |
#define CP_DIODE_ERROR_LIMIT (150u) |
#define CP_H_LOW_LIMIT (1100u) |
#define CPH_A_LIMIT_HIGH (1890u) |
#define CPH_A_LIMIT_LOW (1800u) |
#define CPH_B_LIMIT_HIGH (1670u) |
#define CPH_B_LIMIT_LOW (1600u) |
#define CPH_C_LIMIT_HIGH (1450u) |
#define CPH_C_LIMIT_LOW (1390u) |
#define CPH_D_LIMIT_HIGH (1226u) |
#define CPH_D_LIMIT_LOW (1180u) |
#define DELAY_SELF_TEST_READING (300u) |
#define DIODE_ERR_DELAY (20u) |
#define FREQ 1000 |
#define GPIO_CTRL_IRQ_ID 0 |
#define GPIO_EXTRA &ade9113_gpio_extra_ip |
#define GPIO_IRQ_EXTRA &ade9113_gpio_extra_ip |
#define GPIO_IRQ_OPS &max_gpio_irq_ops |
#define GPIO_OPS &max_gpio_ops |
#define GPIO_RCDAC_PIN 27 |
#define GPIO_RCDDC_PIN 26 |
#define GPIO_RCM_TEST_PIN 18 |
#define GPIO_RDY_PIN_NUM 15 |
#define GPIO_RDY_PORT_NUM 0 |
#define GPIO_RESET_PIN_NUM 19 |
#define GPIO_RESET_PORT_NUM 0 |
#define GPIO_ZC_PIN 14 |
#define I2C_DEVICE_ID 1 |
#define I2C_EXTRA &adt75_i2c_extra |
#define I2C_OPS &max_i2c_ops |
#define I_LIMIT_10A (10500u) |
#define I_LIMIT_16A (16500u) |
#define I_LIMIT_NOT_CHG (200u) |
#define LED_BLINKING_10A (8u) |
#define LED_BLINKING_16A (4u) |
#define MEASURE_OVERCURRENT_STEP (300u) |
#define MEASURE_RCDAC_RCDDC_STEP (108u) |
#define NVIC_GPIO_IRQ GPIO0_IRQn |
#define PRINT_VALUES_TIME (4u) |
#define PWM_DC (999u) |
#define PWM_DUTY_10A (166u) |
#define PWM_DUTY_16A (266u) |
#define PWM_HIGH_TEST_VAL (1890u) |
#define PWM_HIGH_TEST_VAL_EV_CONNECTED (1600u) |
#define PWM_LOW_TEST_VAL (160u) |
#define PWM_LOW_TIMER MXC_TMR1 |
#define PWM_OFF (1u) |
#define PWM_TIMER MXC_TMR0 |
#define RCD_TIME_REPEAT_INTERVAL (10u) |
#define RELAY_CHECK_STEP (3u) |
#define RESTORE_TEST_PIN_STEP (3u) |
#define SAMPLE_PINS_STEP_1 (37u) |
#define SAMPLE_PINS_STEP_2 (72u) |
#define SAMPLE_PINS_STEP_3 (108u) |
#define SELF_TEST_SKIP_CYCLES_NO (50u) |
#define SKIP_CYCLES_AFTER_SELF_TEST (100u) |
#define SPI_BAUDRATE 1000000 |
#define SPI_CS 0 |
#define SPI_DEVICE_ID 1 |
#define SPI_EXTRA &ade9113_spi_extra_ip |
#define SPI_OPS &max_spi_ops |
#define TAKE_S_M_ACTION (1000u) |
#define TEMPERATURE_READ_RATE (250u) |
#define UART_BAUDRATE 57600 |
#define UART_DEVICE_ID 0 |
#define UART_EXTRA &ade9113_uart_extra_ip |
#define UART_IRQ_ID UART0_IRQn |
#define UART_OPS &max_uart_ops |
#define VALUE_20MS (20000u) |
struct max_gpio_init_param ade9113_gpio_extra_ip |
struct max_spi_init_param ade9113_spi_extra_ip |
struct max_uart_init_param ade9113_uart_extra_ip |
struct max_i2c_init_param adt75_i2c_extra |