| BlueNRG-1 SDK drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

USER_Platform_Configuration.h
Go to the documentation of this file.
1
22 /* Define to prevent recursive inclusion -------------------------------------*/
23 #ifndef __USER_PLATFORM_CONFIGURATION_H
24 #define __USER_PLATFORM_CONFIGURATION_H
25
26 /* Includes ------------------------------------------------------------------*/
27 #include "BlueNRG1.h"
28 #include "BlueNRG1_conf.h"
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34
35
39 #define PUSH_BUTTON1_PIN GPIO_Pin_13
40 #define PUSH_BUTTON2_PIN GPIO_Pin_5
41
42
46 #define SDK_EVAL_UART_TX_PIN GPIO_Pin_8
47 #define SDK_EVAL_UART_TX_MODE Serial1_Mode
48
49 #define SDK_EVAL_UART_RX_PIN GPIO_Pin_11
50 #define SDK_EVAL_UART_RX_MODE Serial1_Mode
51
52
56 #define SDK_EVAL_I2C I2C2
57
58 #define SDK_EVAL_I2C_DATA_PIN GPIO_Pin_5
59 #define SDK_EVAL_I2C_DATA_MODE Serial0_Mode
60
61 #define SDK_EVAL_I2C_CLK_PIN GPIO_Pin_4
62 #define SDK_EVAL_I2C_CLK_MODE Serial0_Mode
63
64 #define SDK_EVAL_I2C_IRQ_HANDLER I2C2_Handler
65
66 #define SDK_EVAL_I2C_DMA_TX DMA_CH7
67 #define SDK_EVAL_I2C_DMA_TX_ITTC DMA_FLAG_TC7
68
69 #define SDK_EVAL_I2C_DMA_RX DMA_CH6
70 #define SDK_EVAL_I2C_DMA_RX_ITTC DMA_FLAG_TC6
71
72 #define SDK_EVAL_I2C_BASE I2C2_BASE
73
74
78 #define SDK_EVAL_LED1_PIN GPIO_Pin_6
79 #define SDK_EVAL_LED2_PIN GPIO_Pin_7
80 #define SDK_EVAL_LED3_PIN GPIO_Pin_14
81
82
83
87 #define SDK_EVAL_SPI_PERIPH_SENSOR_PIN GPIO_Pin_1
88 #define SDK_EVAL_SPI_PERIPH_SENSOR_MODE Serial0_Mode
89
90 #define SDK_EVAL_SPI_PERIPH_MOSI_PIN GPIO_Pin_2
91 #define SDK_EVAL_SPI_PERIPH_MOSI_MODE Serial0_Mode
92
93 #define SDK_EVAL_SPI_PERIPH_MISO_PIN GPIO_Pin_3
94 #define SDK_EVAL_SPI_PERIPH_MISO_MODE Serial0_Mode
95
96 #define SDK_EVAL_SPI_PERIPH_SCLK_PIN GPIO_Pin_0
97 #define SDK_EVAL_SPI_PERIPH_SCLK_MODE Serial0_Mode
98
99 #define SDK_EVAL_IRQ_SENSOR_PIN GPIO_Pin_12
100
101
102 #ifdef __cplusplus
103 }
104 #endif
105
106 #endif /* __USER_PLATFORM_CONFIGURATION_H */
107
108 /******************* (C) COPYRIGHT 2015 STMicroelectronics *****END OF FILE****/