Oops - left some debugging.

remotes/origin_old/ugfx_release_2.6
inmarket 2015-02-07 22:25:00 +10:00
parent 112852ffc3
commit 1760cd3aad
1 changed files with 3 additions and 4 deletions

View File

@ -33,7 +33,6 @@
#define PORT_DC UEXT_PORT_PIN6
#define PIN_DC UEXT_PORTPIN_PIN6
#if PIO_METHOD == PIO_METHOD_AT91
#define PinIsOutput(port,pin) ((port)->PIO_OER = 1 << (pin), (port)->PIO_PER = 1 << (pin), (port)->PIO_MDDR = 1 << (pin), (port)->PIO_PPUDR = 1 << (pin))
#define PinSet(port,pin) (port)->PIO_SODR = 1 << (pin)
@ -58,9 +57,9 @@
PinSet(UEXT_SPI_MOSI_PORT, UEXT_SPI_MOSI_PORTPIN);
else
PinClear(UEXT_SPI_MOSI_PORT, UEXT_SPI_MOSI_PORTPIN);
spi_delay(1000);
spi_delay(1);
PinClear(UEXT_SPI_SCK_PORT, UEXT_SPI_SCK_PORTPIN);
spi_delay(1000);
spi_delay(1);
PinSet(UEXT_SPI_SCK_PORT, UEXT_SPI_SCK_PORTPIN);
}
}