FreeCalypso > hg > fc-selenite
changeset 156:b0a18d9f99f4
armio.c: SE J100 target support
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 17 Mar 2019 07:08:34 +0000 |
parents | ca705e7e03f8 |
children | fd5202e290bc |
files | src/cs/drivers/drv_core/armio/armio.c |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cs/drivers/drv_core/armio/armio.c Sun Mar 17 07:04:00 2019 +0000 +++ b/src/cs/drivers/drv_core/armio/armio.c Sun Mar 17 07:08:34 2019 +0000 @@ -237,6 +237,18 @@ AI_ConfigBitAsOutput(8); /* MUSIC_A0 */ AI_ConfigBitAsOutput(12); /* MUSIC_ON */ + #elif defined(CONFIG_TARGET_J100) + /* + * GPIO config on this target is based on the disassembly of + * Init_Target() and AI_InitIOConfig() functions in the official fw. + */ + + /* GPIO out all zeros - the LCD backlight is OFF */ + *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x0000; + + /* setting of GPIOs as outputs: register setting from the original fw */ + *((volatile SYS_UWORD16 *) ARMIO_IO_CNTL) = 0x2A59; + #elif defined(CONFIG_TARGET_PIRELLI) *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x0000;