Skip to content

Commit

Permalink
Due can't use SPI_PTR; delete ATXMEGA/readme.md
Browse files Browse the repository at this point in the history
(use docs/atxmega.md instead)
  • Loading branch information
2bndy5 committed Mar 21, 2021
1 parent c0b4794 commit 340f319
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 61 deletions.
9 changes: 4 additions & 5 deletions docs/atxmega.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:<br>
@note
The millisecond functionality is based on the TCE0 so don't use these pins as IO.<br>
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.
54 changes: 0 additions & 54 deletions utility/ATXMegaD3/README.md

This file was deleted.

3 changes: 1 addition & 2 deletions utility/Due/RF24_arch_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
#include <SPI.h>

#define _BV(x) (1<<(x))
#define _SPI SPIClass
#define RF24_SPI_PTR
#define _SPI SPI

#ifdef SERIAL_DEBUG
#define IF_SERIAL_DEBUG(x) ({x;})
Expand Down

0 comments on commit 340f319

Please sign in to comment.