LCD-show/usr/fbcp-ili9341/tick.h
2021-01-27 08:18:51 +00:00

17 lines
319 B
C

#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