no-OS
Toggle main menu visibility
Main Page
Related Pages
Structures
Structure List
Structure Index
Files
File List
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
projects
eval-ade7913
src
platform
platform.h
Go to the documentation of this file.
1
/***************************************************************************/
33
#ifndef __PLATFORM_H__
34
#define __PLATFORM_H__
35
36
#include "
ade7913.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
/* Configuration for AD-APARD32690-SL */
54
// Port and pin for user LED
55
#define GPIO_LED_PORT 2
56
#define GPIO_LED_PIN 1
57
#define GPIO_OPS &max_gpio_ops
58
#define GPIO_EXTRA &ade9153_gpio_extra_ip
59
// Data ready pin
60
#define GPIO_RDY_PORT 2
61
#define GPIO_RDY_PIN 10
62
// SPI config
63
#define SPI_DEVICE_ID 1
64
#define SPI_BAUDRATE 1000000
65
#define SPI_CS0 0
66
#define SPI_CS1 1
67
#define SPI_CS2 2
68
#define SPI_SLAVE_NUM 3
69
// UART config
70
#define UART_DEV_ID 0
71
#define UART_BAUD 115200
72
// IRQ config
73
#define GPIO_IRQ_OPS &max_gpio_irq_ops
74
#define GPIO_CTRL_IRQ_ID 0
75
#define GPIO_IRQ_EXTRA &ade7913_gpio_extra_ip
76
#define NVIC_GPIO_IRQ GPIO2_IRQn
77
78
// Init NVIC
79
int
init_nvic
(
struct
no_os_irq_ctrl_desc
*
ade7913_nvic_desc
);
80
81
#endif
/* __PLATFORM_H__ */
ade7913.h
Header file of ADE7913 Driver.
ade7913_nvic_desc
struct no_os_irq_ctrl_desc * ade7913_nvic_desc
Definition
main.c:54
init_nvic
int init_nvic(struct no_os_irq_ctrl_desc *ade7913_nvic_desc)
Init NVIC.
Definition
platform.c:127
no_os_delay.h
Header file of Delay functions.
no_os_error.h
Error codes definition.
no_os_gpio.h
Header file of GPIO Interface.
no_os_print_log.h
Print messages helpers.
no_os_pwm.h
Header file of PWM Interface.
no_os_spi.h
Header file of SPI Interface.
no_os_uart.h
Header file of UART interface.
no_os_units.h
Header file of Units.
no_os_util.h
Header file of utility functions.
no_os_irq_ctrl_desc
Definition
no_os_irq.h:117
Generated by
1.13.2