Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Nucleo_BLE_HeartRate Nucleo_BLE_UART Nucleo_BLE_UART
bluenrg_shield_bsp.h
00001 00002 #ifndef __BLUENRG_SHIELD_BRP_H_ 00003 #define __BLUENRG_SHIELD_BRP_H_ 00004 00005 /* Includes ------------------------------------------------------------------*/ 00006 #include <stdint.h> 00007 #include "gp_timer.h" 00008 00009 // SPI Instance 00010 #define BNRG_SPI_INSTANCE 0x1234 //((uint32_t)(0x40013000)) //Peripheral base Address of SPI1 00011 00012 /* Exported functions --------------------------------------------------------*/ 00013 void BNRG_SPI_Init(void); 00014 void BlueNRG_RST(void); 00015 int32_t BlueNRG_SPI_Read_All(uint8_t *buffer, 00016 uint8_t buff_size); 00017 int32_t BlueNRG_SPI_Write(uint8_t* data1, 00018 uint8_t* data2, 00019 uint8_t Nb_bytes1, 00020 uint8_t Nb_bytes2); 00021 void Hal_Write_Serial(const void* data1, const void* data2, int32_t n_bytes1, int32_t n_bytes2); 00022 void Enable_SPI_IRQ(void); 00023 void Disable_SPI_IRQ(void); 00024 void Clear_SPI_IRQ(void); 00025 void Clear_SPI_EXTI_Flag(void); 00026 00027 #endif //_BLUENRG_SHIELD_BRP_H_ 00028
Generated on Wed Jul 13 2022 04:47:13 by
1.7.2