view components/nucleus_flash @ 244:96784b8974eb

Switch_ON(): detect charging mode by CHGPRES bit Consider the following scenario: the phone is on, the user plugs in the charger, and then executes the power-off operation. In the Iota VRPC this sequence translates to a switch-off immediately followed by another switch-on - but the CHGSTS bit doesn't get set on the second switch-on cycle! Disassembly of Pirelli's fw shows that they check the CHGPRES bit, and furthermore, if both CHGPRES and ONBSTS are set, the code they pass to their modified Power_ON_Button() function is the one for charging - so let's adopt the same CHGPRES check and the same priority order for switch-on causes.
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 03 May 2021 06:51:29 +0000
parents 572c3ee87676
children
line wrap: on
line source

# New Tourmaline component: compiling Nucleus from source (XIP)

CFLAGS="-mn -me -mt -o -mw"
CPPFLAGS=

SRCDIR=$SRC/nucleus

cfile_plain $SRCDIR/dmce.c
cfile_plain $SRCDIR/dmd.c
cfile_plain $SRCDIR/dmf.c
cfile_plain $SRCDIR/dmi.c
cfile_plain $SRCDIR/dms.c
cfile_plain $SRCDIR/erc.c
cfile_plain $SRCDIR/erd.c
cfile_plain $SRCDIR/eri.c
cfile_plain $SRCDIR/evc.c
cfile_plain $SRCDIR/evce.c
cfile_plain $SRCDIR/evd.c
cfile_plain $SRCDIR/evf.c
cfile_plain $SRCDIR/evi.c
cfile_plain $SRCDIR/hic.c
cfile_plain $SRCDIR/hid.c
cfile_plain $SRCDIR/hii.c
cfile_plain $SRCDIR/inc.c
cfile_plain $SRCDIR/ioc.c
cfile_plain $SRCDIR/ioce.c
cfile_plain $SRCDIR/iod.c
cfile_plain $SRCDIR/iof.c
cfile_plain $SRCDIR/ioi.c
cfile_plain $SRCDIR/lic.c
cfile_plain $SRCDIR/lid.c
cfile_plain $SRCDIR/mbc.c
cfile_plain $SRCDIR/mbce.c
cfile_plain $SRCDIR/mbd.c
cfile_plain $SRCDIR/mbf.c
cfile_plain $SRCDIR/mbi.c
cfile_plain $SRCDIR/mbs.c
cfile_plain $SRCDIR/mbse.c
cfile_plain $SRCDIR/pic.c
cfile_plain $SRCDIR/pice.c
cfile_plain $SRCDIR/pid.c
cfile_plain $SRCDIR/pif.c
cfile_plain $SRCDIR/pii.c
cfile_plain $SRCDIR/pis.c
cfile_plain $SRCDIR/pise.c
cfile_plain $SRCDIR/pmf.c
cfile_plain $SRCDIR/pmi.c
cfile_plain $SRCDIR/quc.c
cfile_plain $SRCDIR/quce.c
cfile_plain $SRCDIR/qud.c
cfile_plain $SRCDIR/quf.c
cfile_plain $SRCDIR/qui.c
cfile_plain $SRCDIR/qus.c
cfile_plain $SRCDIR/quse.c
cfile_plain $SRCDIR/rlc.c
cfile_plain $SRCDIR/rld.c
cfile_plain $SRCDIR/smf.c
cfile_plain $SRCDIR/smi.c
cfile_plain $SRCDIR/sms.c
cfile_plain $SRCDIR/smse.c
cfile_plain $SRCDIR/tcf.c
cfile_plain $SRCDIR/tcfe.c
cfile_plain $SRCDIR/tci.c
cfile_plain $SRCDIR/tcs.c
cfile_plain $SRCDIR/tcse.c
cfile_plain $SRCDIR/tmf.c
cfile_plain $SRCDIR/tmi.c

# TCS211 version of Nucleus has dmc.c compiled without -o

CFLAGS="-mn -me -mt -mw"

cfile_plain $SRCDIR/dmc.c