Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform #54

Closed
wants to merge 76 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
ea86f86
Add support for jtag2updi programmer
egilkv Jul 28, 2019
a9e77e0
Merge branch 'Timers'
egilkv Jul 29, 2019
05c91dc
Fix bug in Serial.swap() - the expected bit manipulation for PORTMUX.…
egilkv Jul 29, 2019
0b8d2eb
Implement Serial.swap() so that it can also be invoked before begin(),
egilkv Jul 29, 2019
2c59a41
Merge branch 'Swap'
egilkv Jul 29, 2019
f28f0b7
Merge branch 'Programmers2' into Swap
egilkv Jul 29, 2019
66166f4
Replace Serial.swap() which has a numnber of inherent problems with a…
egilkv Jul 29, 2019
259b95f
Merge branch 'Swap'
egilkv Jul 29, 2019
caee9ab
Merge branch 'Bugs'
egilkv Jul 30, 2019
6dad150
Merge branch 'Bugs'
egilkv Jul 30, 2019
df7cf8e
Merge branch 'Bugs'
egilkv Jul 30, 2019
7a440d7
Avoid editor backup file clutter
egilkv Jul 30, 2019
0a589c9
Introduce a new method pins() that will define which set of pins we u…
egilkv Jul 30, 2019
c52588b
Implement new method pins() for Serial that defines the set of pins u…
egilkv Jul 30, 2019
cf88925
Merge branch 'Swap'
egilkv Jul 30, 2019
0187575
Update README to mention pins() instead of swap()
egilkv Jul 30, 2019
0979623
Implement choice of pins also for Wire (I2C) library.
egilkv Jul 30, 2019
784a385
Merge branch 'Swap'
egilkv Jul 30, 2019
2a22965
Implement SPI.pins() for pin swapping. Note that for old times sake
egilkv Jul 30, 2019
32d64c2
Merge branch 'Swap'
egilkv Jul 30, 2019
30ea83f
Change sequence of pins for SPI to MOSI,MISO,SCK,SS which is more
egilkv Jul 30, 2019
8b4e418
Merge branch 'Swap'
egilkv Jul 30, 2019
bdd7c83
Maintain sequence TX then RX pin to keep my sanity...
egilkv Jul 30, 2019
7c47c44
Try to document the pin swaps
egilkv Jul 30, 2019
23d98f1
Add a bit more info about pins
egilkv Jul 30, 2019
250b6b3
Merge branch 'Swap'
egilkv Jul 30, 2019
e8a89aa
Clean up the documentation a little bit.
egilkv Jul 30, 2019
37518e7
Merge branch 'Swap'
egilkv Jul 30, 2019
4d3faed
Use right term for variant
egilkv Jul 30, 2019
2718ea8
Both tx and rx pins should be specified for the pins()
egilkv Jul 30, 2019
7801303
Merge branch 'Swap'
egilkv Jul 30, 2019
0370981
Merge branch 'master' into Swap
egilkv Jul 30, 2019
9be4cf1
Merge branch 'Timers'
egilkv Jul 31, 2019
f08d114
Rephrase the documentation to use the terms used in the documentation
egilkv Jul 31, 2019
16ed11e
Merge branch 'Swap'
egilkv Jul 31, 2019
60944c4
Typo
egilkv Jul 31, 2019
895e92d
Merge branch 'Swap'
egilkv Jul 31, 2019
557423e
Fix some noise that entered into the code for some strange reason
egilkv Jul 31, 2019
af2dc60
Merge branch 'Swap'
egilkv Jul 31, 2019
2e914ae
Fix type, use SCK for SPI clock line
egilkv Jul 31, 2019
6d93b22
Merge branch 'Swap'
egilkv Jul 31, 2019
0697fc8
More copyedit of the README
egilkv Jul 31, 2019
2829ed5
Merge branch 'Swap'
egilkv Jul 31, 2019
7b27474
Interim version of fix for atomic protection around buffers >256
egilkv Aug 2, 2019
1244b94
Merge branch 'Upstream'
egilkv Aug 2, 2019
7b2fcc6
Implement change for MegaAVR, with a common routine for "soft" interrupt
egilkv Aug 2, 2019
8c01573
Merge branch 'Arduino'
egilkv Aug 2, 2019
9023066
Merge branch 'Baudrate'
egilkv Aug 2, 2019
02df661
Get rid of interrupt priority elevation hack from
egilkv Aug 4, 2019
38e43ea
Move extraneous check out of transmit interrupt
egilkv Aug 4, 2019
812f6ef
Changed Serial transmit so that it at all times depends on USART_DREI…
egilkv Aug 4, 2019
83c96f8
Seems ATOMIC_BLOCK(ATOMIC_RESTORESTATE) does the right thing even whe…
egilkv Aug 4, 2019
33ac414
Make clearing of TXCIF consistent
egilkv Aug 4, 2019
bd1dd51
Clean up begin() critical region
egilkv Aug 4, 2019
e81c090
Merge branch 'Arduino'
egilkv Aug 4, 2019
00784b5
Make end() critical region for much the same reason as begin()
egilkv Aug 5, 2019
0eb5c6a
Improve name of DRE polling function
egilkv Aug 5, 2019
2ab13e2
Merge remote-tracking branch 'upstream/master'
egilkv Sep 20, 2019
51dd848
Support Arduino 1.8.10
egilkv Sep 20, 2019
0de49a9
Fix up, sort of, merge of upstream/master
egilkv Sep 22, 2019
734df41
Merge branch 'Timers'
egilkv Sep 22, 2019
ddaafae
Merge branch 'Timers'
egilkv Sep 22, 2019
e6c4932
Merge branch 'Timers'
egilkv Sep 23, 2019
fd59b3c
Merge branch 'Timers'
egilkv Sep 23, 2019
9066479
Merge branch 'Timers'
egilkv Sep 23, 2019
83a8ca0
Merge branch 'Timers'
egilkv Sep 23, 2019
68b300d
Merge branch 'Timers'
egilkv Sep 23, 2019
7072510
Merge branch 'Timers'
egilkv Sep 23, 2019
8b56623
Merge branch 'Timers'
egilkv Sep 23, 2019
fbbb45c
Merge branch 'Timers'
egilkv Sep 23, 2019
df99da5
Merge branch 'Timers'
egilkv Sep 24, 2019
9959a41
Merge branch 'Timers'
egilkv Sep 24, 2019
12732e2
Merge remote-tracking branch 'upstream/master'
egilkv Oct 12, 2019
b11bd7f
Additional fix for previous merge
egilkv Oct 12, 2019
946a397
Fix period of PWM timers
egilkv Nov 12, 2019
e0ccf0f
Add correct path for the avrdude specification
egilkv Nov 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Try to document the pin swaps
  • Loading branch information
egilkv committed Jul 30, 2019
commit 7c47c44938ab76ff8fd801bd0925b8174eb7d695
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ ATmega3208, ATmega4808, ATmega3209 and ATmega4809.
* [BOD option](#bod-option)
* [Reset pin](#reset-pin)
* [Pinout](#pinout)
* [Pin swaps](#pinswap)
* [How to install](#how-to-install)
- [Boards Manager Installation](#boards-manager-installation)
- [Manual Installation](#manual-installation)
Expand Down Expand Up @@ -105,6 +106,40 @@ Please have a look at the pins_arduino.h files for detailed info.<br/> <br/>
|-------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
|<img src="https://i.imgur.com/q2wB2OW.jpg" width="350"><br/><img src="https://i.imgur.com/7GcHjqk.jpg" width="350">|<img src="https://i.imgur.com/ZaCM75c.jpg" width="350"><br/><img src="https://i.imgur.com/BPg75ib.jpg" width="350"><br/><br/><br/><br/><br/><br/><br/>|

## Pin swaps
The megaAVR-0 microcontrollers has some capabilities to swap pins for some of the built in devices.
This is done by invoking the `pins()` method before the `begin()`.

Available pin swaps for the UNO-WiFi standard pinout are:

| Device | Default | Alternative 1 | Alternative 2 |
|-----------|----------------------|----------------------|----------------------|
| `Serial1` | `pins(1,0)` | `pins(32,33)` | |
| `Wire` | `pins(20,21)` | | |
| `Serial2` | `pins(24,23)` | `pins(2,7)` | |
| `Serial` | `pins(27,26)` | `pins(9,10)` | |
| `SPI` | `pins(32,33,34,10)` | | |

Available pin swaps for the 28-pin and 32-pin standard pinout are:

| Device | Default | Alternative 1 | Alternative 2 |
|-----------|----------------------|----------------------|----------------------|
| `Serial` | `pins(0,1)` | `pins(4,5)` | |
| `Wire` | `pins(2,3)` | `pins(10,11)` | |
| `SPI` | `pins(4,5,6,7)` | `pins(8,9,10,11)` | |
| `Serial1` | `pins(8,9)` | | |
| `Serial2` | `pins(20,21)` | `pins(24,25)` | |

Available pin swaps for the 48-pin standard pinout are:

| Device | Default | Alternative 1 | Alternative 2 |
|-----------|----------------------|----------------------|----------------------|
| `Serial` | `pins(0,1)` | `pins(4,5)` | |
| `Wire` | `pins(2,3)` | `pins(16,17)` | |
| `SPI` | `pins(4,5,6,7)` | `pins(14,15,16,17)` | `pins(30,31,32,33)` |
| `Serial3` | `pins(8,9)` | `pins(12,13)` | |
| `Serial1` | `pins(12,13)` | `pins(14,15)` | |
| `Serial2` | `pins(32,35)` | `pins(38,39)` | |

## How to install
#### Boards Manager Installation
Expand Down