[f80c36]: includes.h Maximize Restore History

Download this file

includes.h    55 lines (43 with data), 1.6 kB

 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
Copyright (C) 2011 Georg Ottinger
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#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__