| BlueNRG-1 SDK drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

USER_Platform_Configuration_auto.h
Go to the documentation of this file.
1
22 /* Define to prevent recursive inclusion -------------------------------------*/
23 #ifndef __USER_PLATFORM_CONFIGURATION_AUTO_H
24 #define __USER_PLATFORM_CONFIGURATION_AUTO_H
25
26 /* Includes ------------------------------------------------------------------*/
27 #include "BlueNRG1.h"
28 #include "BlueNRG1_conf.h"
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34
39 extern const uint32_t s_vectnButtonPinVersion[][2];
40
41 #define PUSH_BUTTON1_PIN s_vectnButtonPinVersion[SdkEvalGetVersion()-1][0]
42 #define PUSH_BUTTON2_PIN s_vectnButtonPinVersion[SdkEvalGetVersion()-1][1]
43
44
48 extern const uint32_t s_UartTxPinVersion[];
49 extern const uint32_t s_UartTxModeVersion[];
50 extern const uint32_t s_UartRxPinVersion[];
51 extern const uint32_t s_UartRxModeVersion[];
52
53 #define SDK_EVAL_UART_TX_PIN s_UartTxPinVersion[SdkEvalGetVersion()-1]
54 #define SDK_EVAL_UART_TX_MODE s_UartTxModeVersion[SdkEvalGetVersion()-1]
55
56 #define SDK_EVAL_UART_RX_PIN s_UartRxPinVersion[SdkEvalGetVersion()-1]
57 #define SDK_EVAL_UART_RX_MODE s_UartRxModeVersion[SdkEvalGetVersion()-1]
58
59
63 extern const I2C_Type* s_I2cPeripheralVersion[];
64 extern const uint32_t s_I2cDataPinVersion[];
65 extern const uint32_t s_I2cDataModeVersion[];
66 extern const uint32_t s_I2cClkPinVersion[];
67 extern const uint32_t s_I2cClkPinModeVersion[];
68
69 extern const DMA_CH_Type* s_I2cDataDmaTxVersion[];
70 extern const DMA_CH_Type* s_I2cDataDmaRxVersion[];
71 extern const uint32_t s_I2cDataDmaTxTcVersion[];
72 extern const uint32_t s_I2cDataDmaRxTcVersion[];
73
74 extern const uint32_t s_I2CBaseVersion[];
75
76 #define SDK_EVAL_I2C s_I2cPeripheralVersion[SdkEvalGetVersion()-1]
77
78 #define SDK_EVAL_I2C_DATA_PIN s_I2cDataPinVersion[SdkEvalGetVersion()-1]
79 #define SDK_EVAL_I2C_DATA_MODE s_I2cDataModeVersion[SdkEvalGetVersion()-1]
80
81 #define SDK_EVAL_I2C_CLK_PIN s_I2cClkPinVersion[SdkEvalGetVersion()-1]
82 #define SDK_EVAL_I2C_CLK_MODE s_I2cClkPinModeVersion[SdkEvalGetVersion()-1]
83
84 #define SDK_EVAL_I2C_DMA_TX s_I2cDataDmaTxVersion[SdkEvalGetVersion()-1]
85 #define SDK_EVAL_I2C_DMA_TX_ITTC s_I2cDataDmaTxTcVersion[SdkEvalGetVersion()-1]
86
87 #define SDK_EVAL_I2C_DMA_RX s_I2cDataDmaRxVersion[SdkEvalGetVersion()-1]
88 #define SDK_EVAL_I2C_DMA_RX_ITTC s_I2cDataDmaRxTcVersion[SdkEvalGetVersion()-1]
89
90 #define SDK_EVAL_I2C_BASE s_I2CBaseVersion[SdkEvalGetVersion()-1]
91
95 extern const uint32_t s_vectnGpioPinVersion[][3];
96
97 #define SDK_EVAL_LED1_PIN s_vectnGpioPinVersion[SdkEvalGetVersion()-1][0]
98 #define SDK_EVAL_LED2_PIN s_vectnGpioPinVersion[SdkEvalGetVersion()-1][1]
99 #define SDK_EVAL_LED3_PIN s_vectnGpioPinVersion[SdkEvalGetVersion()-1][2]
100
101
102
106 extern const uint32_t s_SpiCs1PinVersion[];
107 extern const uint32_t s_SpiCs1ModeVersion[];
108 extern const uint32_t s_SpiCs2PinVersion[];
109 extern const uint32_t s_SpiCs2ModeVersion[];
110 extern const uint32_t s_SpiMosiPinVersion[];
111 extern const uint32_t s_SpiMosiModeVersion[];
112 extern const uint32_t s_SpiMisoPinVersion[];
113 extern const uint32_t s_SpiMisoModeVersion[];
114 extern const uint32_t s_SpiSclkPinVersion[];
115 extern const uint32_t s_SpiSclkModeVersion[];
116 extern const uint32_t s_SpiIrqSensorPinVersion[];
117
118 #define SDK_EVAL_SPI_PERIPH_SENSOR_PIN s_SpiCs1PinVersion[SdkEvalGetVersion()-1]
119 #define SDK_EVAL_SPI_PERIPH_SENSOR_MODE s_SpiCs1ModeVersion[SdkEvalGetVersion()-1]
120
121 #define SDK_EVAL_SPI_PERIPH_MOSI_PIN s_SpiMosiPinVersion[SdkEvalGetVersion()-1]
122 #define SDK_EVAL_SPI_PERIPH_MOSI_MODE s_SpiMosiModeVersion[SdkEvalGetVersion()-1]
123
124 #define SDK_EVAL_SPI_PERIPH_MISO_PIN s_SpiMisoPinVersion[SdkEvalGetVersion()-1]
125 #define SDK_EVAL_SPI_PERIPH_MISO_MODE s_SpiMisoModeVersion[SdkEvalGetVersion()-1]
126
127 #define SDK_EVAL_SPI_PERIPH_SCLK_PIN s_SpiSclkPinVersion[SdkEvalGetVersion()-1]
128 #define SDK_EVAL_SPI_PERIPH_SCLK_MODE s_SpiSclkModeVersion[SdkEvalGetVersion()-1]
129
130 #define SDK_EVAL_IRQ_SENSOR_PIN s_SpiIrqSensorPinVersion[SdkEvalGetVersion()-1]
131
132
133 #ifdef __cplusplus
134 }
135 #endif
136
137 #endif /* __USER_PLATFORM_CONFIGURATION_AUTO_H */
138
139 /******************* (C) COPYRIGHT 2015 STMicroelectronics *****END OF FILE****/
s_I2cClkPinModeVersion
const uint32_t s_I2cClkPinModeVersion[]
Definition: SDK_EVAL_Config.c:94
s_SpiMisoPinVersion
const uint32_t s_SpiMisoPinVersion[]
Definition: SDK_EVAL_Config.c:120
s_UartRxModeVersion
const uint32_t s_UartRxModeVersion[]
Definition: SDK_EVAL_Config.c:84
s_I2cDataDmaTxVersion
const DMA_CH_Type * s_I2cDataDmaTxVersion[]
Definition: SDK_EVAL_Config.c:96
s_vectnGpioPinVersion
const uint32_t s_vectnGpioPinVersion[][3]
BlueNRG1 Eval Board (STEVAL-IDB007VX) LEDs definitions.
Definition: SDK_EVAL_Config.c:107
s_I2cPeripheralVersion
const I2C_Type * s_I2cPeripheralVersion[]
BlueNRG1 Eval Board (STEVAL-IDB007VX) I2C definitions.
Definition: SDK_EVAL_Config.c:90
s_vectnButtonPinVersion
const uint32_t s_vectnButtonPinVersion[][2]
BlueNRG1 Eval Board (STEVAL-IDB007VX) Buttons definitions.
Definition: SDK_EVAL_Config.c:75
s_SpiCs2PinVersion
const uint32_t s_SpiCs2PinVersion[]
Definition: SDK_EVAL_Config.c:116
s_I2cDataModeVersion
const uint32_t s_I2cDataModeVersion[]
Definition: SDK_EVAL_Config.c:92
s_SpiMosiModeVersion
const uint32_t s_SpiMosiModeVersion[]
Definition: SDK_EVAL_Config.c:119
s_SpiSclkModeVersion
const uint32_t s_SpiSclkModeVersion[]
Definition: SDK_EVAL_Config.c:123
s_SpiIrqSensorPinVersion
const uint32_t s_SpiIrqSensorPinVersion[]
BlueNRG1 Eval Board (STEVAL-IDB007V1) sensor IRQ definitions.
Definition: SDK_EVAL_Config.c:128
s_SpiCs2ModeVersion
const uint32_t s_SpiCs2ModeVersion[]
Definition: SDK_EVAL_Config.c:117
s_I2cDataDmaTxTcVersion
const uint32_t s_I2cDataDmaTxTcVersion[]
Definition: SDK_EVAL_Config.c:100
s_I2CBaseVersion
const uint32_t s_I2CBaseVersion[]
Definition: SDK_EVAL_Config.c:102
s_UartTxModeVersion
const uint32_t s_UartTxModeVersion[]
Definition: SDK_EVAL_Config.c:82
s_I2cDataDmaRxTcVersion
const uint32_t s_I2cDataDmaRxTcVersion[]
Definition: SDK_EVAL_Config.c:97
s_I2cClkPinVersion
const uint32_t s_I2cClkPinVersion[]
Definition: SDK_EVAL_Config.c:93
s_SpiCs1ModeVersion
const uint32_t s_SpiCs1ModeVersion[]
Definition: SDK_EVAL_Config.c:115
s_I2cDataPinVersion
const uint32_t s_I2cDataPinVersion[]
Definition: SDK_EVAL_Config.c:91
s_SpiSclkPinVersion
const uint32_t s_SpiSclkPinVersion[]
Definition: SDK_EVAL_Config.c:122
s_SpiMosiPinVersion
const uint32_t s_SpiMosiPinVersion[]
Definition: SDK_EVAL_Config.c:118
s_UartTxPinVersion
const uint32_t s_UartTxPinVersion[]
BlueNRG1 Eval Board (STEVAL-IDB007VX) UART definitions.
Definition: SDK_EVAL_Config.c:81
s_I2cDataDmaRxVersion
const DMA_CH_Type * s_I2cDataDmaRxVersion[]
Definition: SDK_EVAL_Config.c:99
s_SpiMisoModeVersion
const uint32_t s_SpiMisoModeVersion[]
Definition: SDK_EVAL_Config.c:121
s_SpiCs1PinVersion
const uint32_t s_SpiCs1PinVersion[]
BlueNRG1 Eval Board (STEVAL-IDB007VX) SPI definitions.
Definition: SDK_EVAL_Config.c:114
s_UartRxPinVersion
const uint32_t s_UartRxPinVersion[]
Definition: SDK_EVAL_Config.c:83