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.
Fork of Nucleo_BLE_BlueNRG by
platform/inc/bluenrg_shield_bsp.h@3:104f1bba39ca, 2016-01-03 (annotated)
- Committer:
- sjallouli
- Date:
- Sun Jan 03 16:05:38 2016 +0000
- Revision:
- 3:104f1bba39ca
- Parent:
- 0:a948f5f3904c
test
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 |
