summaryrefslogtreecommitdiff
path: root/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_direct.h
blob: 8b475ddcd6ee4f12907c48b6947a7d92e7888c73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once

#if defined(__AVR__)
/* -------------------- AVR (Pro Micro) ----------------------- */

// old style
#define DIRECT_PINS { { F4, NO_PIN, F5 }, { NO_PIN, F6, F7 }, { B1, B3, NO_PIN } }

// new style
// #define DIRECT_PINS
#define MATRIX_IN_PORTS \
    (Port_F, MCU_GPIO, F0), \
    (Port_B, MCU_GPIO, B0)
#define MATRIX_IN_PINS  \
    (0, Port_F,  4), (1, NO_PIN    ), (2, Port_F,  5), \
    (3, NO_PIN    ), (4, Port_F,  6), (5, Port_F,  7), \
    (6, Port_B,  1), (7, Port_B,  3), (8, NO_PIN    )

#else
/* -------------------- ARM (PROTON-C) ----------------------- */

// old style
#define DIRECT_PINS { { A2, NO_PIN, A1 }, { NO_PIN, A0, B8 }, { B13, B14, NO_PIN } }

// new style
// #define DIRECT_PINS
#define MATRIX_IN_PORTS \
    (Port_A, MCU_GPIO, A0), \
    (Port_B, MCU_GPIO, B0)
#define MATRIX_IN_PINS  \
    (0, Port_A,  2), (1, NO_PIN    ), (2, Port_A,  1), \
    (3, NO_PIN    ), (4, Port_A,  0), (5, Port_B,  8), \
    (6, Port_B, 13), (7, Port_B, 14), (8, NO_PIN    )

#endif