LCD-show/usr/fbcp-ili9341/tick.h

17 lines
319 B
C
Raw Normal View History

2021-01-27 09:18:51 +01:00
#pragma once
#ifndef KERNEL_MODULE
#include <inttypes.h>
#include <unistd.h>
// Initialized in spi.cpp along with the rest of the BCM2835 peripheral:
extern volatile uint64_t *systemTimerRegister;
#define tick() (*systemTimerRegister)
#endif
#ifdef NO_THROTTLING
#define usleep(x) ((void)0)
#endif