BLE_BlueNRG for Nucleo board
Dependents: Nucleo_BLE_HeartRate Nucleo_BLE_UART Nucleo_BLE_UART
Warning: Deprecated!
Supported drivers and applications can be found at this link.
platform/inc/bluenrg_shield_bsp.h@0:a948f5f3904c, 2014-12-19 (annotated)
- Committer:
- sjallouli
- Date:
- Fri Dec 19 18:56:07 2014 +0000
- Revision:
- 0:a948f5f3904c
BLE_BlueNRG for Nucleo board
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sjallouli | 0:a948f5f3904c | 1 | |
sjallouli | 0:a948f5f3904c | 2 | #ifndef __BLUENRG_SHIELD_BRP_H_ |
sjallouli | 0:a948f5f3904c | 3 | #define __BLUENRG_SHIELD_BRP_H_ |
sjallouli | 0:a948f5f3904c | 4 | |
sjallouli | 0:a948f5f3904c | 5 | /* Includes ------------------------------------------------------------------*/ |
sjallouli | 0:a948f5f3904c | 6 | #include <stdint.h> |
sjallouli | 0:a948f5f3904c | 7 | #include "gp_timer.h" |
sjallouli | 0:a948f5f3904c | 8 | |
sjallouli | 0:a948f5f3904c | 9 | // SPI Instance |
sjallouli | 0:a948f5f3904c | 10 | #define BNRG_SPI_INSTANCE 0x1234 //((uint32_t)(0x40013000)) //Peripheral base Address of SPI1 |
sjallouli | 0:a948f5f3904c | 11 | |
sjallouli | 0:a948f5f3904c | 12 | /* Exported functions --------------------------------------------------------*/ |
sjallouli | 0:a948f5f3904c | 13 | void BNRG_SPI_Init(void); |
sjallouli | 0:a948f5f3904c | 14 | void BlueNRG_RST(void); |
sjallouli | 0:a948f5f3904c | 15 | int32_t BlueNRG_SPI_Read_All(uint8_t *buffer, |
sjallouli | 0:a948f5f3904c | 16 | uint8_t buff_size); |
sjallouli | 0:a948f5f3904c | 17 | int32_t BlueNRG_SPI_Write(uint8_t* data1, |
sjallouli | 0:a948f5f3904c | 18 | uint8_t* data2, |
sjallouli | 0:a948f5f3904c | 19 | uint8_t Nb_bytes1, |
sjallouli | 0:a948f5f3904c | 20 | uint8_t Nb_bytes2); |
sjallouli | 0:a948f5f3904c | 21 | void Hal_Write_Serial(const void* data1, const void* data2, int32_t n_bytes1, int32_t n_bytes2); |
sjallouli | 0:a948f5f3904c | 22 | void Enable_SPI_IRQ(void); |
sjallouli | 0:a948f5f3904c | 23 | void Disable_SPI_IRQ(void); |
sjallouli | 0:a948f5f3904c | 24 | void Clear_SPI_IRQ(void); |
sjallouli | 0:a948f5f3904c | 25 | void Clear_SPI_EXTI_Flag(void); |
sjallouli | 0:a948f5f3904c | 26 | |
sjallouli | 0:a948f5f3904c | 27 | #endif //_BLUENRG_SHIELD_BRP_H_ |
sjallouli | 0:a948f5f3904c | 28 |