File tree 3 files changed +21
-1
lines changed
3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 1
1
# See: http://code.google.com/p/arduino/wiki/Platforms
2
2
3
- menu.cpu=Processor
3
+ menu.revision=Revision
4
4
5
5
##############################################################
6
6
@@ -15,6 +15,11 @@ uno2018.upload.maximum_size=32256
15
15
uno2018.upload.maximum_data_size=2048
16
16
uno2018.upload.speed=115200
17
17
18
+ uno2018.menu.revision.rev2=RevB
19
+ uno2018.menu.revision.rev2.build.extra_flags=
20
+ uno2018.menu.revision.rev1=RevA (Engineering sample)
21
+ uno2018.menu.revision.rev1.build.extra_flags=-DREV_A_ENGINEERING_SAMPLE
22
+
18
23
uno2018.bootloader.tool=avrdude
19
24
uno2018.bootloader.low_fuses=0xFF
20
25
uno2018.bootloader.high_fuses=0xDE
Original file line number Diff line number Diff line change @@ -392,10 +392,20 @@ void init()
392
392
393
393
/****************************** USART *****************************************/
394
394
395
+ #ifdef REV_A_ENGINEERING_SAMPLE
396
+ /* Configure PORTMUX for USARTS */
397
+ //PORTMUX.USARTROUTEA = (PORTMUX_USART1_ALT1_gc // MAIN
398
+ //| PORTMUX_USART0_ALT1_gc // SPARE
399
+ //| PORTMUX_USART3_ALT1_gc); // DEBUG
400
+
401
+ PORTMUX .USARTROUTEA = (PORTMUX_USART0_ALT1_gc // SPARE
402
+ | PORTMUX_USART3_ALT1_gc ); // DEBUG
403
+ #else
395
404
/* Configure PORTMUX for USARTS */
396
405
PORTMUX .USARTROUTEA = (PORTMUX_USART1_ALT1_gc // MAIN
397
406
| PORTMUX_USART0_ALT1_gc // SPARE
398
407
| PORTMUX_USART3_ALT1_gc ); // DEBUG
408
+ #endif
399
409
400
410
/********************* TCB3 for system time tracking **************************/
401
411
Original file line number Diff line number Diff line change @@ -59,8 +59,13 @@ static const uint8_t SCL = PIN_WIRE_SCL;
59
59
//!!BUG in device header file. The RXC and DRE vectors are swapped!!
60
60
#define HWSERIAL0_DRE_VECTOR (USART1_DRE_vect)
61
61
#define HWSERIAL0_RXC_VECTOR (USART1_RXC_vect)
62
+ #ifdef REV_A_ENGINEERING_SAMPLE
63
+ #define PIN_WIRE_HWSERIAL0_RX (12)
64
+ #define PIN_WIRE_HWSERIAL0_TX (11)
65
+ #else
62
66
#define PIN_WIRE_HWSERIAL0_RX (0)
63
67
#define PIN_WIRE_HWSERIAL0_TX (1)
68
+ #endif
64
69
65
70
// Uno2 Debug USART (not available on headers, only via the EDGB virtual COM port)
66
71
// USART3 on mega4809 (alternative pins)
You can’t perform that action at this time.
0 commit comments