kopia lustrzana https://github.com/OpenRTX/OpenRTX
CS7000: updated display driver to PLUS hardware
rodzic
8656d80fad
commit
15feeece4c
|
@ -64,7 +64,11 @@ static inline void sendCmd(uint8_t cmd)
|
||||||
{
|
{
|
||||||
// Set D/C low (command mode), clear WR and data lines
|
// Set D/C low (command mode), clear WR and data lines
|
||||||
GPIOD->BSRR = 0x30FF0000;
|
GPIOD->BSRR = 0x30FF0000;
|
||||||
|
#ifdef PLATFORM_CS7000P
|
||||||
|
asm volatile(" mov r1, #65 \n"
|
||||||
|
#else
|
||||||
asm volatile(" mov r1, #21 \n"
|
asm volatile(" mov r1, #21 \n"
|
||||||
|
#endif
|
||||||
"___loop_d: cmp r1, #0 \n"
|
"___loop_d: cmp r1, #0 \n"
|
||||||
" itt ne \n"
|
" itt ne \n"
|
||||||
" subne r1, r1, #1 \n"
|
" subne r1, r1, #1 \n"
|
||||||
|
@ -76,7 +80,11 @@ static inline void sendData(uint8_t val)
|
||||||
{
|
{
|
||||||
// Set D/C high (data mode), clear WR and data lines
|
// Set D/C high (data mode), clear WR and data lines
|
||||||
GPIOD->BSRR = 0x20FF1000;
|
GPIOD->BSRR = 0x20FF1000;
|
||||||
|
#ifdef PLATFORM_CS7000P
|
||||||
|
asm volatile(" mov r1, #65 \n"
|
||||||
|
#else
|
||||||
asm volatile(" mov r1, #21 \n"
|
asm volatile(" mov r1, #21 \n"
|
||||||
|
#endif
|
||||||
"___loop_e: cmp r1, #0 \n"
|
"___loop_e: cmp r1, #0 \n"
|
||||||
" itt ne \n"
|
" itt ne \n"
|
||||||
" subne r1, r1, #1 \n"
|
" subne r1, r1, #1 \n"
|
||||||
|
|
Ładowanie…
Reference in New Issue