diff options
Diffstat (limited to 'keyboards/converter/palm_usb/matrix.c')
-rw-r--r-- | keyboards/converter/palm_usb/matrix.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/keyboards/converter/palm_usb/matrix.c b/keyboards/converter/palm_usb/matrix.c index 8ae89deb6a..db3784df19 100644 --- a/keyboards/converter/palm_usb/matrix.c +++ b/keyboards/converter/palm_usb/matrix.c @@ -95,27 +95,27 @@ void pins_init(void) { // set pins for pullups, Rts , power &etc. //print ("pins setup\n"); - setPinOutput(VCC_PIN); - writePinLow(VCC_PIN); + gpio_set_pin_output(VCC_PIN); + gpio_write_pin_low(VCC_PIN); #if ( HANDSPRING == 0) #ifdef CY835 - setPinOutput(GND_PIN); - writePinLow(GND_PIN); + gpio_set_pin_output(GND_PIN); + gpio_write_pin_low(GND_PIN); - setPinOutput(PULLDOWN_PIN); - writePinLow(PULLDOWN_PIN); + gpio_set_pin_output(PULLDOWN_PIN); + gpio_write_pin_low(PULLDOWN_PIN); #endif - setPinInput(DCD_PIN); - setPinInput(RTS_PIN); + gpio_set_pin_input(DCD_PIN); + gpio_set_pin_input(RTS_PIN); #endif /* check that the other side isn't powered up. - test=readPin(DCD_PIN); + test=gpio_read_pin(DCD_PIN); xprintf("b%02X:", test); - test=readPin(RTS_PIN); + test=gpio_read_pin(RTS_PIN); xprintf("%02X\n", test); */ @@ -128,16 +128,16 @@ uint8_t rts_reset(void) { // On boot, we keep rts as input, then switch roles here // on leaving sleep, we toggle the same way - firstread=readPin(RTS_PIN); + firstread=gpio_read_pin(RTS_PIN); // printf("r%02X:", firstread); - setPinOutput(RTS_PIN); + gpio_set_pin_output(RTS_PIN); if (firstread) { - writePinLow(RTS_PIN); + gpio_write_pin_low(RTS_PIN); } wait_ms(10); - writePinHigh(RTS_PIN); + gpio_write_pin_high(RTS_PIN); /* the future is Arm @@ -223,9 +223,9 @@ uint8_t handspring_handshake(void) { } uint8_t handspring_reset(void) { - writePinLow(VCC_PIN); + gpio_write_pin_low(VCC_PIN); wait_ms(5); - writePinHigh(VCC_PIN); + gpio_write_pin_high(VCC_PIN); if ( handspring_handshake() ) { last_activity = timer_read(); @@ -249,7 +249,7 @@ void matrix_init(void) #endif print("power up\n"); - writePinHigh(VCC_PIN); + gpio_write_pin_high(VCC_PIN); // wait for DCD strobe from keyboard - it will do this // up to 3 times, then the board needs the RTS toggled to try again @@ -264,7 +264,7 @@ void matrix_init(void) } #else /// Palm / HP device with DCD - while( !readPin(DCD_PIN) ) {;} + while( !gpio_read_pin(DCD_PIN) ) {;} print("dcd\n"); rts_reset(); // at this point the keyboard should think all is well. |