Exemplo n.º 1
0
//フック関数
void user_1ms_isr_type2(void){
	StatusType ercd;
	ercd = SignalCounter( SysTimerCnt );
	if( ercd != E_OK ){
		ShutdownOS( ercd );
	}
}
Exemplo n.º 2
0
void user_1ms_isr_type2(void){
	SignalCounter(C_StopSensor_Alarm);
	static int a = 0;
 if(a == 10){
	SetEvent(BT_IMPLIZIT_MASTER2, BT_IMPLIZIT_MASTER2_EVENT);a = 0;}
a++;
}
Exemplo n.º 3
0
// nxtOSEK hook to be invoked from an ISR in category 2
void user_1ms_isr_type2(void){
	SleeperMonitor();
	StatusType ercd;

	ercd = SignalCounter(SysTimerCnt); /* Increment OSEK Alarm Counter */
	if (ercd != E_OK) {
	    ShutdownOS(ercd);
	}
}
Exemplo n.º 4
0
// nxtOSEK hook to be invoked from an ISR in category 2
void user_1ms_isr_type2(void){
	SleeperMonitor(); // must be called here if you use sleep function.
	StatusType ercd;

	ercd = SignalCounter(SysTimerCnt); /* Increment OSEK Alarm Counter */
	if (ercd != E_OK) {
	    ShutdownOS(ercd);
	}
}
Exemplo n.º 5
0
void user_1ms_isr_type2(void)
{
  StatusType ercd;
  ercd = SignalCounter(the_cpu_SystemCounter); /* Increment OSEK Alarm Counter */
  if(ercd != E_OK)
  {
    ShutdownOS(ercd);
    }
      }
//フック関数
void user_1ms_isr_type2(void){
	StatusType ercd;
	/*
	 *  Increment OSEK Alarm System Timer Count
     */
	ercd = SignalCounter( SysTimerCnt );
	if( ercd != E_OK ){
		ShutdownOS( ercd );
	}
}
Exemplo n.º 7
0
LOCAL void portSystemTickHandler( int sig )
{
	if ( ( TRUE == portInterruptsEnabled ) && ( TRUE != portServicingTick ) )
	{
		if ( 0 == pthread_mutex_trylock( &portSingleThreadMutex ) ){
			portServicingTick = TRUE;
			EnterISR();
			printf("In portSystemTickHandler().\n");
#if(cfgOS_COUNTER_NUM > 0)
			(void)SignalCounter(0);
#endif
#if(cfgOS_COUNTER_NUM > 1)
			(void)SignalCounter(1);
#endif
			LeaveISR();
			/* Release the lock as we are Resuming. */
			(void)pthread_mutex_unlock( &portSingleThreadMutex );
			portServicingTick = FALSE;
		}
	}
}
/* LEJOS OSEK hook to be invoked from an ISR in category 2 */
void user_1ms_isr_type2(void)
{
	StatusType ercd;

	cnt_ms++;

	ercd = SignalCounter(SysTimerCnt); /* Increment OSEK Alarm Counter */
	if (ercd != E_OK)
	{
		ShutdownOS(ercd);
	}
}
Exemplo n.º 9
0
void user_1ms_isr_type2(void)
{
    StatusType ercd;
#if 0
    /*check value of timestamp to prevent an overflow
    * if maximum value is reached reset it to 0*/
    /*TODO: Handle the time_stamp reset*/
    if(unlikely (timestamp == (uintmax_t) UINT32_MAX))
        timestamp = 0;
    else
        ++timestamp;
#endif
    ercd = SignalCounter(SysTimerCnt);
    if(ercd != E_OK)
        ShutdownOS(ercd);
}
Exemplo n.º 10
0
void user_1ms_isr_type2(void){
    (void)SignalCounter(SysTimerCnt);
}
Exemplo n.º 11
0
/*------------------------------------------------------------------------*/
void user_1ms_isr_type2(){

	SignalCounter(Contador); //pone en marcha el contador
}
Exemplo n.º 12
0
void user_1ms_isr_type2(void) {

	/* Increment system counter through a 1ms alarm */
	(void)SignalCounter(SysTimerCnt); 

}
Exemplo n.º 13
0
/* nxtOSEK hook to be invoked from an ISR in category 2 */
void user_1ms_isr_type2(void)
{
    /* Increment System Timer Count to activate periodical Tasks */
    (void)SignalCounter(SysTimerCnt);
}
Exemplo n.º 14
0
/*--------------------------------------------------------------------------*/
void user_1ms_isr_type2(){
  	//inicializamos el contador
	SignalCounter(Contador);
}
Exemplo n.º 15
0
/*------------------------------------------------------------------------*/
void user_1ms_isr_type2(){
 
    //SignalCounter(Contador); 
    SignalCounter(ContadorDistancia); 
}
Exemplo n.º 16
0
/**
 * 1msec周期割り込みフック関数(OSEK ISR type2カテゴリ)
 */
void user_1ms_isr_type2(void)
{
	(void)SignalCounter(SysTimerCnt); // Alarmハンドラ
	TecMusic::Instance().Player();
	SleeperMonitor(); // NxtおよびI2Cデバイスの使用時に必要
}