st7036_at91.c File Reference

Go to the source code of this file.

Defines

#define LCD_ROWS   2
#define LCD_COLS   16
#define LCD_SHORT_DELAY   100
#define LCD_LONG_DELAY   1000
#define LCD_CS_PIO_ID   PIO_ID
 GPIO controller ID.
#define LCD_CS_BIT   0
#define LCD_RS_PIO_ID   PIO_ID
#define LCD_RS_BIT   3
#define LCD_CLK_PIO_ID   PIO_ID
#define LCD_CLK_BIT   1
#define LCD_MOSI_PIO_ID   PIO_ID
#define LCD_MOSI_BIT   2
#define LCD_CS   _BV(LCD_CS_BIT)
#define LCD_RS   _BV(LCD_RS_BIT)
#define LCD_CLK   _BV(LCD_CLK_BIT)
#define LCD_MOSI   _BV(LCD_MOSI_BIT)
#define LCD_CS_SET()   { outr(PIOA_PER, LCD_CS); outr(PIOA_SODR, LCD_CS); outr(PIOA_OER, LCD_CS); }
#define LCD_CS_CLR()   { outr(PIOA_PER, LCD_CS); outr(PIOA_CODR, LCD_CS); outr(PIOA_OER, LCD_CS); }
#define LCD_RS_SET()   { outr(PIOA_PER, LCD_RS); outr(PIOA_SODR, LCD_RS); outr(PIOA_OER, LCD_RS); }
#define LCD_RS_CLR()   { outr(PIOA_PER, LCD_RS); outr(PIOA_CODR, LCD_RS); outr(PIOA_OER, LCD_RS); }
#define LCD_CLK_SET()   { outr(PIOA_PER, LCD_CLK); outr(PIOA_SODR, LCD_CLK); outr(PIOA_OER, LCD_CLK); }
#define LCD_CLK_CLR()   { outr(PIOA_PER, LCD_CLK); outr(PIOA_CODR, LCD_CLK); outr(PIOA_OER, LCD_CLK); }
#define LCD_MOSI_SET()   { outr(PIOA_PER, LCD_MOSI); outr(PIOA_SODR, LCD_MOSI); outr(PIOA_OER, LCD_MOSI); }
#define LCD_MOSI_CLR()   { outr(PIOA_PER, LCD_MOSI); outr(PIOA_CODR, LCD_MOSI); outr(PIOA_OER, LCD_MOSI); }

Variables

NUTDEVICE devSbiLcd
 LCD device information structure.


Define Documentation

#define LCD_ROWS   2

Definition at line 54 of file st7036_at91.c.

#define LCD_COLS   16

Definition at line 58 of file st7036_at91.c.

#define LCD_SHORT_DELAY   100

Definition at line 62 of file st7036_at91.c.

#define LCD_LONG_DELAY   1000

Definition at line 66 of file st7036_at91.c.

#define LCD_CS_PIO_ID   PIO_ID

GPIO controller ID.

Definition at line 135 of file st7036_at91.c.

#define LCD_CS_BIT   0

Definition at line 138 of file st7036_at91.c.

#define LCD_RS_PIO_ID   PIO_ID

Definition at line 142 of file st7036_at91.c.

#define LCD_RS_BIT   3

Definition at line 145 of file st7036_at91.c.

#define LCD_CLK_PIO_ID   PIO_ID

Definition at line 149 of file st7036_at91.c.

#define LCD_CLK_BIT   1

Definition at line 152 of file st7036_at91.c.

#define LCD_MOSI_PIO_ID   PIO_ID

Definition at line 156 of file st7036_at91.c.

#define LCD_MOSI_BIT   2

Definition at line 159 of file st7036_at91.c.

#define LCD_CS   _BV(LCD_CS_BIT)

Definition at line 164 of file st7036_at91.c.

#define LCD_RS   _BV(LCD_RS_BIT)

Definition at line 165 of file st7036_at91.c.

#define LCD_CLK   _BV(LCD_CLK_BIT)

Definition at line 166 of file st7036_at91.c.

#define LCD_MOSI   _BV(LCD_MOSI_BIT)

Definition at line 167 of file st7036_at91.c.

 
#define LCD_CS_SET (  )     { outr(PIOA_PER, LCD_CS); outr(PIOA_SODR, LCD_CS); outr(PIOA_OER, LCD_CS); }

Definition at line 171 of file st7036_at91.c.

 
#define LCD_CS_CLR (  )     { outr(PIOA_PER, LCD_CS); outr(PIOA_CODR, LCD_CS); outr(PIOA_OER, LCD_CS); }

Definition at line 172 of file st7036_at91.c.

 
#define LCD_RS_SET (  )     { outr(PIOA_PER, LCD_RS); outr(PIOA_SODR, LCD_RS); outr(PIOA_OER, LCD_RS); }

Definition at line 185 of file st7036_at91.c.

 
#define LCD_RS_CLR (  )     { outr(PIOA_PER, LCD_RS); outr(PIOA_CODR, LCD_RS); outr(PIOA_OER, LCD_RS); }

Definition at line 186 of file st7036_at91.c.

 
#define LCD_CLK_SET (  )     { outr(PIOA_PER, LCD_CLK); outr(PIOA_SODR, LCD_CLK); outr(PIOA_OER, LCD_CLK); }

Definition at line 199 of file st7036_at91.c.

 
#define LCD_CLK_CLR (  )     { outr(PIOA_PER, LCD_CLK); outr(PIOA_CODR, LCD_CLK); outr(PIOA_OER, LCD_CLK); }

Definition at line 200 of file st7036_at91.c.

 
#define LCD_MOSI_SET (  )     { outr(PIOA_PER, LCD_MOSI); outr(PIOA_SODR, LCD_MOSI); outr(PIOA_OER, LCD_MOSI); }

Definition at line 213 of file st7036_at91.c.

 
#define LCD_MOSI_CLR (  )     { outr(PIOA_PER, LCD_MOSI); outr(PIOA_CODR, LCD_MOSI); outr(PIOA_OER, LCD_MOSI); }

Definition at line 214 of file st7036_at91.c.


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/