no-OS
projects
cn0565
src
app
parameters.h
Go to the documentation of this file.
1
/***************************************************************************/
33
#ifndef __PARAMETERS_H__
34
#define __PARAMETERS_H__
35
36
#if defined(ADUCM_PLATFORM)
37
#include "
aducm3029_irq.h
"
38
#include "
aducm3029_gpio_irq.h
"
39
40
#define SPI_DEVICE_ID 0
41
#define SPI_CS 1
42
#define INTC_DEVICE_ID ADUCM_GPIO_B_GROUP_SOFT_CTRL
43
#define UART_DEVICE_ID 0
44
#define UART_IRQ_ID ADUCM_UART_INT_ID
45
#define UART_BAUDRATE 230400
46
#define I2C_DEVICE_ID 0
47
#define I2C_BAUDRATE 100000
48
#define RESET_PIN 13 // 0.13
49
#define GP0_PIN 15 // 0.15
50
#define INT_IRQn GP0_PIN
51
#define UART_OPS &aducm_uart_ops
52
#define IRQ_OPS &aducm_irq_ops
53
#define GPIO_IRQ_OPS &aducm_gpio_irq_ops
54
55
#elif defined(STM32_PLATFORM)
56
#include "
stm32_hal.h
"
57
58
#define SPI_DEVICE_ID 1
59
#define SPI_CS 15
60
#define SPI_CS_PORT 0
61
#define INTC_DEVICE_ID 0
62
#define INT_IRQn EXTI9_5_IRQn
63
#define UART_DEVICE_ID 5
64
#define UART_IRQ_ID UART5_IRQn
65
#define UART_OPS &stm32_uart_ops
66
#define IRQ_OPS &stm32_irq_ops
67
#define GPIO_IRQ_OPS &stm32_gpio_irq_ops
68
#ifdef IIO_SUPPORT
69
extern
UART_HandleTypeDef
huart5
;
70
#endif
71
#define IIO_APP_HUART &huart5
72
#define UART_BAUDRATE 230400
73
#define I2C_DEVICE_ID 1
74
#define I2C_BAUDRATE 100000
75
76
#define RESET_PIN 12 // D.12
77
#define GP0_PIN 7 // G.7
78
#endif
79
80
#endif // __PARAMETERS_H__
aducm3029_gpio_irq.h
Header file of GPIO IRQ interface for ADuCM3029 platform.
aducm3029_irq.h
Header file of IRQ driver for ADuCM302x.
huart5
UART_HandleTypeDef huart5
stm32_hal.h
Generated by
1.8.17