Subversion Repositories Projects

Rev

Rev 902 | Rev 1866 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 902 Rev 1437
Line 1... Line 1...
1
/****************************************************************************
1
/****************************************************************************
2
 *   Copyright (C) 2009-2011 by Claas Anders "CaScAdE" Rathje               *
2
 *   Copyright (C) 2009-2012 by Claas Anders "CaScAdE" Rathje               *
3
 *   admiralcascade@gmail.com                                               *
3
 *   admiralcascade@gmail.com                                               *
4
 *   Project-URL: http://www.mylifesucks.de/oss/c-osd/                      *
4
 *   Project-URL: http://www.mylifesucks.de/oss/c-osd/                      *
5
 *                                                                          *
5
 *                                                                          *
6
 *   This program is free software; you can redistribute it and/or modify   *
6
 *   This program is free software; you can redistribute it and/or modify   *
7
 *   it under the terms of the GNU General Public License as published by   *
7
 *   it under the terms of the GNU General Public License as published by   *
Line 32... Line 32...
32
#define MAX_SCLK_HIGH           PORTA |=  (1 << PA3);
32
#define MAX_SCLK_HIGH           PORTA |=  (1 << PA3);
33
#define MAX_SCLK_LOW            PORTA &= ~(1 << PA3);
33
#define MAX_SCLK_LOW            PORTA &= ~(1 << PA3);
34
#define MAX_RESET_HIGH          PORTA |=  (1 << PA5);
34
#define MAX_RESET_HIGH          PORTA |=  (1 << PA5);
35
#define MAX_RESET_LOW           PORTA &= ~(1 << PA5);
35
#define MAX_RESET_LOW           PORTA &= ~(1 << PA5);
36
 
36
 
-
 
37
/* ##########################################################################
-
 
38
 * MAX7456 Register definitions
-
 
39
 * ##########################################################################*/
-
 
40
 
-
 
41
#define MAX7456_REG_READ_OFFSET 0x80
-
 
42
 
-
 
43
#define MAX7456_VM0             0x00
-
 
44
#define MAX7456_VM1             0x01
-
 
45
#define MAX7456_HOS             0x02
-
 
46
#define MAX7456_VOS             0x03
-
 
47
#define MAX7456_DMM             0x04
-
 
48
#define MAX7456_DMAH    0x05
-
 
49
#define MAX7456_DMAL    0x06
-
 
50
#define MAX7456_DMDI    0x07
-
 
51
#define MAX7456_CMM             0x08
-
 
52
#define MAX7456_CMAH    0x09
-
 
53
#define MAX7456_CMAL    0x0A
-
 
54
#define MAX7456_CMDI    0x0B
-
 
55
#define MAX7456_OSDM    0x0C
-
 
56
#define MAX7456_RB0             0x10
-
 
57
#define MAX7456_RB1             0x11
-
 
58
#define MAX7456_RB2             0x12
-
 
59
#define MAX7456_RB3             0x13
-
 
60
#define MAX7456_RB4             0x14
-
 
61
#define MAX7456_RB5             0x15
-
 
62
#define MAX7456_RB6             0x16
-
 
63
#define MAX7456_RB7             0x17
-
 
64
#define MAX7456_RB8             0x18
-
 
65
#define MAX7456_RB9             0x19
-
 
66
#define MAX7456_RB10    0x1A
-
 
67
#define MAX7456_RB11    0x1B
-
 
68
#define MAX7456_RB12    0x1C
-
 
69
#define MAX7456_RB13    0x1D
-
 
70
#define MAX7456_RB14    0x1E
-
 
71
#define MAX7456_RB15    0x1F
-
 
72
#define MAX7456_OSDBL   0x6C
-
 
73
 
-
 
74
// READ-ONLY REGs
-
 
75
 
-
 
76
#define MAX7456_STAT    0xA0
-
 
77
#define MAX7456_DMDO    0xB0
-
 
78
#define MAX7456_CMDO    0xC0
-
 
79
 
37
 
80
 
38
/* ##########################################################################
81
/* ##########################################################################
39
 * MAX7456 SPI & Display stuff
82
 * MAX7456 SPI & Display stuff
40
 * ##########################################################################*/
83
 * ##########################################################################*/
41
 
84