diff options
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/40percentclub/nano/keymaps/drashna/keymap.c | 1 | ||||
| -rw-r--r-- | keyboards/claw44/ssd1306.h | 3 | ||||
| -rw-r--r-- | keyboards/comet46/ssd1306.h | 3 | ||||
| -rw-r--r-- | keyboards/converter/palm_usb/matrix.c | 41 | ||||
| -rw-r--r-- | keyboards/crkbd/ssd1306.h | 3 | ||||
| -rw-r--r-- | keyboards/helix/local_drivers/ssd1306.h | 1 | ||||
| -rwxr-xr-x | keyboards/lily58/ssd1306.h | 3 | ||||
| -rw-r--r-- | keyboards/yosino58/ssd1306.h | 3 |
8 files changed, 25 insertions, 33 deletions
diff --git a/keyboards/40percentclub/nano/keymaps/drashna/keymap.c b/keyboards/40percentclub/nano/keymaps/drashna/keymap.c index 998e55d5b..f5d0787ee 100644 --- a/keyboards/40percentclub/nano/keymaps/drashna/keymap.c +++ b/keyboards/40percentclub/nano/keymaps/drashna/keymap.c | |||
| @@ -1,7 +1,6 @@ | |||
| 1 | #include "drashna.h" | 1 | #include "drashna.h" |
| 2 | #include "analog.h" | 2 | #include "analog.h" |
| 3 | #include "pointing_device.h" | 3 | #include "pointing_device.h" |
| 4 | #include "pincontrol.h" | ||
| 5 | 4 | ||
| 6 | #define KC_X0 LT(_FN, KC_ESC) | 5 | #define KC_X0 LT(_FN, KC_ESC) |
| 7 | 6 | ||
diff --git a/keyboards/claw44/ssd1306.h b/keyboards/claw44/ssd1306.h index ea8c92328..0ca093093 100644 --- a/keyboards/claw44/ssd1306.h +++ b/keyboards/claw44/ssd1306.h | |||
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | #include <stdbool.h> | 3 | #include <stdbool.h> |
| 4 | #include <stdio.h> | 4 | #include <stdio.h> |
| 5 | #include "pincontrol.h" | ||
| 6 | #include "action.h" | 5 | #include "action.h" |
| 7 | 6 | ||
| 8 | enum ssd1306_cmds { | 7 | enum ssd1306_cmds { |
| @@ -88,4 +87,4 @@ void matrix_write_ln(struct CharacterMatrix *matrix, const char *data); | |||
| 88 | void matrix_write_P(struct CharacterMatrix *matrix, const char *data); | 87 | void matrix_write_P(struct CharacterMatrix *matrix, const char *data); |
| 89 | void matrix_render(struct CharacterMatrix *matrix); | 88 | void matrix_render(struct CharacterMatrix *matrix); |
| 90 | 89 | ||
| 91 | bool process_record_gfx(uint16_t keycode, keyrecord_t *record); \ No newline at end of file | 90 | bool process_record_gfx(uint16_t keycode, keyrecord_t *record); |
diff --git a/keyboards/comet46/ssd1306.h b/keyboards/comet46/ssd1306.h index ea8c92328..0ca093093 100644 --- a/keyboards/comet46/ssd1306.h +++ b/keyboards/comet46/ssd1306.h | |||
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | #include <stdbool.h> | 3 | #include <stdbool.h> |
| 4 | #include <stdio.h> | 4 | #include <stdio.h> |
| 5 | #include "pincontrol.h" | ||
| 6 | #include "action.h" | 5 | #include "action.h" |
| 7 | 6 | ||
| 8 | enum ssd1306_cmds { | 7 | enum ssd1306_cmds { |
| @@ -88,4 +87,4 @@ void matrix_write_ln(struct CharacterMatrix *matrix, const char *data); | |||
| 88 | void matrix_write_P(struct CharacterMatrix *matrix, const char *data); | 87 | void matrix_write_P(struct CharacterMatrix *matrix, const char *data); |
| 89 | void matrix_render(struct CharacterMatrix *matrix); | 88 | void matrix_render(struct CharacterMatrix *matrix); |
| 90 | 89 | ||
| 91 | bool process_record_gfx(uint16_t keycode, keyrecord_t *record); \ No newline at end of file | 90 | bool process_record_gfx(uint16_t keycode, keyrecord_t *record); |
diff --git a/keyboards/converter/palm_usb/matrix.c b/keyboards/converter/palm_usb/matrix.c index 49212f2ef..590b5eea3 100644 --- a/keyboards/converter/palm_usb/matrix.c +++ b/keyboards/converter/palm_usb/matrix.c | |||
| @@ -20,7 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 20 | #include QMK_KEYBOARD_H | 20 | #include QMK_KEYBOARD_H |
| 21 | #include "protocol/serial.h" | 21 | #include "protocol/serial.h" |
| 22 | #include "timer.h" | 22 | #include "timer.h" |
| 23 | #include "pincontrol.h" | ||
| 24 | 23 | ||
| 25 | 24 | ||
| 26 | /* | 25 | /* |
| @@ -96,27 +95,27 @@ void pins_init(void) { | |||
| 96 | // set pins for pullups, Rts , power &etc. | 95 | // set pins for pullups, Rts , power &etc. |
| 97 | 96 | ||
| 98 | //print ("pins setup\n"); | 97 | //print ("pins setup\n"); |
| 99 | pinMode(VCC_PIN, PinDirectionOutput); | 98 | setPinOutput(VCC_PIN); |
| 100 | digitalWrite(VCC_PIN, PinLevelLow); | 99 | writePinLow(VCC_PIN); |
| 101 | 100 | ||
| 102 | #if ( HANDSPRING == 0) | 101 | #if ( HANDSPRING == 0) |
| 103 | 102 | ||
| 104 | #ifdef CY835 | 103 | #ifdef CY835 |
| 105 | pinMode(GND_PIN, PinDirectionOutput); | 104 | setPinOutput(GND_PIN); |
| 106 | digitalWrite(GND_PIN, PinLevelLow); | 105 | writePinLow(GND_PIN); |
| 107 | 106 | ||
| 108 | pinMode(PULLDOWN_PIN, PinDirectionOutput); | 107 | setPinOutput(PULLDOWN_PIN); |
| 109 | digitalWrite(PULLDOWN_PIN, PinLevelLow); | 108 | writePinLow(PULLDOWN_PIN); |
| 110 | #endif | 109 | #endif |
| 111 | 110 | ||
| 112 | pinMode(DCD_PIN, PinDirectionInput); | 111 | setPinInput(DCD_PIN); |
| 113 | pinMode(RTS_PIN, PinDirectionInput); | 112 | setPinInput(RTS_PIN); |
| 114 | #endif | 113 | #endif |
| 115 | 114 | ||
| 116 | /* check that the other side isn't powered up. | 115 | /* check that the other side isn't powered up. |
| 117 | test=digitalRead(DCD_PIN); | 116 | test=readPin(DCD_PIN); |
| 118 | xprintf("b%02X:", test); | 117 | xprintf("b%02X:", test); |
| 119 | test=digitalRead(RTS_PIN); | 118 | test=readPin(RTS_PIN); |
| 120 | xprintf("%02X\n", test); | 119 | xprintf("%02X\n", test); |
| 121 | */ | 120 | */ |
| 122 | 121 | ||
| @@ -129,20 +128,20 @@ uint8_t rts_reset(void) { | |||
| 129 | // On boot, we keep rts as input, then switch roles here | 128 | // On boot, we keep rts as input, then switch roles here |
| 130 | // on leaving sleep, we toggle the same way | 129 | // on leaving sleep, we toggle the same way |
| 131 | 130 | ||
| 132 | firstread=digitalRead(RTS_PIN); | 131 | firstread=readPin(RTS_PIN); |
| 133 | // printf("r%02X:", firstread); | 132 | // printf("r%02X:", firstread); |
| 134 | 133 | ||
| 135 | pinMode(RTS_PIN, PinDirectionOutput); | 134 | setPinOutput(RTS_PIN); |
| 136 | 135 | ||
| 137 | if (firstread == PinLevelHigh) { | 136 | if (firstread) { |
| 138 | digitalWrite(RTS_PIN, PinLevelLow); | 137 | writePinLow(RTS_PIN); |
| 139 | } | 138 | } |
| 140 | _delay_ms(10); | 139 | _delay_ms(10); |
| 141 | digitalWrite(RTS_PIN, PinLevelHigh); | 140 | writePinHigh(RTS_PIN); |
| 142 | 141 | ||
| 143 | 142 | ||
| 144 | /* the future is Arm | 143 | /* the future is Arm |
| 145 | if (palReadPad(RTS_PIN_IOPRT) == PinLevelLow) | 144 | if (!palReadPad(RTS_PIN_IOPRT)) |
| 146 | { | 145 | { |
| 147 | _delay_ms(10); | 146 | _delay_ms(10); |
| 148 | palSetPadMode(RTS_PINn_IOPORT, PinDirectionOutput_PUSHPULL); | 147 | palSetPadMode(RTS_PINn_IOPORT, PinDirectionOutput_PUSHPULL); |
| @@ -224,9 +223,9 @@ uint8_t handspring_handshake(void) { | |||
| 224 | } | 223 | } |
| 225 | 224 | ||
| 226 | uint8_t handspring_reset(void) { | 225 | uint8_t handspring_reset(void) { |
| 227 | digitalWrite(VCC_PIN, PinLevelLow); | 226 | writePinLow(VCC_PIN); |
| 228 | _delay_ms(5); | 227 | _delay_ms(5); |
| 229 | digitalWrite(VCC_PIN, PinLevelHigh); | 228 | writePinHigh(VCC_PIN); |
| 230 | 229 | ||
| 231 | if ( handspring_handshake() ) { | 230 | if ( handspring_handshake() ) { |
| 232 | last_activity = timer_read(); | 231 | last_activity = timer_read(); |
| @@ -250,7 +249,7 @@ void matrix_init(void) | |||
| 250 | #endif | 249 | #endif |
| 251 | 250 | ||
| 252 | print("power up\n"); | 251 | print("power up\n"); |
| 253 | digitalWrite(VCC_PIN, PinLevelHigh); | 252 | writePinHigh(VCC_PIN); |
| 254 | 253 | ||
| 255 | // wait for DCD strobe from keyboard - it will do this | 254 | // wait for DCD strobe from keyboard - it will do this |
| 256 | // up to 3 times, then the board needs the RTS toggled to try again | 255 | // up to 3 times, then the board needs the RTS toggled to try again |
| @@ -265,7 +264,7 @@ void matrix_init(void) | |||
| 265 | } | 264 | } |
| 266 | 265 | ||
| 267 | #else /// Palm / HP device with DCD | 266 | #else /// Palm / HP device with DCD |
| 268 | while( digitalRead(DCD_PIN) != PinLevelHigh ) {;} | 267 | while( !readPin(DCD_PIN) ) {;} |
| 269 | print("dcd\n"); | 268 | print("dcd\n"); |
| 270 | 269 | ||
| 271 | rts_reset(); // at this point the keyboard should think all is well. | 270 | rts_reset(); // at this point the keyboard should think all is well. |
diff --git a/keyboards/crkbd/ssd1306.h b/keyboards/crkbd/ssd1306.h index ea8c92328..0ca093093 100644 --- a/keyboards/crkbd/ssd1306.h +++ b/keyboards/crkbd/ssd1306.h | |||
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | #include <stdbool.h> | 3 | #include <stdbool.h> |
| 4 | #include <stdio.h> | 4 | #include <stdio.h> |
| 5 | #include "pincontrol.h" | ||
| 6 | #include "action.h" | 5 | #include "action.h" |
| 7 | 6 | ||
| 8 | enum ssd1306_cmds { | 7 | enum ssd1306_cmds { |
| @@ -88,4 +87,4 @@ void matrix_write_ln(struct CharacterMatrix *matrix, const char *data); | |||
| 88 | void matrix_write_P(struct CharacterMatrix *matrix, const char *data); | 87 | void matrix_write_P(struct CharacterMatrix *matrix, const char *data); |
| 89 | void matrix_render(struct CharacterMatrix *matrix); | 88 | void matrix_render(struct CharacterMatrix *matrix); |
| 90 | 89 | ||
| 91 | bool process_record_gfx(uint16_t keycode, keyrecord_t *record); \ No newline at end of file | 90 | bool process_record_gfx(uint16_t keycode, keyrecord_t *record); |
diff --git a/keyboards/helix/local_drivers/ssd1306.h b/keyboards/helix/local_drivers/ssd1306.h index 9cf6983b7..f9f91c6fe 100644 --- a/keyboards/helix/local_drivers/ssd1306.h +++ b/keyboards/helix/local_drivers/ssd1306.h | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | 3 | ||
| 4 | #include <stdbool.h> | 4 | #include <stdbool.h> |
| 5 | #include <stdio.h> | 5 | #include <stdio.h> |
| 6 | #include "pincontrol.h" | ||
| 7 | #include "action.h" | 6 | #include "action.h" |
| 8 | 7 | ||
| 9 | enum ssd1306_cmds { | 8 | enum ssd1306_cmds { |
diff --git a/keyboards/lily58/ssd1306.h b/keyboards/lily58/ssd1306.h index ea8c92328..0ca093093 100755 --- a/keyboards/lily58/ssd1306.h +++ b/keyboards/lily58/ssd1306.h | |||
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | #include <stdbool.h> | 3 | #include <stdbool.h> |
| 4 | #include <stdio.h> | 4 | #include <stdio.h> |
| 5 | #include "pincontrol.h" | ||
| 6 | #include "action.h" | 5 | #include "action.h" |
| 7 | 6 | ||
| 8 | enum ssd1306_cmds { | 7 | enum ssd1306_cmds { |
| @@ -88,4 +87,4 @@ void matrix_write_ln(struct CharacterMatrix *matrix, const char *data); | |||
| 88 | void matrix_write_P(struct CharacterMatrix *matrix, const char *data); | 87 | void matrix_write_P(struct CharacterMatrix *matrix, const char *data); |
| 89 | void matrix_render(struct CharacterMatrix *matrix); | 88 | void matrix_render(struct CharacterMatrix *matrix); |
| 90 | 89 | ||
| 91 | bool process_record_gfx(uint16_t keycode, keyrecord_t *record); \ No newline at end of file | 90 | bool process_record_gfx(uint16_t keycode, keyrecord_t *record); |
diff --git a/keyboards/yosino58/ssd1306.h b/keyboards/yosino58/ssd1306.h index de0a9a02a..acaf6217e 100644 --- a/keyboards/yosino58/ssd1306.h +++ b/keyboards/yosino58/ssd1306.h | |||
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | #include <stdbool.h> | 3 | #include <stdbool.h> |
| 4 | #include <stdio.h> | 4 | #include <stdio.h> |
| 5 | #include "pincontrol.h" | ||
| 6 | #include "action.h" | 5 | #include "action.h" |
| 7 | 6 | ||
| 8 | enum ssd1306_cmds { | 7 | enum ssd1306_cmds { |
| @@ -93,4 +92,4 @@ void matrix_write_ln(struct CharacterMatrix *matrix, const char *data); | |||
| 93 | void matrix_write_P(struct CharacterMatrix *matrix, const char *data); | 92 | void matrix_write_P(struct CharacterMatrix *matrix, const char *data); |
| 94 | void matrix_render(struct CharacterMatrix *matrix); | 93 | void matrix_render(struct CharacterMatrix *matrix); |
| 95 | 94 | ||
| 96 | bool process_record_gfx(uint16_t keycode, keyrecord_t *record); \ No newline at end of file | 95 | bool process_record_gfx(uint16_t keycode, keyrecord_t *record); |
