Home

Hisense REX OS Reference Manual

image

Contents

1. OU API Tex def task Purpose ugumpagugumpumnmnpBbBigulu tutu Parameters Void rex def task Rex tcb type p tcb Unsigned long p stack Unsigned long p stksiz Unsigned long p pri Void p task unsigned long Unsigned long p param Argument How REX uses argument p tcb OOOUOUUUUY TCB 1L D DL D DO U DU H OOOUOUUUUUOREXQOOUOUUUUU OOUOUOUUUUUUUUUUUUUUUU P stack HOoOg P_stksiz OOOO REXDDDDUBLU 16bitQOUUU P_pri ui p task OOOUOUUUUREXOOUUUUUUUUOO ugupgmuamugamaupiugiuiguubtul I Dm P param REX TUOHOUOUUUQ0000U0UU REX ugupgumugmapiugguidguubbHul LI LI L Rex self Purpose ugumpaugugmgpmumnpnpbBBBuuuuumuiut TCBL O0 N Parameters Rex tcb type rex self void Proprietary and Confidential Created by wanghongbin 7 Copyright by Hisense Mobile Communication Tech Co Itd 2005 2006 Flisense iisf amp ee i m T OOU APIO I OOO APIQ LU 00 D J rex set priQ rex task priO rex get priO Purpose OOUOUUUUUUUUOOU0UO Parameters Unsigned long rex_set_pri Unsigned long p_pri Parameter How REX uses parameter P_pri REX I D L L HH J rex task priO Return value What REX does Unsigned long REX rex task priO L D H LI Purpose uBugupgupupgupupBguguuuiiuluu Parameters Unsigned long rex task pri Rex tcb type p tcb Unsigned long p pr Parameter How REX uses parameter P tcb REX D TCBH DB DO D U P pri REX UU
2. unsigned long cnt rex_tcb_type tcb_ptr rex_sigs_type Sigs struct struct rex_timer_struct next_ptr struct rex_timer_struct prev_ptr link rex_timer_type Field How REX uses field Cnt REX rex set timerO EL E LED D D D ISR O O rex tick ent 10 OU ent Of REX uutiuttutlll cb ptr Rex def timerO O 0 E EE E E E E E U0 OREX uuu rCBU D DD DB D D U Sigs HOUUUUUUUUUO TCBIID LL D UL UL Link REX D D LI 000 00 OU D rex tiekor O Ll u ul Timer API 6 U Lirex tickQ rex def timer rex set timer rex get timer rex clr timer rex timed waitO Purpose OOUOUU ROUDBDUDDUDURExHBDUDDUBUDUBHDOUDOUODU 10 000 OOUOUUUUU Parameters Proprietary and Confidential Created by wanghongbin 12 Copyright by Hisense Mobile Communication Tech Co Itd 2005 2006 FHisense ifs Void rex tick unsigned long p ticks OOUUUUUUUU Purpose OOUOUOUUUUUUUUU0UO Parameters Void rex_def_timer Rex_timer_type p_timer Rex_tcb_type p_tcb Rex_sigs_type p_sigs Parameter How REX uses parameter P_timer P_tcb P_timer gt tcb_ptr p_tcb P_sigs P_timer gt sigs p_sigs UD 10 OO link count 00 20 OU TCB sigs 30 OO active FALSE note HHOUUWOUUUUUUOUUUUO INTEOCK I D C D Rex set timer Purpose gupngaupugngupggugupupBupupgupgguppggggggpugagubduu OOUOUUOUOUUUUUOOY Parameter Unsigned long rex_set_timer Re
3. OOO rex_priority_type p pri P 00000 void p_task dword 000000 dword p_param 0000 Proprietary and Confidential Created by wanghongbin 20 Copyright by Hisense Mobile Communication Tech Co Itd myge M md Hisense iis fs jJ RNC a PRU RR Change to Supervisor mode Lu NEIN NR i EE GERM HE ifndef T WINNT void rex set cpsr PSR Supervisor PSR Irq Mask PSR Fiq Mask endif ee cf ph cl ee ee eae eS Se SS A0000 DI oe cae RS TEE NOR RENE E CUN CE RERO INTLOCKQO QOUUGddO v rex_int_stack rex_stack_word_type p_istack ae ae ee ae eS eee TOUOUUUUUO E i POEET Oe ee a ea rex_null_timer cnt 0 rex_null_timer tcb_ptr NULL rex null timer sigs 0x0 rex_null_timer link next_ptr NULL rex_null_timer link prev_ptr amp rex_timer_list rex_timer_list link next_ptr amp rex_null_timer rex_timer_list link prev_ptr NULL rex_task_list link next_ptr amp rex_kernel_tcb rex_task_list link prev_ptr NULL rex_kernel_tcb link next_ptr NULL rex kernel tcb link prev ptr amp rex task list rex cur task O rex best task 0000000000 Proprietary and Confidential Created by wanghongbin 21 Copyright by Hisense Mobile Communication Tech Co Itd mz ge nas ame 2005 2006 rlisense 7 fz 2 CHEESE CORR EIN ean Re ARUN EE NAL RR NES EE rex curr task amp rex kernel tcb rex best task amp rex kernel tcb rex def task amp rex
4. E U I 1 U LI U gt D ILU LI U Rex sched D DB B E HB E E E 1 EU 0 ex eurr task O 0 D 0 E E L rex best task gt DUOUOUUUUUUO gt UU rex_sched O Di D UH BH DBOB D UD D U D U LEAF NODE rex sched mrs a3 CPSR Save the CPSR for later or al a3 4PSR Irq Mask locks interrupts msr CPSR c al and al a3 PSR Mode Mask cmp al 4PSR Supervisor If not in Supervisor mode do not swap bne rex sched exit 1 until we revert back to task level Proprietary and Confidential Created by wanghongbin 23 Copyright by Hisense Mobile Communication Tech Co Itd gs za 2005 2006 rlisense sFH fe ee z z i ldr a4 rex_defer_sched deferred sched flag address mov a2 1 defer sched flag TRUE strb a2 a4 turn flag on test for TASKLOCK ldr a2 rex sched allow load scheduling flag Idrb a2 a2 dereference sched flag cmp a2 0 compare with FALSE beq rex sched exit 1 return mov a2 0 If not TASKLOCK then fix up the strb a2 a4 defer sched flag ldr a2 rex best task load the best task into a2 ldr a2 a2 dereference best task ldr a4 rex_curr_task load the current task into a4 ldr al a4 dereference current task cmp a2 al if current task best task just return beq rex_sched_exit_1 str a2 a4 setrex curr task rex best task mov a4 al a4 points now to the last former current task ldr al a2 FREX TCB SLICES OFFSE
5. OOOO rTeennupDuggB pdgdBdgDUOLBD TCB sigs O OU Parameters Rex sigs type rex clr sigs Rex tcb type p tcb Rex sigs type p_sigs Parameter How REX uses parameter p_tcb OOUOUUUUUUO TC U LD P_sigs ummuBauuutiluumEsxr nuu 0 UU TCBsigs 0 D HE D HU DI Return value What REX does Rex sigs type UDUDDUDREX LD TCBsiss D D D U D DU UBBUDBBUDUul caller UBHEUH 1 Lock interrupts 2 Copy TCB sigs into temporary variable prevSigs 3 clear p_sigs from TCB sigs 4 Unlock interrupts 5 Return prevSigs Proprietary and Confidential Created by wanghongbin ll Copyright by Hisense Mobile Communication Tech Co Itd z gs Ia 2005 2006 rlisense 7 fe REX timers REX timers 0 O 0O00 REX D D D U D D D rex timer stet D 000000000000 REX D DL D U 00000000L rex timer struct O0 O O rex def timer Rex def timer L1 EH EH E E LU T 000 rce npibppmibpmumaugugiuul 5B5B8B Tcs O00000 Dutttututut uU Rex set timer 1 LI D D D D D D D HU D UH UU H ODD D D D B D D 7E CE OI OLEI up uuututututlt uuu ggdgudutuutuuceuntnb ISRISR I rex ticko Rex tickO D D UH H B D D HO D D HO 1D BEBE BE 7E CELO CE O DL OL B 7E CE 7E 67 U CU tpummiuuuttlrextucko DUUUOUUUOUUUUUDUUUUO TCB DIL LU LU UL ugggugguggBBaBHBmImgduuuiutuui utubiuLbb rex set timero UL U U U U uU putt OOUOUUO typedef struct rex_timer_struct
6. PCD DU DU e DIAGOOOUUUUUUUUUUUOUPCOOUUUUUUUC bMSS DLDD U e DIAGUOOUUUUUUUUO Boot Proprietary and Confidential Created by wanghongbin 18 Copyright by Hisense Mobile Communication Tech Co ltd am m m Subs O00 Hisense e Boot D Ll B DL UD U main uBgupuggupggugupgugupBagdgdg ReMBIBDUDDUDULUDUULUDUULULUU e bot HOOUUUU provides the reset vector sets up exception handlers tests and initializes memory initializes the MSM initializes clocks needed by application level services to initialize the rest of the MSM Proprietary and Confidential Created by wanghongbin 19 Copyright by Hisense Mobile Communication Tech Co ltd m oa dus e Hisense 0 20 Uu UU pDpubuitututlut rex inito 1D D int main void rex_init void irq_stack uuu IRQ Stack Size 00000 amp mc_tcb WO000 TCB void mc_stack t tt MC_STACK_SIZ ugluluull ltl MC PRI 00000000 TE mc task 000000 OL QOUUUUUUU0U return 0 end of main 000 REXINIT O00000 REX DDBODDLULULDLDLUL ptask O rex QQ pul p tcb HH D DB EH E D U EH D D 00 D task control block p task 000000000000 eA a is a ut uguguggugggmnmumumuuggggggggggpbBpgagbBpBuupnuuguuggggagBBaD O0 void rex_init void p_istack 000 rex stack size type p istksiz t E D U rex_tcb_type p tcb 000000 void p_stack il rex stack size type p stksiz
7. Question 200 0000000000 RX000000 OO rexintO00000000000000000000000000 TcE00000000 0DO00 0 O C O 000000000000000000000000000000 rex inito 00000000 esu O 0O 000000000000000000000 REXDOOUDOU 000 rexinit00 0000 Question 3 0 000000000000000 0000000000000 RX000000 o DO00 0 O C O C00C 0O00000C0000000000000000000000000 REX D0 0000000000000000000000000000000000000000 000000 ceupgumnuuguupguugug REXO C0 C0 0000 0 0 0 0 ooo 000000 REXHDUDUU Ey Ea EIE Oo Proprietary and Confidential Created by wanghongbin 16 Copyright by Hisense Mobile Communication Tech Co Itd z gs z f 2005 2006 rlisense sFH fs O 10 e DOUOUUOUOUUUNUOUUUU0UUOD uBupuupnupguupggupgaugugngaupggpBupbpgHpggpou e DnuusuaupbpauauBuuulul UOUOUUODUUUUUUUUUN buffer UOUOUUUUDUOO OOUOUUOUUUUO PORE OOo eo e DUCOUOUUUOUUUUUOUOCY xxemdaon 000 x iliuuullutllu e 000 void snd_cmd snd packets type accepts packets of type snd packets type queues the packet on the snd cmd q and sets the associated command signal for the snd task Memory Management via Queues e DMSSHOOOUUUUUUDUU0UUO e inuusuiugssgbuuuguggogbBumuuggapiuuuuuubibtutttuttut tu ugggguggggdgssmsums OUUU e Iuututututulutttl my data type buffers 10 q type my q q init amp my q for int x 0 x lt 10 x q_put amp my_q q_link amp buffers x amp buffers x gt link OOU0U REX J DUDB BH D UD D OUU rex def sk QUQQUQUQUQUQUUUUUUUUUD
8. TCB D B HU D U U Return value What REX does Unsigned long REX B H H B Ui D B i D U Purpose UOUOUUUUU0ON Parameters Unsigned long Rex_get_pri void Return value What REX does Unsigned long REX TCBOUUUUUUUUUD Proprietary and Confidential Created by wanghongbin 8 Copyright by Hisense Mobile Communication Tech Co ltd m oa Subs aO0 Hisense REX DD BH B LU REX UOUUOQUQUUO0 TCBE LLL feld m segs QUUUUUUUUOUUUUUUUUUUO m wat QYOUUOUUUUUUUUUUUUUUUUUUUUUUUUO OU waceppnmna agasgsuguaugpgumuagaagugiuguu ul REXO 0O TCBIIT UL UL tL uguBuuBiuuumi wat tutt OO API H D D H D 0 D rex waitQ rex set sigsO rex get sigsO rex clr sigsO Purpose uggupngaupgggaupbuagiglunudu ul Parameters Unsigned long rex wait Rex sigs type p sigs parameter How REX uses parameter P sigs REX DB HN B HH HH D B 0 D U D UO DT U TCB wait O00 0 REX L1 U U LU U HU U LU uguugauggugggggaiapHDEHu tul O rex waitO D Return value What REX does Rex sigs type Rex wait m OO wat 1putututututulutlut m pnuuuuuuluuuuusbu uuiuilulibbDb sett 00000 UD 1 Lock interrupts 20 O00 TCB sigs OO0 wait OOD 30 DOOUOUUOO retVat O TCB sigs unlock interrupts O O retval 44 1 D D D UO HEU D wait 1 D D O TCB Wai sp puuuuiiuiuuuiuubE 60 D D 0 UU Copy TCB sigs O O O
9. retVal Unlock interrupts O retVal Purpose Rex set sigs0 O0 000000000000 D TCB sigs field 0 0 D D UD U U Parameters Rex set sigs Rex tcb type p tcb Rex sigs type p_sigs Proprietary and Confidential Created by wanghongbin 9 Copyright by Hisense Mobile Communication Tech Co Itd 2005 2006 rlisense isf Parameter How REX uses parameter p tcb OOUOUOUUO TCBI D UU REX TCB sigs NL Hu D UD DU D UBL DU REX JHDUDBOB DUD D U D Uu U UREX DL D U DU TCB wait C O U D D U gggnagpagggiuduilibdubu UODUOUUUUUD Return value What REX does Rex_sigs_type REX TO UUUUU0QUUUUUUT TCB igs IU prev_sigs 0000000 prev_sigs H BHL 1 Lock interrupts UU TcBsigsQOUUUU prevSigs OOO OOUUUUD TCB igsl Unlock interrupts O O prevSigs Purpose OOUU0 TcBrH OOO set nut Parameters Ew x de v T9 Rex sigs type rex get sigs Rex tcb type p tcb OO TCB igs TCB wait D LC HH ED HL D H D TCB wait O00 Parameter How REX uses parameter p tcb OUOUOUUUUUON TCB LT Return value What REX does Rex sigs type REX TCB sigs Uu 1 Lock interrupts 20 Copy TCB sigs O L currSigs O 3 Unlock interrupts 40 O O currSigs Proprietary and Confidential Created by wanghongbin Copyright by Hisense Mobile Communication Tech Co ltd 2005 2006 Hisense iiaf amp ee Purpose
10. Copyright by Hisense Mobile Communication Tech Co ltd ym e 2005 2006 rlisense sia fe REX OSU HDD KKK K K K K K K K K se K K K K K K K K K K K K K K K K K se K K K K K K K K K K K K K K K K K K K K eee eee eee Copyright c by Cat King All rights reserved UU U REX OS J UU O LL ver1 0 ooog O Cat King I D D 2004 100 40 xK K U uuu L D LI Ver1 0 000 OQ Cat King jJ DU DI 2005 o8 10 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDLDLLLLLLLEL Proprietary and Confidential Created by wanghongbin 1 Copyright by Hisense Mobile Communication Tech Co Itd m of anne S00E Hisense Preface Declaration In general I will freely answer any questions that I receive by email or point you in the direction of a resource that may be of assistance At the moment I am busy with a couple of large ongoing projects and don t have the time to work on custom examples or small software projects I would however be willing to entertain job offers Read the whole thing If you have a question during one section of the tutorial just have a little patience and it might just be answered later on If you just can t stand the thought of not knowing at least skim or search yes computers can do that the rest of the document before asking the nice folks on IRC or by email Another thing to remember is that a question you might have about subject A might end up being answered in a discussion o
11. EX EH D DB B D Ul TH uu pgutuututtl O00000 P_istksiz REX 1 P tcb OOOO TCB REX 0 BD U UO rex def taskO O O O 0 00O Tc DD uuitulllut P stack Rex def task O O P stksiz Rex def taskO O O P pri Rex def taskO O O P task Rex def taskO O O P param Rex def taskO O O D D U E 1 Lock interrupts 20 00000 TCBHDDLD D rex def task DD ODD D UU 3 Unlock interrupts Proprietary and Confidential Created by wanghongbin 4 Copyright by Hisense Mobile Communication Tech Co Itd gs z f2 2005 2006 Hisense 7 fs ee REX DD D D LU OO REXDDDIUDDDO O REXDDLULDLULULULULULULULULULULULULU rex tceb struct TCBs IT E FETTE HE ET CE EET EE EE HE ET EE EE ELLE L 9 uuu tt ugggggggagBgBBHBmi m tullutdlutgtubt B DDDUUUULULUL rex wait orrex timed wait rex wait 0 O0 0 TCB 1 D HU D UU DO D DO B B D BE 7E 7E 7E CI 7 UE 7 UE U D D H0000 OOO0O0OO 30000 AQ0OOOOOO 10000000 10000 BUOY AUD UU OOUOUUU Bgood agg DHOUOOUOUUUUUOU0N Bggupnagusenup4uggupgsuagucpupnaag SOU AUBDUDDUDU Q L1 m r3 nuuggupgupBupgaupBaupBagudguudubdlutlu 0O00 20000 A0000 BUUUOY 10000 300 000 BHDUBUDUDUOUU U AU OH G m ENE r1 EJ 0000 WROUDOUUUOUUUOUOUUUUUUOUUUCOUOO ugguupuupugpgaupguppBuumupgupbBggupBagagBBBDOHU Uu UUOOUUUUUDUO ISR OUUUUUU uugpupgupgngaaupugggugggagBagHBdgagl IRI LDUU UUOUOUUUUU0N uuupupguupungaupuuguggupBgpBaagpbuDdHudlubu uggupgupubpgupupngagupggggBgHBBibd
12. Hubu b LJ EI ELJEIXEtIIrrEEITEtItE LJEX IEJ E EJ ES EE E E 0 0 L OOUOOUU TcBHBDUDBOBBUDUDOUDUUDUDOHDUDOUDULl 0 0 0 Proprietary and Confidential Created by wanghongbin 5 Copyright by Hisense Mobile Communication Tech Co Itd m of anne S00E Hisense REX DD Dt REXDOUDUBHDBUDOHD 10 65357 10000000000 enBnupnaldauu uREXDOBDOIBOUDBUgBusdggupgBuDu RSExDOUDUD DU 32bip p DUUD UU UU UBgUBgDBHD 65535 0 REx0 000000 S535QOU OU MUUUUUOD0Y 16 bit uBupngaupnugugupguugupggugupnggpBuggHupBu REXDHUDUDUUDU Uu OOUOUUUDUOO RExDHDUDUDUD Ut OOOUUUUU TCBBjDUdHBOUDBHUHDOUDOUHDBUDBUUDUUHOUDOUDOUDU TCBHEIDUDU UBUuu Typedef struct rex tcb struct void sp void stack limit word slices rex sigs type sigs tex sigs type wait word pri struct struct rex tcb struct next ptr struct rex tcb struct prev ptr Hink rex tcb type Field How REX uses field Sp amp stack limit sp D UUUUDULLtutututut REXO NDD O Stack limit O0 00000000 Slices ggggggggBBBBBOBOOHUD Sigs uguuguggugggggsbi eS LLL ULDEBBOHHHEEBDgEdgHgBmgH ba i0 D UuBagdagubpBuuiuu bibl Wait uggggaugddaudaedidde eddtltl uuiuuiiulie udt b tdnltlu Pri tu link 0 TCB0000000000000 Proprietary and Confidential Created by wanghongbin 6 Copyright by Hisense Mobile Communication Tech Co Itd m of anne S00E Hisense
13. LH 0 0 0D D DBDBDO D HD B DEO DL CL DLE OE UE UO D OD D D D D D LU IL LL D rex def taskOl LL B D B0 0 BD D B B UU D D D HL D D D MC ACK SIG QU REX L1 D D D D D D E task 1 D C D D U D UH steep OOOD sleep taskOL D D D U sleep O0 000000000000 MC ACK SIGLO D MC EO D U UO 7B D D U 7 UT I TASK START SIG U0 REX I 1 L L H H1 MC T L1 D D C D UE D UU D LU 2 Mc taskO OO O O0 0O MC ACK Sic DD i 0 DO DDOD BD EUODUU UU tt tuttut OOUOQUUUOUO TASK START SIGD O 0 D MC ACK SIGII 1 D DU U D UE U LU U LU uuuiuiuuiuiuiuiulli MCOU MC ACK SIG ID D MCI U D B D B D D 7E DT ut EFS gt SFAT gt UIM gt NV gt ERROR SERVICE 2USBDCA SLEEP QDSP VOC gt SND gt VOICE SERVICE TDSO2 HS DIAG2 PS SECURITY SERVICE CM UIOPDSM2 BT 30 VHOOUOOUOUUUUUO NYOOO battery therm RW RFOUOOOOUOUUUUUOO uuumgiuuuuuupubBtrturtutl 47 HD B HL BL O TX RXSSRCHORXTX2 DS AUTHODH2 DOG SU U0 COMADUUUOUUUUUUUUUUUUUUOYN offline p D 60 D BU UTD D LU OU effline online power down reset TM D B DL LE C L 1 Proprietary and Confidential Created by wanghongbin 28
14. T load up the slice count add al al 1 increment it str al a2 REX_TCB_SLICES_ OFFSET store it stmfd sp Ir Return address Proprietary and Confidential Created by wanghongbin 24 E Hisense Mobile Communication Tech Co Itd Fi sense i f sub Sp sp 8 no need to store r12 r14 in task context stmfd sp r4 r11 sub sp sp 16 Subtract al a4 location ifdef APCS_INTERWORK tst lr 1 Test for thumb return address orrne a3 a3 PSR_Thumb_Mask Return in Thumb mode else orr a3 a3 PSR_Thumb_Mask Return in Thumb mode endif stmfd sp a3 First line on rex_sched saves CPSR in a3 str sp a4 REX TCB STACK POINTER OFFSET mov al a2 al the current task rex start task 1 is an alternate entry point Void rex start task rex tcb type This implies that al current task tcb pointer rex start task fif defined TIMETEST bl func timetest endif Restore the user state note this may not be the state saved above since the call the rex_sched may have changed which stack the handler is working on Note a context switch will happen here fif defined FEATURE STACK CHECK Idr sl al REX_TCB_STACK_LIMIT_OFFSET Stack Limit endif ldr sp al REX_TCB_STACK_POINTER_OFFSET Load the stack pointer Idmfd sp al Restore SPSR in al msr SPSR_f al Load SPSR Proprietary and Confidential Created by wanghongbin 25 Copyright by Hisense Mob
15. UUREXOUUUOUUUO 0 REXDDUDUBUBDBDUDUHDUBDUOUU UD 0 pndssji nyiuBupaBupunga upBgugpBaupagapapoudgigbuudublutu Mcpguguupnupguuggupnagauguuguuu uBuguggupggHpBgpbagHuguudu lu ugupuggupguggupguggpggupBu McDHBDUUBUUDULU uBuguggaupguuggupguggupbpggggpgau uggugugagaupBugdubuutlu Proprietary and Confidential Created by wanghongbin 17 Copyright by Hisense Mobile Communication Tech Co Itd mz ge zem m 2005 2006 ri sense 7 fs ER SHE CER BEES rex_def_task REX HARES w ERE rex wait START REX resumes MC Task uchiga iia SATIRE REX resumes this task rex set sig START when it becomes the highest priority ready task lal FES BP Common services queue General purpose FIFO bit Bit manipulation routines Used to pack and unpack bit stream into fundamental type aligned memory CIC cyclic redundancy check routines handles CRC16 and CRC30 ran random number generator Qw 64 bit quad word arithmetic routines Misc special purpose register access routines Task task control block and stack definitions Support headers various general definition header files such as gt gt condef h common global definitions gt gt arm h ARM specific definitions gt gt processor h general purpose include to abstract the CPU Diagnostics e DpiG jDnDU REXO00O0D0OO0OO0UOOO0UOOO
16. f B or C or maybe L So just look around a little Fell free to contact me cat ki ng wang gmai l com Ok I think that s all the ranting I have to do for the moment let s start my working Proprietary and Confidential Created by wanghongbin 2 Copyright by Hisense Mobile Communication Tech Co ltd am m A 3 bs OO0 Hisense Contents 33 2 8 BL eee eaa aE E 4 ss a TR ERE RR 5 Pe ale URL RU M EE E 6 WE BiS 7 ETE IS a a A nentes E E EE E SE ttp CE E 8 REKE RENT 9 E E Pere A A mash EA TEE E A 12 Common RR sriain a a a 16 O GT insinte aE E EE EMEN CN MEN 17 Diao MOS le WR 18 BOO E eeen aea a e E A E E EA E A EA T E A ER EE E A E TETO T 18 A e E E E ce ee eee 20 e E EEE A E E AE ET E 28 Proprietary and Confidential Created by wanghongbin 3 Copyright by Hisense Mobile Communication Tech Co ltd m oa anne S00E Hisense REX OU maino D LL DD D DU rex inito 1 D U D D D D Rex initO 1 B B DU D U U D LU LUI UI U ugugmaggaggpgmumuagdgauguiuuuiuutiuttutlubrirtuuiuubrttututu uuu Rex init Purpose REX UUOUUU0 REXD D D U D D LU UU Parameters Void rex init Unsigned long p istack Unsigned long p_istksiz Rex_tcb_type p_tcb Unsigned long p_stack Unsigned long p_stksiz Unsigned long p pri Void p task unsigned long Unsigned long p param Parameter Hu uut P istack R
17. ile Communication Tech Co Itd myge x 2008 2006 Hisense iisfs msr SPSR c al Load SPSR mov al sp Load sp in al add sp sp amp 3c adjust 10 77 r12 Ir pc Idmfd al r0 r12 lr pc Load and return sp already adjusted rex_sched_exit_1 msr CPSR_f a3 Restore interrupts as prior to rex sched msr CPSR_c a3 Restore interrupts as prior to rex_sched LEAF_NODE_END END rex sched 000 rex start task 00 uggggugggggBBHBHBIm DD LLL L rex star task 1 rex sched 000 D D rex init D DL DL D U UL UO U U U U UU Alternate entries O entry node 1 D DJ LH LI LI LU OO Thumb mode OO uguuuluggagg Uu rex curr task HL D BH E ED E E E D teb uut UD DuBauBgHBaupDagu Du ENTRY NODE Alternate entries CODE16 Proprietary and Confidential Created by wanghongbin 26 Copyright by Hisense Mobile Communication Tech Co ltd 2005 2006 rlisense iif amp EXPORT rex start task rex start task ldr a4 rex_start_task_1 bx a4 ENTRY_NODE_END Proprietary and Confidential Created by wanghongbin 27 Copyright by Hisense Mobile Communication Tech Co ltd m of dus e Hisense 3a OU DMSST OOO mainO O O rex initO O O rex init0D D D D D LU LU LU U UU rex initO O rex task list rex timer list O rex def taskO D D BH D D D D D HL MC OOOQOUOO rex start taskO D 000 me taskO 1 Me saskOl
18. kernel tcb tcb void amp rex kernel stack 0 stack REX KERNEL STACK SIZE stack size 0 priority rex idle task function 0 arguments n M rex curr task O O rex best task D ED E E E HE EH Rha Bae oh NE EEEE TERESE rex_curr_task p_tcb rex_best_task p_tcb rex_def_task p_tcb tcb p_stack stack p stksiz stack size p pri pnronty p task function p_param arguments INTFREE rex_start_task p_tcb og mBmugmulugdg END rex_init Proprietary and Confidential Created by wanghongbin 22 Copyright by Hisense Mobile Communication Tech Co ltd m of r e Hisense uBupuggupBggpB pnuggHBdgbOcrexuluiu unuuBunmnadldid 000 0 REXQOUOUUUUUOUOUUUUUOY rex sched D B D U gupnuupubpgupupnga uBuggBgHDBpgHDBODBO UU Rex_sched 80u D uu BUD DB UDUd DUDBOHD UD D U D U gt DHUUU UUUUODUUUUUUUUODUUUUUUUUO Rex sched I ll L HUQUOOUUUUUUUUUUUD Rex_sched LH D D HU DB HL D UO UO B 7 D U D I EI UI DOUOUOOUUOT asklevel O interrupt level O O OU D tasklevel rex scheda t DH BDa d d d B 7B 7D U U D 7I 7 7 D I OUL interrupt level rex sched D D D D HU UH D E E D D task level 0000D gt O O00000 Rex_sched B E E E EL D D rex_curr_task rex best task
19. ts ee 7 Rex timed wait Purpose OOHUOUUO APIDDUDD APIQUUO upagugaggBugagggpngugBgpBgBggpBBgBgBgDREXDDDDLD D rex set timer OOO rex waitO Unsigned long rex timed wait Rex sigs type p sigs Rex timer type p timer Unsigned long p ent Parameter How REX uses parameter P sigs OO rex waitO O O P timer OO rex set timerO E E ED E E EB E E HD E D rex def timerO E EL L L P cnt REX 0000 rex_set_timerOQ ent Return value What REX does Unsigned long REX LH L H H UH U ent D U D U D Proprietary and Confidential Created by wanghongbin 15 Copyright by Hisense Mobile Communication Tech Co ltd 2003 2006 Hisense iiafs REX interrupt functions REXDDODnDpnagnnpnuguHpnpBpgHpBnpaaggn B INTLOCK B INTFREE e ARMUOUOUUUUUUUUUUU0DUUUE e IRODUDDUDULULDULULULLULULULULULuluLlut maas 00000 MSMUOUUUUODUU0OG e trampoline Tramp 00000000 D D BL D DI DI C CI CO D U HT U UO D D D HOU e ISR III 10 IRQ LH U LU U LU 20 ARMU OU IROD D UH DO OD OD D DI 30 IRQ I II D tramp isr tramp init 0 4 Tramp isr D D U U LU SQ Tramp isr D D U D C D UE UU U LU 60 OOU ISR LL tramp queue call D 0 00 0 0 U tramp queue call clock call back 7H U DU ImRQU UU LU 87 nugmuaugiuluggsgsabmiD Common questions Question 10 00 REXO000000000000 No REXOO000000000000000000000000000 0000000
20. x_timer_type p_timer Unsigned long p_cnt Parameter How REX uses parameter P_timer HOOUUGQODOUOUOD REXY ent p ent uuiiuiultltdedbbBbBbB LLL P ent UOUUUQUUUUUUUUOD REX p timer DUDBUDUD extiDaput ou Proprietary and Confidential Created by wanghongbin 13 Copyright by Hisense Mobile Communication Tech Co Itd am m e 2005 2006 Hisense sia fe Purpose uBgugupgupBgpBapgBapuududiuuu Parameter Unsigned long rex get timer Rex timer type p timer Parameter How REX uses parameter P_timer REx 0 O00O0O0OO0OOODO enc HB D D U Return value What REX does Unsigned long REX ent OOUOU 1 Lock interrupts 2 If ther timer is not active unlock interrupts and return 0 30 ODOUUOUUOUUNUOUUUUON 4 Unlock interrupts su Bunputu Purpose ugupggagupDaggaguuutlu Parameters Unsigned long rex clr timer Rex t mer type p timer Parameter How REX uses parameter P timer REX I HL HH UL D LU HI enc t O 00 I U LI D 00000000 Return value What REX does Unsigned long REX I E ent LH H E B D H E D ent 0000 uut 1 Lock interrupts 2 If timer is not active unlock interrupts and return 0 30 OO ent 4 Unlock interrupts SO Return the milliseconds value Proprietary and Confidential Created by wanghongbin 14 Copyright by Hisense Mobile Communication Tech Co ltd 2005 2006 Hisense m

Download Pdf Manuals

image

Related Search

Hisense REX OS Reference Manual hisense remote control manual hisense refrigerator user manual manual for hisense refrigerator hisense refrigerator instruction manual hisense upright freezer manual hisense ux user manual hisense manual network selection hisense tv manual pdf hisense refrigerator owner\u0027s manual hisense model number explained hisense serial number search hisense tv operating manual hisense codes for remote hisense refrigerator parts diagram hisense remote control instructions hisense tv remote manual hisense tv user guide hisense universal remote codes manual hisense 65-inch class r6 series hisense one for all remote manual hisense tv remote user manual how to contact hisense hisense tv manual download hisense small refrigerator manual

Related Contents

          Agilent Implementation of the Pressure Controlled Tee for Backflushing for the 7000 Series Triple Quadrupole Mass Spectrometer: Implications for Sensitivity          

Copyright © All rights reserved.
DMCA: DMCA_mwitty#outlook.com.