gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:out_w from mtkernel_3/lib/libtk/sysdepend/cpu/tx03_m367/ptimer_m367.c (0.00 seconds)
mtkernel_3
lib/libtk/sysdepend/cpu/tx03_m367/ptimer_m367.c - 7.5KB - 236 lines
67:                 DisableInt( intno);
68:                 out_w( TMRB_TBxEN, TBxEN_TBEN );      // Timer module disabled.
69:         }
109: /* Timer initialization */ 110: out_w( TMRB_TBxEN, TBxEN_TBEN ); // Timer module enabled. 111: out_w( TMRB_TBxRUN , 0); // Stop Timer & Counter clear. 112: out_w( TMRB_TBxFFCR, TBxFFCR_TDE); // Trigger disable 113: 114: if( limit != PTMR_MAX_CNT ) { 115: out_w( TMRB_TBxMOD , TBxMOD_TBCLE | p_cb->clock); // Set Clock & Up-Counter control. 116: out_w( TMRB_TBxRG1 , limit + 1); // Set limit time. 117: out_w( TMRB_TBxIM, TBxIM_TBIMOF | TBxIM_TBIM0 ); // Set interrupt mask. 118: } else { 119: out_w( TMRB_TBxMOD , p_cb->clock); // Set Clock. 120: out_w( TMRB_TBxIM, TBxIM_TBIM1 | TBxIM_TBIM0 ); // Set interrupt mask 121: }
133: /* Start Physical Timer */ 134: out_w( TMRB_TBxRUN , TBxRUN_TBRUN | TBxRUN_TBPRUN ); // Start Timer. 135:
149: DisableInt( intno_tbl[ptmrno - 1]); 150: out_w( TMRB_TBxEN, TBxEN_TBEN ); // Timer module disabled. 151: