Fork of BlueNRG library to be compatible with bluetooth demo application
Dependents: Nucleo_BLE_Demo Nucleo_BLE_Demo
Fork of Nucleo_BLE_BlueNRG by
Diff: platform/inc/bluenrg_shield_bsp.h
- Revision:
- 0:a948f5f3904c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/platform/inc/bluenrg_shield_bsp.h Fri Dec 19 18:56:07 2014 +0000 @@ -0,0 +1,28 @@ + +#ifndef __BLUENRG_SHIELD_BRP_H_ +#define __BLUENRG_SHIELD_BRP_H_ + +/* Includes ------------------------------------------------------------------*/ +#include <stdint.h> +#include "gp_timer.h" + +// SPI Instance +#define BNRG_SPI_INSTANCE 0x1234 //((uint32_t)(0x40013000)) //Peripheral base Address of SPI1 + +/* Exported functions --------------------------------------------------------*/ +void BNRG_SPI_Init(void); +void BlueNRG_RST(void); +int32_t BlueNRG_SPI_Read_All(uint8_t *buffer, + uint8_t buff_size); +int32_t BlueNRG_SPI_Write(uint8_t* data1, + uint8_t* data2, + uint8_t Nb_bytes1, + uint8_t Nb_bytes2); +void Hal_Write_Serial(const void* data1, const void* data2, int32_t n_bytes1, int32_t n_bytes2); +void Enable_SPI_IRQ(void); +void Disable_SPI_IRQ(void); +void Clear_SPI_IRQ(void); +void Clear_SPI_EXTI_Flag(void); + +#endif //_BLUENRG_SHIELD_BRP_H_ +