| BlueNRG-1 SDK drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

SDK_EVAL_Config.h
Go to the documentation of this file.
1
27 /* Define to prevent recursive inclusion -------------------------------------*/
28 #ifndef __SDK_EVAL_CONFIG_H
29 #define __SDK_EVAL_CONFIG_H
30
31 /* Includes ------------------------------------------------------------------*/
32
33 /* Number of supported BlueNRG Development Kit platforms */
34 #define SDK_PLATFORMS_NUMBER (1)
35
36
37 /* BlueNRG1 Development platform: STEVAL-IDB007VX */
38 #define STEVAL_IDB007VX 0
39 /* BlueNRG1 Development platform: STEVAL-IDB007V1 */
40 #define STEVAL_IDB007V1 1
41 /* User defined platform */
42 #define USER_EVAL_PLATFORM 2
43
44
45 #ifndef USER_DEFINED_PLATFORM
46 #define USER_DEFINED_PLATFORM STEVAL_IDB007VX
47 #endif
48
49 #if USER_DEFINED_PLATFORM == USER_EVAL_PLATFORM
50 /* Adding the symbol USER_DEFINED_PLATFORM=USER_EVAL_PLATFORM
51 * An user platform can be supported, at compile time, by following these steps:
52 *
53 * 1) Create a file "USER_Platform_Configuration.h" with specific user
54 * platform configuration (USER_Platform_Configuration_STEVAL_IDB007V1.h can be used as reference).
55 * 2) Place the "USER_Platform_Configuration.h" on the
56 * SDK_Eval_BlueNRG1\inc folder.
57 * 3) On the selected EWARM workspace preprocessor options, add this define:
58 * USER_DEFINED_PLATFORM=USER_EVAL_PLATFORM
59 */
60 #include "USER_Platform_Configuration.h"
61 #elif USER_DEFINED_PLATFORM == STEVAL_IDB007V1
62 /* Adding the symbol USER_DEFINED_PLATFORM=STEVAL_IDB007V1
63 * only the STEVAL-IDB007V1 is supported
64 */
65 #include "USER_Platform_Configuration_STEVAL_IDB007V1.h"
66 #else
67 /* This is the header file used for BlueNRG1 kits platforms auto configuration
68 performed at runtime: user must not change it */
69 #include "USER_Platform_Configuration_auto.h"
70 #endif
71
72
73 #include "SDK_EVAL_Button.h"
74 #include "SDK_EVAL_Com.h"
75 #include "SDK_EVAL_I2C.h"
76 #include "SDK_EVAL_Led.h"
77 #include "SDK_EVAL_SPI.h"
78
79
80 #ifdef __cplusplus
81 extern "C" {
82 #endif
83
116 enum {
117 ID_UNKNOWN = 0, /* BlueNRG-1 board not identified */
118 ID_STEVAL_IDB007V1, /* BlueNRG-1 Development platform: STEVAL-IDB007V1 */
119 };
120
130 void SdkEvalIdentification(void);
131 uint8_t SdkEvalGetVersion(void);
132
147 #ifdef __cplusplus
148 }
149 #endif
150
151 #endif
152
153 /******************* (C) COPYRIGHT 2015 STMicroelectronics *****END OF FILE****/
SDK_EVAL_Com.h
This file provides all the low level API to manage UART interface for eval board. ...
SDK_EVAL_SPI.h
This file provides all the low level API to manage SPI interface for eval board.
ID_STEVAL_IDB007V1
Definition: SDK_EVAL_Config.h:118
SDK_EVAL_Button.h
This file provides all the low level API to manage buttons for eval board.
USER_Platform_Configuration_auto.h
This file contains definitions for BlueNRG1 kits platforms with auto identification.
ID_UNKNOWN
Definition: SDK_EVAL_Config.h:117
SDK_EVAL_Led.h
This file provides all the low level API to manage LEDs for eval board.
USER_Platform_Configuration.h
This file contains definitions for BlueNRG-1 Eval Platform.
SDK_EVAL_I2C.h
This file provides all the low level API to manage I2C interface for eval board.
SdkEvalIdentification
void SdkEvalIdentification(void)
Identify the version of the current BlueNRG1 platform.
Definition: SDK_EVAL_Config.c:157
USER_Platform_Configuration_STEVAL_IDB007V1.h
This file contains definitions for STEVAL IDB007V1 Eval Platform.
SdkEvalGetVersion
uint8_t SdkEvalGetVersion(void)
Returns the version of the current BlueNRG1 platform.
Definition: SDK_EVAL_Config.c:177