view components/ccd @ 263:b5e8dfd114a7

Switch_ON(): go into charging boot mode on either CHGSTS or CHGPRES If someone were to plug and then unplug a charger into a switched-off phone in an extremely brief "glitch" manner, we should do an automatic power-off on boot in this condition. When we were checking only CHGPRES in Switch_ON(), we would go into Misc boot state instead, which is undesirable. Now if we have a CHGSTS but not CHGPRES condition, we will go into charging boot mode, and FCBM will then do the automatic power-off upon detecting absence of the charger in its periodic polling.
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 14 May 2021 05:50:36 +0000
parents e58a5bb12de4
children
line wrap: on
line source

# Building ccd.lib using TCS3.2 CCD source

CFLAGS="-mw -x -pw2 -me -mt -o -g -mn"

# Defines

CPPFLAGS="-DM_INTEL -DSHARED_VSI -DSHARED_CCD"
CPPFLAGS="$CPPFLAGS -DCCDDATA_STATIC_DATA"
CPPFLAGS="$CPPFLAGS -D_TMS470 -DNEW_ENTITY -DERR_TRACE_CCD"

if [ "$MEMSUPER" != 0 ]
then
	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
fi

# Includes

CPPFLAGS="$CPPFLAGS -I$SRC/gpf/ccd"
CPPFLAGS="$CPPFLAGS -I$SRC/gpf/inc"
CPPFLAGS="$CPPFLAGS -I$SRC/gpf/inc/nuc"

# Source modules

SRCDIR=$SRC/gpf/ccd

cfile_plain $SRCDIR/ccd.c
cfile_plain $SRCDIR/bitfun.c
cfile_plain $SRCDIR/cdc_std.c
cfile_plain $SRCDIR/cdc_com.c
cfile_plain $SRCDIR/ccd_err.c
cfile_plain $SRCDIR/ccd_store.c
cfile_plain $SRCDIR/gsm1_tv.c
cfile_plain $SRCDIR/gsm1_v.c
cfile_plain $SRCDIR/gsm2_t.c
cfile_plain $SRCDIR/gsm3_tv.c
cfile_plain $SRCDIR/gsm3_v.c
cfile_plain $SRCDIR/gsm4_lv.c
cfile_plain $SRCDIR/gsm4_tlv.c
cfile_plain $SRCDIR/gsm5_tlv.c
cfile_plain $SRCDIR/gsm5_tv.c
cfile_plain $SRCDIR/gsm5_v.c
cfile_plain $SRCDIR/gsm6_tlv.c
cfile_plain $SRCDIR/gsm7_lv.c
cfile_plain $SRCDIR/bcd_mnc.c
cfile_plain $SRCDIR/bcd_nofill.c
cfile_plain $SRCDIR/bcdeven.c
cfile_plain $SRCDIR/bcdodd.c
cfile_plain $SRCDIR/gsm1_asn.c
cfile_plain $SRCDIR/csn1_s1.c
cfile_plain $SRCDIR/csn1_sh.c
cfile_plain $SRCDIR/s_padding.c
cfile_plain $SRCDIR/t30_ident.c
cfile_plain $SRCDIR/asn1_bitstr.c
cfile_plain $SRCDIR/asn1_octet.c
cfile_plain $SRCDIR/asn1_integ.c
cfile_plain $SRCDIR/asn1_seq.c
cfile_plain $SRCDIR/asn1_choice.c
cfile_plain $SRCDIR/no_code.c
cfile_plain $SRCDIR/asn1_choice_ext.c
cfile_plain $SRCDIR/asn1_seq_ext.c
cfile_plain $SRCDIR/asn1_integ_ext.c
cfile_plain $SRCDIR/asn1_opentype.c
cfile_plain $SRCDIR/asn1_objid.c
cfile_plain $SRCDIR/noncritical_ext.c
cfile_plain $SRCDIR/critical_ext.c
cfile_plain $SRCDIR/ccd_elem.c
cfile_plain $SRCDIR/s_padding_0.c
cfile_plain $SRCDIR/csn1_s0.c
cfile_plain $SRCDIR/hl_flag.c
cfile_plain $SRCDIR/freq_list.c
cfile_plain $SRCDIR/fdd_ci.c
cfile_plain $SRCDIR/tdd_ci.c
cfile_plain $SRCDIR/freq_list_com.c
cfile_plain $SRCDIR/csn1_concat.c
cfile_plain $SRCDIR/break_cond.c
cfile_plain $SRCDIR/csn1_sx.c
cfile_plain $SRCDIR/csn1_choice_1.c
cfile_plain $SRCDIR/csn1_choice_2.c
cfile_plain $SRCDIR/csn1_choice_x.c
cfile_plain $SRCDIR/csn1_sh_opt.c
cfile_plain $SRCDIR/csn1_s1_opt.c
cfile_plain $SRCDIR/csn1_s0_opt.c