SWE-350 TOTP Generator Milestone 5
The DE-10 board has six 7-segment displays, this can be used to display and generate a time based one-time pin (TOTP).
Loading...
Searching...
No Matches
LCD_Hw.c File Reference
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <stdarg.h>
#include "LCD_Hw.h"
#include "hwlib.h"
#include "socal/socal.h"
#include "socal/hps.h"
#include "socal/alt_gpio.h"
#include "socal/alt_spim.h"
#include "socal/alt_rstmgr.h"
Include dependency graph for LCD_Hw.c:

Go to the source code of this file.

Macros

#define MY_DEBUG(msg, arg...)
 
#define HW_REGS_BASE   ( ALT_STM_OFST )
 
#define HW_REGS_SPAN   ( 0x04000000 )
 
#define HW_REGS_MASK   ( HW_REGS_SPAN - 1 )
 
#define HPS_LCM_D_C_BIT_GPIObit41_GPIOreg1   ( 0x00001000 )
 
#define HPS_LCM_RESETn_BIT_GPIObit44_GPIOreg1   ( 0x00008000 )
 
#define HPS_LCM_BACKLIHGT_BIT_GPIObit37_GPIOreg1   ( 0x00000100 )
 

Functions

void PIO_DC_Set (bool bIsData)
 
bool SPIM_IsTxFifoEmpty (void)
 
void SPIM_WriteTxData (uint8_t Data)
 
void LCDHW_Init (void *virtual_base)
 
void LCDHW_BackLight (bool bON)
 
void LCDHW_Write8 (uint8_t bIsData, uint8_t Data)
 

Macro Definition Documentation

◆ HPS_LCM_BACKLIHGT_BIT_GPIObit37_GPIOreg1

#define HPS_LCM_BACKLIHGT_BIT_GPIObit37_GPIOreg1   ( 0x00000100 )

Definition at line 79 of file LCD_Hw.c.

◆ HPS_LCM_D_C_BIT_GPIObit41_GPIOreg1

#define HPS_LCM_D_C_BIT_GPIObit41_GPIOreg1   ( 0x00001000 )

Definition at line 77 of file LCD_Hw.c.

◆ HPS_LCM_RESETn_BIT_GPIObit44_GPIOreg1

#define HPS_LCM_RESETn_BIT_GPIObit44_GPIOreg1   ( 0x00008000 )

Definition at line 78 of file LCD_Hw.c.

◆ HW_REGS_BASE

#define HW_REGS_BASE   ( ALT_STM_OFST )

Definition at line 73 of file LCD_Hw.c.

◆ HW_REGS_MASK

#define HW_REGS_MASK   ( HW_REGS_SPAN - 1 )

Definition at line 75 of file LCD_Hw.c.

◆ HW_REGS_SPAN

#define HW_REGS_SPAN   ( 0x04000000 )

Definition at line 74 of file LCD_Hw.c.

◆ MY_DEBUG

#define MY_DEBUG ( msg,
arg... )

Definition at line 62 of file LCD_Hw.c.

Function Documentation

◆ LCDHW_BackLight()

void LCDHW_BackLight ( bool bON)

Definition at line 235 of file LCD_Hw.c.

Here is the caller graph for this function:

◆ LCDHW_Init()

void LCDHW_Init ( void * virtual_base)

Definition at line 84 of file LCD_Hw.c.

Here is the caller graph for this function:

◆ LCDHW_Write8()

void LCDHW_Write8 ( uint8_t bIsData,
uint8_t Data )

Definition at line 244 of file LCD_Hw.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PIO_DC_Set()

void PIO_DC_Set ( bool bIsData)

Definition at line 270 of file LCD_Hw.c.

Here is the caller graph for this function:

◆ SPIM_IsTxFifoEmpty()

bool SPIM_IsTxFifoEmpty ( void )

◆ SPIM_WriteTxData()

void SPIM_WriteTxData ( uint8_t Data)

Definition at line 310 of file LCD_Hw.c.

Here is the caller graph for this function: