Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
lcd_dogm_hw.h File Reference
#include <stdbool.h>
#include "std.h"
#include "mcu_periph/spi.h"
#include "led.h"
+ Include dependency graph for lcd_dogm_hw.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LCDDOGM_SS_PORT   0
 
#define LCDDOGM_SS_PIN   20
 
#define LCDDOGM_RS_PORT   0
 
#define LCDDOGM_RS_PIN   16
 
#define LCDDOGM_IO__(port, reg)   IO ## port ## reg
 
#define LCDDOGM_IO_(port, reg)   LCDDOGM_IO__(port, reg)
 
#define LCDDOGM_SS_IOCLR   LCDDOGM_IO_(LCDDOGM_SS_PORT, CLR)
 
#define LCDDOGM_SS_IODIR   LCDDOGM_IO_(LCDDOGM_SS_PORT, DIR)
 
#define LCDDOGM_SS_IOSET   LCDDOGM_IO_(LCDDOGM_SS_PORT, SET)
 
#define LCDDOGM_RS_IOCLR   LCDDOGM_IO_(LCDDOGM_RS_PORT, CLR)
 
#define LCDDOGM_RS_IODIR   LCDDOGM_IO_(LCDDOGM_RS_PORT, DIR)
 
#define LCDDOGM_RS_IOSET   LCDDOGM_IO_(LCDDOGM_RS_PORT, SET)
 
#define lcddogmSelect()
 
#define lcddogmUnselect()
 
#define lcddogmCmdMode()
 
#define lcddogmDataMode()
 

Functions

void lcd_spi_tx (uint8_t data)
 
void lcd_dogm_init_hw (void)
 

Macro Definition Documentation

#define LCDDOGM_IO_ (   port,
  reg 
)    LCDDOGM_IO__(port, reg)

Definition at line 17 of file lcd_dogm_hw.h.

#define LCDDOGM_IO__ (   port,
  reg 
)    IO ## port ## reg

Definition at line 16 of file lcd_dogm_hw.h.

#define LCDDOGM_RS_IOCLR   LCDDOGM_IO_(LCDDOGM_RS_PORT, CLR)

Definition at line 23 of file lcd_dogm_hw.h.

#define LCDDOGM_RS_IODIR   LCDDOGM_IO_(LCDDOGM_RS_PORT, DIR)

Definition at line 24 of file lcd_dogm_hw.h.

Referenced by lcd_dogm_init_hw().

#define LCDDOGM_RS_IOSET   LCDDOGM_IO_(LCDDOGM_RS_PORT, SET)

Definition at line 25 of file lcd_dogm_hw.h.

#define LCDDOGM_RS_PIN   16

Definition at line 14 of file lcd_dogm_hw.h.

Referenced by lcd_dogm_init_hw().

#define LCDDOGM_RS_PORT   0

Definition at line 13 of file lcd_dogm_hw.h.

#define LCDDOGM_SS_IOCLR   LCDDOGM_IO_(LCDDOGM_SS_PORT, CLR)

Definition at line 19 of file lcd_dogm_hw.h.

#define LCDDOGM_SS_IODIR   LCDDOGM_IO_(LCDDOGM_SS_PORT, DIR)

Definition at line 20 of file lcd_dogm_hw.h.

Referenced by lcd_dogm_init_hw().

#define LCDDOGM_SS_IOSET   LCDDOGM_IO_(LCDDOGM_SS_PORT, SET)

Definition at line 21 of file lcd_dogm_hw.h.

#define LCDDOGM_SS_PIN   20

Definition at line 11 of file lcd_dogm_hw.h.

Referenced by lcd_dogm_init_hw().

#define LCDDOGM_SS_PORT   0

Definition at line 10 of file lcd_dogm_hw.h.

#define lcddogmCmdMode ( )
Value:
{ \
}
#define LCDDOGM_RS_IOCLR
Definition: lcd_dogm_hw.h:23
#define LCDDOGM_RS_PIN
Definition: lcd_dogm_hw.h:14

Definition at line 35 of file lcd_dogm_hw.h.

Referenced by lcd_cmd().

#define lcddogmDataMode ( )
Value:
{ \
}
#define LCDDOGM_RS_IOSET
Definition: lcd_dogm_hw.h:25
#define LCDDOGM_RS_PIN
Definition: lcd_dogm_hw.h:14

Definition at line 39 of file lcd_dogm_hw.h.

Referenced by lcd_data().

#define lcddogmSelect ( )
Value:
{ \
}
#define LCDDOGM_SS_IOCLR
Definition: lcd_dogm_hw.h:19
#define LCDDOGM_SS_PIN
Definition: lcd_dogm_hw.h:11

Definition at line 27 of file lcd_dogm_hw.h.

Referenced by lcd_cmd(), and lcd_data().

#define lcddogmUnselect ( )
Value:
{ \
}
#define LCDDOGM_SS_PIN
Definition: lcd_dogm_hw.h:11
#define LCDDOGM_SS_IOSET
Definition: lcd_dogm_hw.h:21

Definition at line 31 of file lcd_dogm_hw.h.

Referenced by lcd_dogm_init_hw(), and SPI1_ISR().

Function Documentation

void lcd_dogm_init_hw ( void  )

Definition at line 64 of file lcd_dogm_hw.c.

References _VIC_CNTL, LCDDOGM_RS_IODIR, LCDDOGM_RS_PIN, LCDDOGM_SS_IODIR, LCDDOGM_SS_PIN, lcddogmUnselect, PINSEL1, PINSEL1_MOSI, PINSEL1_SCK, SPI1_ISR(), SPI1_VIC_SLOT, SSP_CPHA, SSP_CPOL, SSP_DSS, SSP_FRF, SSP_LBM, SSP_MS, SSP_SCR, SSP_SOD, SSPCPSR, SSPCPSR_VAL, SSPCR0, SSPCR1, VIC_BIT, VIC_ENABLE, VIC_SPI1, VICIntEnable, and VICIntSelect.

Referenced by lcd_dogm_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void lcd_spi_tx ( uint8_t  data)

Definition at line 57 of file lcd_dogm_hw.c.

References SpiClearRti(), SpiEnable, SpiEnableRti(), and SSPDR.

Referenced by lcd_cmd(), and lcd_data().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: