1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00

Fix RIT OLED driver to work on LM3S6965 (Rev C and later boards)

This commit is contained in:
James Snyder 2009-01-09 22:18:23 +00:00
parent 4ef76a03b9
commit 4b505e92eb

View File

@ -49,10 +49,18 @@
// panel control signal.
//
//*****************************************************************************
#define SYSCTL_PERIPH_GPIO_OLEDDC SYSCTL_PERIPH_GPIOA
#define GPIO_OLEDDC_BASE GPIO_PORTA_BASE
#define GPIO_OLEDDC_PIN GPIO_PIN_6
#define GPIO_OLEDEN_PIN GPIO_PIN_7
#ifdef FORLM3S6965
#define SYSCTL_PERIPH_GPIO_OLEDDC SYSCTL_PERIPH_GPIOC
#define GPIO_OLEDDC_BASE GPIO_PORTC_BASE
#define GPIO_OLEDDC_PIN GPIO_PIN_7
#define GPIO_OLEDEN_PIN GPIO_PIN_6
#else
#define SYSCTL_PERIPH_GPIO_OLEDDC SYSCTL_PERIPH_GPIOA
#define GPIO_OLEDDC_BASE GPIO_PORTA_BASE
#define GPIO_OLEDDC_PIN GPIO_PIN_6
#define GPIO_OLEDEN_PIN GPIO_PIN_7
#endif
//*****************************************************************************
//