-
Notifications
You must be signed in to change notification settings - Fork 0
/
video.h
30 lines (21 loc) · 821 Bytes
/
video.h
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
#ifndef __VIDEO_H__
#define __VIDEO_H__
#include "stm32f4xx.h"
#define VID_HSIZE 400 //400 ou 200
#define VID_VSIZE 200 //200
#define VID_PIXELS_X (VID_HSIZE * 8) //Pixels
#define VID_PIXELS_Y VID_VSIZE //Lines
#define VID_PIXELS_XR (VID_PIXELS_X + 16) //
#define VID_HSIZE_R (VID_HSIZE + 2)
extern __align(1) __IO unsigned char fb[VID_VSIZE][VID_HSIZE+2]; /* Frame buffer */
//extern __align(1) __IO unsigned char fb2[(VID_VSIZE/2)][VID_HSIZE+2] ; /* Frame buffer */
extern volatile unsigned char SwitchFlag;
extern volatile unsigned char processready;
extern volatile unsigned char istopdrawing;
extern volatile unsigned char isbotdrawing;
void eraseSquare(int x, int y, int height, int width);
void vidClearHalfScreen(void);
void vidInit(void);
void TIM8_Init(void);
void TIM5_Init(void);
#endif