This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SI_EFM8UB2_Register_Enums.h> | |
#define UART_BUFFERSIZE 64 | |
/* Supported function codes */ | |
#define _READ_SINGLE_REGISTER 0x04 | |
#define _SET_SINGLE_REGISTER 0x06 | |
/** TIMER INTERRUPT INIT **/ | |
#define SYSCLK 12000000/8 // SYSCLK in Hz (12 MHz internal oscillator / 8) the internal oscillator has a tolerance of +/- 2% |