-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
47 lines (35 loc) · 949 Bytes
/
config.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef __CONFIG_H__
#define __CONFIG_H__
#ifdef __cplusplus
extern "C" {
#endif
#define CPUFREQ (252UL * 1000000UL)
// There's only one way to do it, pedal to the metal
#define PIODIV (1)
// Number of line buffers
// Hardcoded atm so don't change
#define VISLINEBUFFERS (2)
// 2 pins for clock. Starting from
#define PINBASE_CLK (8)
// 4 pins for data low (Pair 0/1). Starting from
#define PINBASE_DAT_LO (10)
// 4 pins for data high (Pair 2/3). Starting from
#define PINBASE_DAT_HI (14)
#define LVDS_PIO (pio1)
#define LVDS_LO_SM (0)
#define LVDS_HI_SM (1)
#define LVDS_CK_SM (2)
#define LVDS_LO_DMA_CHAN (0)
#define LVDS_LO_DMA_CB_CHAN (1)
#define LVDS_HI_DMA_CHAN (2)
#define LVDS_HI_DMA_CB_CHAN (3)
#define COUNTER_PIO (pio1)
#define COUNTER_SM (3) // Pulse counter. no more, no less
// Panel depth. Colours / pixel
#define DEPTH_R (6)
#define DEPTH_G (6)
#define DEPTH_B (6)
#ifdef __cplusplus
}
#endif
#endif