diff --git a/docs/atxmega.md b/docs/atxmega.md index 248ba300e..d1ebf61e6 100644 --- a/docs/atxmega.md +++ b/docs/atxmega.md @@ -40,12 +40,11 @@ ISR(TCE0_OVF_vect) ``` Declare the rf24 radio with `RF24 radio(XMEGA_PORTC_PIN3, XMEGA_SPI_PORT_C);` -First parameter is the CE pin which can be any available pin on the uC. - -Second parameter is the CS which can be on port C (**XMEGA_SPI_PORT_C**) or on port D (**XMEGA_SPI_PORT_D**). +1. First parameter is the CE pin which can be any available pin on the microcontroller. +2. Second parameter is the CS which can be on port C (**XMEGA_SPI_PORT_C**) or on port D (**XMEGA_SPI_PORT_D**). Call the `__start_timer()` to start the millisecond timer. -@note Note about the millisecond functionality:
+@note The millisecond functionality is based on the TCE0 so don't use these pins as IO.
-The operating frequency of the uC is 32MHz. If you have other frequency change the TCE0 registers appropriatly in function `__start_timer()` in **compatibility.c** file for your frequency. +The operating frequency of the uC is 32MHz. If you have a different frequency, change the TCE0 registers appropriatly in function `__start_timer()` in **compatibility.c** file for your frequency. diff --git a/utility/ATXMegaD3/README.md b/utility/ATXMegaD3/README.md deleted file mode 100644 index 6b704fa71..000000000 --- a/utility/ATXMegaD3/README.md +++ /dev/null @@ -1,54 +0,0 @@ -This is a fork from **http://nRF24.github.io/RF24** which can be build as a static library for Atmel Studio 7. - -Not all files are needed. - -Just copy the following structure into a GCC Static Library project in AS7: -``` -utility\ - ATXMega256D3\ - compatibility.c - compatibility.h - gpio.cpp - gpio.h - gpio_helper.c - gpio_helper.h - includes.h - RF24_arch_config.h - spi.cpp - spi.h -nRF24L01.h -printf.h -RF24.cpp -RF24.h -RF24_config.h -``` - -Only ATXMega256D3 is supported right now! - -## Notes -The millisecond functionality is based on the TCE0 so don't use these pins as IO. - -The operating frequency of the uC is 32MHz. If else change the TCE0 registers appropriatly in function **__start_timer()** in **compatibility.c** file for your frequency. - - -## Usage -Add the library to your project! -In the file where the **main()** is put the following in order to update the millisecond functionality: -``` -ISR(TCE0_OVF_vect) -{ - update_milisec(); -} -``` - -Declare the rf24 radio with **RF24 radio(XMEGA_PORTC_PIN3, XMEGA_SPI_PORT_C);** - -First parameter is the CE pin which can be any available pin on the uC. - -Second parameter is the CS which can be on port C (**XMEGA_SPI_PORT_C**) or on port D (**XMEGA_SPI_PORT_D**). - -Call the **__start_timer()** to start the millisecond timer. - - - -** For further information please see http://nRF24.github.io/RF24 for all documentation** diff --git a/utility/Due/RF24_arch_config.h b/utility/Due/RF24_arch_config.h index 9a69eb155..a25670709 100644 --- a/utility/Due/RF24_arch_config.h +++ b/utility/Due/RF24_arch_config.h @@ -19,8 +19,7 @@ #include #define _BV(x) (1<<(x)) -#define _SPI SPIClass -#define RF24_SPI_PTR +#define _SPI SPI #ifdef SERIAL_DEBUG #define IF_SERIAL_DEBUG(x) ({x;})