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:
parent
4ef76a03b9
commit
4b505e92eb
@ -49,10 +49,18 @@
|
|||||||
// panel control signal.
|
// panel control signal.
|
||||||
//
|
//
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
|
|
||||||
|
#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 SYSCTL_PERIPH_GPIO_OLEDDC SYSCTL_PERIPH_GPIOA
|
||||||
#define GPIO_OLEDDC_BASE GPIO_PORTA_BASE
|
#define GPIO_OLEDDC_BASE GPIO_PORTA_BASE
|
||||||
#define GPIO_OLEDDC_PIN GPIO_PIN_6
|
#define GPIO_OLEDDC_PIN GPIO_PIN_6
|
||||||
#define GPIO_OLEDEN_PIN GPIO_PIN_7
|
#define GPIO_OLEDEN_PIN GPIO_PIN_7
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user