diff options
Diffstat (limited to 'keyboards/handwired/lagrange/transport.c')
-rw-r--r-- | keyboards/handwired/lagrange/transport.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/keyboards/handwired/lagrange/transport.c b/keyboards/handwired/lagrange/transport.c index ec91cff306..3ff2e9f409 100644 --- a/keyboards/handwired/lagrange/transport.c +++ b/keyboards/handwired/lagrange/transport.c @@ -53,7 +53,7 @@ bool shake_hands(bool master) { * alignment. */ if (master) { - writePinLow(SPI_SS_PIN); + gpio_write_pin_low(SPI_SS_PIN); } for (i = 0 ; i < 8 ; i += 1) { @@ -64,7 +64,7 @@ bool shake_hands(bool master) { } if (master) { - writePinHigh(SPI_SS_PIN); + gpio_write_pin_high(SPI_SS_PIN); } } while (i < 8); @@ -176,8 +176,8 @@ void transport_master_init(void) { * above depends on it and the SPI master driver won't do it * before we call spi_start(). */ - writePinHigh(SPI_SS_PIN); - setPinOutput(SPI_SS_PIN); + gpio_write_pin_high(SPI_SS_PIN); + gpio_set_pin_output(SPI_SS_PIN); spi_init(); @@ -195,10 +195,10 @@ void transport_slave_init(void) { * they're asserted making the MISO pin an output on both ends and * leading to potential shorts. */ - setPinInputHigh(SPI_SS_PIN); - setPinInput(SPI_SCK_PIN); - setPinInput(SPI_MOSI_PIN); - setPinOutput(SPI_MISO_PIN); + gpio_set_pin_input_high(SPI_SS_PIN); + gpio_set_pin_input(SPI_SCK_PIN); + gpio_set_pin_input(SPI_MOSI_PIN); + gpio_set_pin_output(SPI_MISO_PIN); SPCR = _BV(SPE); |