no-OS
platform.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef __PLATFORM_H__
34 #define __PLATFORM_H__
35 
36 /******************************************************************************/
37 /***************************** Include Files **********************************/
38 /******************************************************************************/
39 #include "ade9000.h"
40 #include "no_os_uart.h"
41 #include "no_os_pwm.h"
42 #include "no_os_delay.h"
43 #include "no_os_gpio.h"
44 #include "no_os_spi.h"
45 #include "no_os_print_log.h"
46 #include "no_os_units.h"
47 #include "no_os_util.h"
48 #include "no_os_error.h"
49 #include "maxim_uart.h"
50 #include "maxim_gpio.h"
51 #include "maxim_uart_stdio.h"
52 #include "maxim_pwm.h"
53 #include "maxim_spi.h"
54 #include "maxim_irq.h"
55 
56 /******************************************************************************/
57 /********************** Macros and Constants Definitions **********************/
58 /******************************************************************************/
59 
60 // UART init params
61 extern struct no_os_uart_init_param uart_ip;
62 // GPIO LED init params
64 // SPI init params
66 
67 /* Configuration for AD-APARD32690-SL */
68 // Port and Pin for user LED
69 #define GPIO_LED_PORT 2
70 #define GPIO_LED_PIN 1
71 #define GPIO_OPS &max_gpio_ops
72 #define GPIO_EXTRA &ade9000_gpio_extra_ip
73 // SPI config
74 #define SPI_DEVICE_ID 1
75 #define SPI_BAUDRATE 1000000
76 #define SPI_CS 0
77 #define SPI_SLAVE_NUM 1
78 // UART config
79 #define UART_DEV_ID 0
80 #define UART_BAUD 115200
81 
82 #define RESET_TIME 500
83 // Read data interval in ms
84 #define READ_INTERVAL 3000
85 
86 #endif // __PLATFORM_H__
no_os_gpio_init_param
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
gpio_led1_ip
struct no_os_gpio_init_param gpio_led1_ip
Definition: platform.c:68
no_os_spi.h
Header file of SPI Interface.
no_os_units.h
Header file of Units.
no_os_delay.h
Header file of Delay functions.
no_os_print_log.h
Print messages helpers.
ade9000_spi_ip
struct no_os_spi_init_param ade9000_spi_ip
Definition: platform.c:81
no_os_error.h
Error codes definition.
ade9000.h
Header file of ADE9000 Driver.
no_os_pwm.h
Header file of PWM Interface.
no_os_uart_init_param
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:110
uart_ip
struct no_os_uart_init_param uart_ip
Definition: common_data.c:52
no_os_gpio.h
Header file of GPIO Interface.
no_os_uart.h
Header file of UART interface.
no_os_util.h
Header file of utility functions.
no_os_spi_init_param
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140