#ifndef __MAIN_H
#define __MAIN_H

#include <stdint.h>

extern volatile struct DMX512{
/* DMX512 Tripple buffering */
uint8_t DMX512_buffer_0[64];
uint8_t DMX512_buffer_1[64];
uint8_t DMX512_buffer_2[64];
/* DMX512 Buffers pointers */
volatile uint8_t * DMX512_read;
volatile uint8_t * DMX512_read_prev;
volatile uint8_t * DMX512_write;
volatile uint8_t * DMX512_write_prev;
}DMX512_buffers;

extern uint8_t DIP_code;

#endif //__MAIN_H

