|
TM STM32F4xx Libraries
v1.0.0
Libraries for STM32F4xx devices from Tilen Majerle
|
nRF24L01+ library for STM32F4xx devices - http://stm32f4-discovery.com/2014/06/library-17-nrf24l01-stm32f4xx/ More...
Modules | |
| TM_NRF24L01P_Macros | |
| Library defines. | |
| TM_NRF24L01P_Typedefs | |
| Library Typedefs. | |
| TM_NRF24L01P_Functions | |
| Library Functions. | |
nRF24L01+ library for STM32F4xx devices - http://stm32f4-discovery.com/2014/06/library-17-nrf24l01-stm32f4xx/
This library allows you to work with nRF24L01+ modules.
You can send and receive data from nRF24L01+ modules.
NRF24L01+ STM32F4xx DESCRIPTION GND GND Ground VCC 3.3V 3.3V CE PD8 RF activated pin CSN PD7 Chip select pin for SPI SCK PC10 SCK pin for SPI MOSI PC12 MOSI pin for SPI MISO PC11 MISO pin for SPI IRQ Not used Interrupt pin. Goes low when active. Pin functionality is active, but not used in library
IRQ pin is not used in this library, but it's functionality is enabled by this software.
You can still set any pin on F4xx to be an external interrupt and handle interrupts from nRF24L01+ module.
The easiest way to that is to use TM EXTI library and attach interrupt functionality to this pin
Add lines below in your defines.h file if you want to change default pinout:
//Change SPI used. Refer to TM SPI library to check which pins are for SPI #define NRF24L01_SPI SPI3 #define NRF24L01_SPI_PINS TM_SPI_PinsPack_2 //Change CSN pin. This is for SPI communication #define NRF24L01_CSN_PORT GPIOD #define NRF24L01_CSN_PIN GPIO_Pin_7 //Change CE pin. This pin is used to enable/disable transmitter/receiver functionality #define NRF24L01_CE_PORT GPIOD #define NRF24L01_CE_PIN GPIO_Pin_8
Versio 1.1.1 - June 21, 2015 - Fixed buf with pin configuration Version 1.1 - March 11, 2015 - Added support for my new GPIO system Version 1.0.1 - December 14, 2014 - Activated all 3 interrupts in NRF24L01+ Version 1.0 - First release
- STM32F4xx - defines.h - TM SPI - TM GPIO