Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[c1aed7]: includes.h Maximize Restore History

Download this file

includes.h    37 lines (29 with data), 880 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef __INCLUDES_H__
#define __INCLUDES_H__
#define OGG_QUALITY_5
#include <string.h>
#include "intrins.h"
#include "stm8s.h"
#include "stm8s_gpio.h"
#include "stm8s_spi.h"
#include "stm8s_uart2.h"
#include "helper.h"
#include "init.h"
#include "plugin.h"
#include "vs1053.h"
//#define UART_BAUDRATE 921600
//#define UART_BAUDRATE (115200*2)
#define UART_BAUDRATE (83333333.0/32.0/11) //230400 on the Xport
//#define UART_BAUDRATE 651041
#define UART2 ((UART2_TypeDef *) UART2_BaseAddress)
#define CLK_GetClockFreq() 14745600
#define STATE_IDLE 0
#define STATE_STARTSTREAMING 2
#define STATE_STREAMING 1
#define STATE_STOPSTREAMING_STAGE1 3
#define STATE_STOPSTREAMING_STAGE2 4
#define GetElapsedLoops(x) ( loopcounter - x )
extern unsigned short loopcounter;
extern void SetLedLeft(unsigned char led);
extern void SetLedRight(unsigned char led);
#endif //__INCLUDES_H__