コード例 #1
0
ファイル: v2.c プロジェクト: Manrul/Mikroprocesory
//pozostałe funkcje
void Licznik(void)
{
	static char wynik=0;
	char pom;
	
	pom=KbScan();
	_delay_ms(4);
	
	if(KbScan()==pom&&wynik!=KbScan())
	{
		if(pom==1&&licznik>MIN)
			licznik--;
		else if(pom==2&&licznik<MAX)
			licznik++;
		wynik=pom;
	}
}
コード例 #2
0
ファイル: main.c プロジェクト: kees2125/C-enbeded-software
	/* ??????????????????????????????????????????????????????????????????????? */
	static void SysMainBeatInterrupt(void *p)
	{
		/*
		*  scan for valid keys, key is pressed AND check if a MMCard is inserted or removed
		*/
		KbScan();
		CardCheckCard();
	}
コード例 #3
0
static void SysMainBeatInterrupt(void *p)
{
	KbScan();
	CardCheckCard();
}
コード例 #4
0
ファイル: main.c プロジェクト: aareschluchtje/C-programming
/*!
 * \brief ISR MainBeat Timer Interrupt (Timer 2 for Mega128, Timer 0 for Mega256).
 *
 * This routine is automatically called during system
 * initialization.
 *
 * resolution of this Timer ISR is 4,448 msecs
 *
 * \param *p not used (might be used to pass parms from the ISR)
 */
static void SysMainBeatInterrupt(void *p)
{
    KbScan();
}