Subversion Repositories freemyipod

Rev

Rev 751 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 751 Rev 835
Line 62... Line 62...
62
int lcd_get_format()
62
int lcd_get_format()
63
{
63
{
64
    return LCD_FORMAT;
64
    return LCD_FORMAT;
65
}
65
}
66
 
66
 
67
static void lcd_send_cmd(uint16_t cmd) ICODE_ATTR __attribute__((noinline));
67
static void lcd_send_cmd(uint32_t cmd) ICODE_ATTR __attribute__((noinline));
68
static void lcd_send_cmd(uint16_t cmd)
68
static void lcd_send_cmd(uint32_t cmd)
69
{
69
{
70
    while (LCDSTATUS & 0x10);
70
    while (LCDSTATUS & 0x10);
71
    LCDWCMD = cmd;
71
    LCDWCMD = cmd;
72
}
72
}
73
 
73
 
74
static void lcd_send_data(uint16_t data) ICODE_ATTR __attribute__((noinline));
74
static void lcd_send_data(uint32_t data) ICODE_ATTR __attribute__((noinline));
75
static void lcd_send_data(uint16_t data)
75
static void lcd_send_data(uint32_t data)
76
{
76
{
77
    while (LCDSTATUS & 0x10);
77
    while (LCDSTATUS & 0x10);
78
    LCDWDATA = data;
78
    LCDWDATA = data;
79
}
79
}
80
 
80
 
81
static uint32_t lcd_detect() ICODE_ATTR;
81
static uint32_t lcd_detect() ICODE_ATTR __attribute__((noinline));
82
static uint32_t lcd_detect()
82
static uint32_t lcd_detect()
83
{
83
{
84
    return (PDAT13 & 1) | (PDAT14 & 2);
84
    return (PDAT13 & 1) | (PDAT14 & 2);
85
}
85
}
86
 
86