
An implementation to use for nrf24 with STM32F303RE.
Revision 2:4e8ad65c48b4, committed 2021-01-20
- Comitter:
- amouroug
- Date:
- Wed Jan 20 04:15:24 2021 +0000
- Parent:
- 1:5be2682710c6
- Commit message:
- STM32F303Re nRF24 Integration;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Jan 19 23:53:19 2011 +0000 +++ b/main.cpp Wed Jan 20 04:15:24 2021 +0000 @@ -3,7 +3,7 @@ Serial pc(USBTX, USBRX); // tx, rx -nRF24L01P my_nrf24l01p(p5, p6, p7, p8, p9, p10); // mosi, miso, sck, csn, ce, irq +nRF24L01P my_nrf24l01p(PB_15, PB_14, PB_13, PB_1, PB_2, PC_4); // mosi, miso, sck, csn, ce, irq DigitalOut myled1(LED1); DigitalOut myled2(LED2); @@ -13,12 +13,12 @@ // The nRF24L01+ supports transfers from 1 to 32 bytes, but Sparkfun's // "Nordic Serial Interface Board" (http://www.sparkfun.com/products/9019) // only handles 4 byte transfers in the ATMega code. -#define TRANSFER_SIZE 4 +#define TRANSFER_SIZE 1 char txData[TRANSFER_SIZE], rxData[TRANSFER_SIZE]; int txDataCnt = 0; int rxDataCnt = 0; - + my_nrf24l01p.powerUp(); // Display the (default) setup of the nRF24L01+ chip
--- a/mbed.bld Wed Jan 19 23:53:19 2011 +0000 +++ b/mbed.bld Wed Jan 20 04:15:24 2021 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file