Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
lcd_dogm_hw.c File Reference
#include "LPC21xx.h"
#include "interrupt_hw.h"
#include "lcd_dogm_hw.h"
+ Include dependency graph for lcd_dogm_hw.c:

Go to the source code of this file.

Macros

#define PINSEL1_SCK   (2 << 2)
 
#define PINSEL1_MOSI   (2 << 6)
 
#define PINSEL1_SSEL   (2 << 8)
 
#define SSP_DSS   0x07 << 0 /* data size : 8 bits */
 
#define SSP_FRF   0x00 << 4 /* frame format : SPI */
 
#define SSP_CPOL   0x01 << 6 /* clock polarity : idle high */
 
#define SSP_CPHA   0x01 << 7 /* clock phase : low->high */
 
#define SSP_SCR   0x1F << 8 /* serial clock rate : 29.3kHz, SSP input clock / 16 */
 
#define SSP_LBM   0x00 << 0 /* loopback mode : disabled */
 
#define SSP_SSE   0x00 << 1 /* SSP enable : disabled */
 
#define SSP_MS   0x00 << 2 /* master slave mode : master */
 
#define SSP_SOD   0x00 << 3 /* slave output disable : don't care when master */
 
#define SSPCPSR_VAL   0x04
 

Functions

static void SPI1_ISR (void)
 
void lcd_dogm_init_hw (void)
 

Macro Definition Documentation

#define PINSEL1_MOSI   (2 << 6)

Referenced by lcd_dogm_init_hw().

#define PINSEL1_SCK   (2 << 2)

Referenced by lcd_dogm_init_hw().

#define PINSEL1_SSEL   (2 << 8)
#define SSP_CPHA   0x01 << 7 /* clock phase : low->high */

Referenced by lcd_dogm_init_hw().

#define SSP_CPOL   0x01 << 6 /* clock polarity : idle high */

Referenced by lcd_dogm_init_hw().

#define SSP_DSS   0x07 << 0 /* data size : 8 bits */

Referenced by lcd_dogm_init_hw().

#define SSP_FRF   0x00 << 4 /* frame format : SPI */

Referenced by lcd_dogm_init_hw().

#define SSP_LBM   0x00 << 0 /* loopback mode : disabled */

Referenced by lcd_dogm_init_hw().

#define SSP_MS   0x00 << 2 /* master slave mode : master */

Referenced by lcd_dogm_init_hw().

#define SSP_SCR   0x1F << 8 /* serial clock rate : 29.3kHz, SSP input clock / 16 */

Referenced by lcd_dogm_init_hw().

#define SSP_SOD   0x00 << 3 /* slave output disable : don't care when master */

Referenced by lcd_dogm_init_hw().

#define SSP_SSE   0x00 << 1 /* SSP enable : disabled */
#define SSPCPSR_VAL   0x04

Referenced by lcd_dogm_init_hw().

Function Documentation

void lcd_dogm_init_hw ( void  )

Definition at line 61 of file lcd_dogm_hw.c.

References LCDDOGM_RS_IODIR, LCDDOGM_RS_PIN, LCDDOGM_SS_IODIR, LCDDOGM_SS_PIN, lcddogmUnselect, PINSEL1, PINSEL1_MOSI, PINSEL1_SCK, SPI1_ISR(), 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, VICIntSelect, VICVectAddr7, and VICVectCntl7.

Referenced by lcd_dogm_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SPI1_ISR ( void  )
static

Definition at line 30 of file lcd_dogm_hw.c.

References SpiClearRti, SpiEnable, SpiEnableRti, and SSPDR.

Referenced by lcd_dogm_init_hw().

+ Here is the caller graph for this function: