mio283qt2.c: Need select/deselect LCD in setpower method; hwinitialize did not deselect LCD
This commit is contained in:
parent
110bc71476
commit
10fc4345a8
@ -13,8 +13,8 @@ MEMORY
|
|||||||
{
|
{
|
||||||
/* 0x800000-0x83ffff */
|
/* 0x800000-0x83ffff */
|
||||||
/* compal-loaded binary: our text, initialized data */
|
/* compal-loaded binary: our text, initialized data */
|
||||||
LRAM (rw) : ORIGIN = 0x00800000, LENGTH = 0x00020000
|
LRAM (rw) : ORIGIN = 0x00800000, LENGTH = 128K
|
||||||
TRAM (rw) : ORIGIN = 0x00820000, LENGTH = 0x00010000
|
TRAM (rw) : ORIGIN = 0x00820000, LENGTH = 64K
|
||||||
/* compal-loaded binary: our unitialized data, stacks, heap */
|
/* compal-loaded binary: our unitialized data, stacks, heap */
|
||||||
IRAM (rw) : ORIGIN = 0x00830000, LENGTH = 0x00010000
|
IRAM (rw) : ORIGIN = 0x00830000, LENGTH = 0x00010000
|
||||||
}
|
}
|
||||||
@ -34,7 +34,7 @@ SECTIONS
|
|||||||
PROVIDE(__start = .);
|
PROVIDE(__start = .);
|
||||||
KEEP(*(.text.start))
|
KEEP(*(.text.start))
|
||||||
*(.text.start)
|
*(.text.start)
|
||||||
} > TRAM
|
} > LRAM
|
||||||
|
|
||||||
/* exception vectors from 0x80001c to 0x800034 */
|
/* exception vectors from 0x80001c to 0x800034 */
|
||||||
.text.exceptions 0x80001c : AT (LOADADDR(.text.start) + SIZEOF(.text.start)) {
|
.text.exceptions 0x80001c : AT (LOADADDR(.text.start) + SIZEOF(.text.start)) {
|
||||||
@ -46,8 +46,7 @@ SECTIONS
|
|||||||
|
|
||||||
/* code */
|
/* code */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.text (LOADADDR(.text.exceptions) + SIZEOF(.text.exceptions)) :
|
.text : {
|
||||||
AT (LOADADDR(.text.exceptions) + SIZEOF(.text.exceptions)) {
|
|
||||||
/* regular code */
|
/* regular code */
|
||||||
*(.text*)
|
*(.text*)
|
||||||
/* always-in-ram code */
|
/* always-in-ram code */
|
||||||
@ -55,7 +54,7 @@ SECTIONS
|
|||||||
/* gcc voodoo */
|
/* gcc voodoo */
|
||||||
*(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)
|
*(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} > TRAM
|
} > LRAM
|
||||||
PROVIDE(_text_start = LOADADDR(.text));
|
PROVIDE(_text_start = LOADADDR(.text));
|
||||||
PROVIDE(_text_end = LOADADDR(.text) + SIZEOF(.text));
|
PROVIDE(_text_end = LOADADDR(.text) + SIZEOF(.text));
|
||||||
|
|
||||||
@ -67,7 +66,7 @@ SECTIONS
|
|||||||
KEEP(*(SORT(.ctors)))
|
KEEP(*(SORT(.ctors)))
|
||||||
/* end of list */
|
/* end of list */
|
||||||
LONG(0)
|
LONG(0)
|
||||||
} > TRAM
|
} > LRAM
|
||||||
PROVIDE(_ctor_start = LOADADDR(.ctors));
|
PROVIDE(_ctor_start = LOADADDR(.ctors));
|
||||||
PROVIDE(_ctor_end = LOADADDR(.ctors) + SIZEOF(.ctors));
|
PROVIDE(_ctor_end = LOADADDR(.ctors) + SIZEOF(.ctors));
|
||||||
|
|
||||||
@ -79,7 +78,7 @@ SECTIONS
|
|||||||
KEEP(*(SORT(.dtors)))
|
KEEP(*(SORT(.dtors)))
|
||||||
/* end of list */
|
/* end of list */
|
||||||
LONG(0)
|
LONG(0)
|
||||||
} > TRAM
|
} > LRAM
|
||||||
PROVIDE(_dtor_start = LOADADDR(.dtors));
|
PROVIDE(_dtor_start = LOADADDR(.dtors));
|
||||||
PROVIDE(_dtor_end = LOADADDR(.dtors) + SIZEOF(.dtors));
|
PROVIDE(_dtor_end = LOADADDR(.dtors) + SIZEOF(.dtors));
|
||||||
|
|
||||||
@ -87,14 +86,16 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.rodata : {
|
.rodata : {
|
||||||
*(.rodata*)
|
*(.rodata*)
|
||||||
} > TRAM
|
} > LRAM
|
||||||
PROVIDE(_rodata_start = LOADADDR(.rodata));
|
PROVIDE(_rodata_start = LOADADDR(.rodata));
|
||||||
PROVIDE(_rodata_end = LOADADDR(.rodata) + SIZEOF(.rodata));
|
PROVIDE(_rodata_end = LOADADDR(.rodata) + SIZEOF(.rodata));
|
||||||
|
|
||||||
/* initialized data */
|
/* initialized data */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.data : {
|
.data : {
|
||||||
|
_sdata = ABSOLUTE(.);
|
||||||
*(.data)
|
*(.data)
|
||||||
|
_edata = ABSOLUTE(.);
|
||||||
} > TRAM
|
} > TRAM
|
||||||
PROVIDE(_data_start = LOADADDR(.data));
|
PROVIDE(_data_start = LOADADDR(.data));
|
||||||
PROVIDE(_data_end = LOADADDR(.data) + SIZEOF(.data));
|
PROVIDE(_data_end = LOADADDR(.data) + SIZEOF(.data));
|
||||||
|
Loading…
Reference in New Issue
Block a user