Beispiel #1
0
Datei: main.c Projekt: jeez/qmsi
/* Always-on periodic timer example callback function. */
static void aonpt_example_callback()
{
	++callback_count;

	/* Clear the timer so it can fire again. */
	qm_aonpt_clear(QM_AONC_0);
}
Beispiel #2
0
void aonpt_example_callback()
{
	bool pt_status = false;
	QM_PUTS("Periodic Timer callback\n");

	/* Clear the timer so it can fire again */
	pt_status = qm_aonpt_get_status(QM_SCSS_AON_0);
	if (pt_status == true) {
		qm_aonpt_clear(QM_SCSS_AON_0);
	}
}