Apple-II-Joystick-to-USB-Ad.../inc/system.h
2017-09-17 14:12:49 -07:00

28 lines
502 B
C

/**
* System definitions and functions
*/
#ifndef SYSTEM_H
#define SYSTEM_H
#include <xc.h>
#include <stdbool.h>
#include "buttons.h"
#include "leds.h"
#include "adc.h"
#include "io_mapping.h"
#include "fixed_address_memory.h"
/*** System States **************************************************/
typedef enum {
SYSTEM_STATE_USB_START,
SYSTEM_STATE_USB_SUSPEND,
SYSTEM_STATE_USB_RESUME
} SYSTEM_STATE;
void SYSTEM_Initialize(SYSTEM_STATE state);
#endif