no-OS
Macros | Variables
parameters.h File Reference

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"
Include dependency graph for parameters.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UART_IRQ_ID   UART0_IRQn
 
#define UART_DEVICE_ID   0
 
#define UART_BAUDRATE   57600
 
#define UART_EXTRA   &ade9113_uart_extra_ip
 
#define UART_OPS   &max_uart_ops
 
#define I2C_DEVICE_ID   1
 
#define I2C_OPS   &max_i2c_ops
 
#define I2C_EXTRA   &adt75_i2c_extra
 
#define SPI_DEVICE_ID   1
 
#define SPI_CS   0
 
#define SPI_BAUDRATE   1000000
 
#define SPI_OPS   &max_spi_ops
 
#define SPI_EXTRA   &ade9113_spi_extra_ip
 
#define GPIO_OPS   &max_gpio_ops
 
#define GPIO_EXTRA   &ade9113_gpio_extra_ip
 
#define GPIO_RDY_PIN_NUM   15
 
#define GPIO_RDY_PORT_NUM   0
 
#define GPIO_IRQ_OPS   &max_gpio_irq_ops
 
#define GPIO_CTRL_IRQ_ID   0
 
#define GPIO_IRQ_EXTRA   &ade9113_gpio_extra_ip
 
#define NVIC_GPIO_IRQ   GPIO0_IRQn
 
#define GPIO_RESET_PIN_NUM   19
 
#define GPIO_RESET_PORT_NUM   0
 
#define GPIO_ZC_PIN   14
 
#define GPIO_RCM_TEST_PIN   18
 
#define GPIO_RCDDC_PIN   26
 
#define GPIO_RCDAC_PIN   27
 
#define FREQ   1000
 
#define PWM_TIMER   MXC_TMR0
 
#define PWM_LOW_TIMER   MXC_TMR1
 
#define PWM_DUTY_10A   (166u)
 
#define PWM_DUTY_16A   (266u)
 
#define PWM_DC   (999u)
 
#define PWM_OFF   (1u)
 
#define PWM_LOW_TEST_VAL   (160u)
 
#define PWM_HIGH_TEST_VAL   (1890u)
 
#define PWM_HIGH_TEST_VAL_EV_CONNECTED   (1600u)
 
#define ADC_CHANNEL   MXC_ADC_CH_0
 
#define TAKE_S_M_ACTION   (1000u)
 
#define RELAY_CHECK_STEP   (3u)
 
#define MEASURE_RCDAC_RCDDC_STEP   (108u)
 
#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 MEASURE_OVERCURRENT_STEP   (300u)
 
#define I_LIMIT_NOT_CHG   (200u)
 
#define I_LIMIT_16A   (16500u)
 
#define I_LIMIT_10A   (10500u)
 
#define SELF_TEST_SKIP_CYCLES_NO   (50u)
 
#define SKIP_CYCLES_AFTER_SELF_TEST   (100u)
 
#define DELAY_SELF_TEST_READING   (300u)
 
#define VALUE_20MS   (20000u)
 
#define RCD_TIME_REPEAT_INTERVAL   (10u)
 
#define PRINT_VALUES_TIME   (4u)
 
#define COMPUTE_VALUES_INTERVAL   (5u)
 
#define COMPUTE_VRELAY_INTERVAL   (25u)
 
#define TEMPERATURE_READ_RATE   (250u)
 
#define DIODE_ERR_DELAY   (20u)
 
#define CP_DIODE_ERROR_LIMIT   (150u)
 
#define LED_BLINKING_16A   (4u)
 
#define LED_BLINKING_10A   (8u)
 
#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 CP_DC_PWM_DELAY   (2000u)
 
#define ADJUST_TIME   (5000l)
 

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
 

Detailed Description

Definitions specific to the Maxim platform used by the STOUT project.

Author
GMois (georg.nosp@m.e.mo.nosp@m.is@an.nosp@m.alog.nosp@m..com), REtz (radu..nosp@m.etz@.nosp@m.analo.nosp@m.g.co.nosp@m.m)

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:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

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.

Macro Definition Documentation

◆ ADC_CHANNEL

#define ADC_CHANNEL   MXC_ADC_CH_0

◆ ADJUST_TIME

#define ADJUST_TIME   (5000l)

◆ COMPUTE_VALUES_INTERVAL

#define COMPUTE_VALUES_INTERVAL   (5u)

◆ COMPUTE_VRELAY_INTERVAL

#define COMPUTE_VRELAY_INTERVAL   (25u)

◆ CP_DC_PWM_DELAY

#define CP_DC_PWM_DELAY   (2000u)

◆ CP_DIODE_ERROR_LIMIT

#define CP_DIODE_ERROR_LIMIT   (150u)

◆ CP_H_LOW_LIMIT

#define CP_H_LOW_LIMIT   (1100u)

◆ CPH_A_LIMIT_HIGH

#define CPH_A_LIMIT_HIGH   (1890u)

◆ CPH_A_LIMIT_LOW

#define CPH_A_LIMIT_LOW   (1800u)

◆ CPH_B_LIMIT_HIGH

#define CPH_B_LIMIT_HIGH   (1670u)

◆ CPH_B_LIMIT_LOW

#define CPH_B_LIMIT_LOW   (1600u)

◆ CPH_C_LIMIT_HIGH

#define CPH_C_LIMIT_HIGH   (1450u)

◆ CPH_C_LIMIT_LOW

#define CPH_C_LIMIT_LOW   (1390u)

◆ CPH_D_LIMIT_HIGH

#define CPH_D_LIMIT_HIGH   (1226u)

◆ CPH_D_LIMIT_LOW

#define CPH_D_LIMIT_LOW   (1180u)

◆ DELAY_SELF_TEST_READING

#define DELAY_SELF_TEST_READING   (300u)

◆ DIODE_ERR_DELAY

#define DIODE_ERR_DELAY   (20u)

◆ FREQ

#define FREQ   1000

◆ GPIO_CTRL_IRQ_ID

#define GPIO_CTRL_IRQ_ID   0

◆ GPIO_EXTRA

#define GPIO_EXTRA   &ade9113_gpio_extra_ip

◆ GPIO_IRQ_EXTRA

#define GPIO_IRQ_EXTRA   &ade9113_gpio_extra_ip

◆ GPIO_IRQ_OPS

#define GPIO_IRQ_OPS   &max_gpio_irq_ops

◆ GPIO_OPS

#define GPIO_OPS   &max_gpio_ops

◆ GPIO_RCDAC_PIN

#define GPIO_RCDAC_PIN   27

◆ GPIO_RCDDC_PIN

#define GPIO_RCDDC_PIN   26

◆ GPIO_RCM_TEST_PIN

#define GPIO_RCM_TEST_PIN   18

◆ GPIO_RDY_PIN_NUM

#define GPIO_RDY_PIN_NUM   15

◆ GPIO_RDY_PORT_NUM

#define GPIO_RDY_PORT_NUM   0

◆ GPIO_RESET_PIN_NUM

#define GPIO_RESET_PIN_NUM   19

◆ GPIO_RESET_PORT_NUM

#define GPIO_RESET_PORT_NUM   0

◆ GPIO_ZC_PIN

#define GPIO_ZC_PIN   14

◆ I2C_DEVICE_ID

#define I2C_DEVICE_ID   1

◆ I2C_EXTRA

#define I2C_EXTRA   &adt75_i2c_extra

◆ I2C_OPS

#define I2C_OPS   &max_i2c_ops

◆ I_LIMIT_10A

#define I_LIMIT_10A   (10500u)

◆ I_LIMIT_16A

#define I_LIMIT_16A   (16500u)

◆ I_LIMIT_NOT_CHG

#define I_LIMIT_NOT_CHG   (200u)

◆ LED_BLINKING_10A

#define LED_BLINKING_10A   (8u)

◆ LED_BLINKING_16A

#define LED_BLINKING_16A   (4u)

◆ MEASURE_OVERCURRENT_STEP

#define MEASURE_OVERCURRENT_STEP   (300u)

◆ MEASURE_RCDAC_RCDDC_STEP

#define MEASURE_RCDAC_RCDDC_STEP   (108u)

◆ NVIC_GPIO_IRQ

#define NVIC_GPIO_IRQ   GPIO0_IRQn

◆ PRINT_VALUES_TIME

#define PRINT_VALUES_TIME   (4u)

◆ PWM_DC

#define PWM_DC   (999u)

◆ PWM_DUTY_10A

#define PWM_DUTY_10A   (166u)

◆ PWM_DUTY_16A

#define PWM_DUTY_16A   (266u)

◆ PWM_HIGH_TEST_VAL

#define PWM_HIGH_TEST_VAL   (1890u)

◆ PWM_HIGH_TEST_VAL_EV_CONNECTED

#define PWM_HIGH_TEST_VAL_EV_CONNECTED   (1600u)

◆ PWM_LOW_TEST_VAL

#define PWM_LOW_TEST_VAL   (160u)

◆ PWM_LOW_TIMER

#define PWM_LOW_TIMER   MXC_TMR1

◆ PWM_OFF

#define PWM_OFF   (1u)

◆ PWM_TIMER

#define PWM_TIMER   MXC_TMR0

◆ RCD_TIME_REPEAT_INTERVAL

#define RCD_TIME_REPEAT_INTERVAL   (10u)

◆ RELAY_CHECK_STEP

#define RELAY_CHECK_STEP   (3u)

◆ RESTORE_TEST_PIN_STEP

#define RESTORE_TEST_PIN_STEP   (3u)

◆ SAMPLE_PINS_STEP_1

#define SAMPLE_PINS_STEP_1   (37u)

◆ SAMPLE_PINS_STEP_2

#define SAMPLE_PINS_STEP_2   (72u)

◆ SAMPLE_PINS_STEP_3

#define SAMPLE_PINS_STEP_3   (108u)

◆ SELF_TEST_SKIP_CYCLES_NO

#define SELF_TEST_SKIP_CYCLES_NO   (50u)

◆ SKIP_CYCLES_AFTER_SELF_TEST

#define SKIP_CYCLES_AFTER_SELF_TEST   (100u)

◆ SPI_BAUDRATE

#define SPI_BAUDRATE   1000000

◆ SPI_CS

#define SPI_CS   0

◆ SPI_DEVICE_ID

#define SPI_DEVICE_ID   1

◆ SPI_EXTRA

#define SPI_EXTRA   &ade9113_spi_extra_ip

◆ SPI_OPS

#define SPI_OPS   &max_spi_ops

◆ TAKE_S_M_ACTION

#define TAKE_S_M_ACTION   (1000u)

◆ TEMPERATURE_READ_RATE

#define TEMPERATURE_READ_RATE   (250u)

◆ UART_BAUDRATE

#define UART_BAUDRATE   57600

◆ UART_DEVICE_ID

#define UART_DEVICE_ID   0

◆ UART_EXTRA

#define UART_EXTRA   &ade9113_uart_extra_ip

◆ UART_IRQ_ID

#define UART_IRQ_ID   UART0_IRQn

◆ UART_OPS

#define UART_OPS   &max_uart_ops

◆ VALUE_20MS

#define VALUE_20MS   (20000u)

Variable Documentation

◆ ade9113_gpio_extra_ip

struct max_gpio_init_param ade9113_gpio_extra_ip

◆ ade9113_spi_extra_ip

struct max_spi_init_param ade9113_spi_extra_ip

◆ ade9113_uart_extra_ip

struct max_uart_init_param ade9113_uart_extra_ip

◆ adt75_i2c_extra

struct max_i2c_init_param adt75_i2c_extra