no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
platform.h
Go to the documentation of this file.
1/***************************************************************************/
33#ifndef __PLATFORM_H__
34#define __PLATFORM_H__
35
36#include "ade9000.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
60/* Configuration for AD-APARD32690-SL */
61// Port and Pin for user LED
62#define GPIO_LED_PORT 2
63#define GPIO_LED_PIN 1
64#define GPIO_OPS &max_gpio_ops
65#define GPIO_EXTRA &ade9000_gpio_extra_ip
66// SPI config
67#define SPI_DEVICE_ID 1
68#define SPI_BAUDRATE 1000000
69#define SPI_CS 0
70#define SPI_SLAVE_NUM 1
71// UART config
72#define UART_DEV_ID 0
73#define UART_BAUD 115200
74
75#define RESET_TIME 500
76// Read data interval in ms
77#define READ_INTERVAL 3000
78
79#endif // __PLATFORM_H__
Header file of ADE9000 Driver.
struct no_os_uart_init_param uart_ip
Definition common_data.c:52
struct no_os_gpio_init_param gpio_led1_ip
Definition platform.c:65
struct no_os_spi_init_param ade9000_spi_ip
Definition platform.c:74
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