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 60 of file st7036_at91.c.

#define LCD_COLS   16

Definition at line 64 of file st7036_at91.c.

#define LCD_SHORT_DELAY   100

Definition at line 68 of file st7036_at91.c.

#define LCD_LONG_DELAY   1000

Definition at line 72 of file st7036_at91.c.

#define LCD_CS_PIO_ID   PIO_ID

GPIO controller ID.

Definition at line 171 of file st7036_at91.c.

#define LCD_CS_BIT   0

Definition at line 174 of file st7036_at91.c.

#define LCD_RS_PIO_ID   PIO_ID

Definition at line 178 of file st7036_at91.c.

#define LCD_RS_BIT   3

Definition at line 181 of file st7036_at91.c.

#define LCD_CLK_PIO_ID   PIO_ID

Definition at line 185 of file st7036_at91.c.

#define LCD_CLK_BIT   1

Definition at line 188 of file st7036_at91.c.

#define LCD_MOSI_PIO_ID   PIO_ID

Definition at line 192 of file st7036_at91.c.

#define LCD_MOSI_BIT   2

Definition at line 195 of file st7036_at91.c.

#define LCD_CS   _BV(LCD_CS_BIT)

Definition at line 200 of file st7036_at91.c.

#define LCD_RS   _BV(LCD_RS_BIT)

Definition at line 201 of file st7036_at91.c.

#define LCD_CLK   _BV(LCD_CLK_BIT)

Definition at line 202 of file st7036_at91.c.

#define LCD_MOSI   _BV(LCD_MOSI_BIT)

Definition at line 203 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 207 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 208 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 221 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 222 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 235 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 236 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 249 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 250 of file st7036_at91.c.


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