ad_astra/space_game/SpaceGame/src/driver/sleep/sleep.h
schmelczerandras 26a0fd884f Copy project
2020-04-19 12:48:06 +02:00

13 lines
278 B
C

#ifndef SLEEP_H
#define SLEEP_H
#include <stdbool.h>
#include <avr/io.h>
typedef bool (*FrameFunction)(uint8_t);
// frameFunction gets previousFrameTime (in milliseconds) as argument
void startFrameLoop(FrameFunction function, uint8_t frameLengthInMilliseconds);
#endif