Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Y
YouNoGo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yongrok Oh
YouNoGo
Commits
0aef1470
Commit
0aef1470
authored
4 years ago
by
Yongrok Oh
Browse files
Options
Downloads
Patches
Plain Diff
update lcd
parent
822cfced
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mainServer/lcd/led.h
+0
-63
0 additions, 63 deletions
mainServer/lcd/led.h
with
0 additions
and
63 deletions
mainServer/lcd/led.h
deleted
100644 → 0
+
0
−
63
View file @
822cfced
#ifndef LED_H
#define LED_H
#define GPIO_BASE_ADDR 0x3F200000
#define BSC1_BASE_ADDR 0x3F804000
#define I2CADDR 0x3f
#define I2C_CLOCK_DIVIDER 2500
#define CONTROL 0x00
#define SLADDR 0xC0
#define BSC_C 0x00
#define BSC_S 0x04
#define BSC_DLEN 0x08
#define BSC_A 0x0C //master slave address
#define BSC_FIFO 0x10
#define BSC_DIV 0x14
#define BSC_DEL 0x18
#define BSC_CLKT 0x1C
#define RW 0b00000010
#define EN 0b00000100
#define LCD_BACKLIGHT 0b00001000
#define LCD_LINE_1 0x80
#define BSC_C_I2CEN 0x00008000
#define BSC_C_ST 0x00000080
#define BSC_S_TXD 0x00000010
#define BSC_S_CLKT 0x00000200
#define BSC_S_ERR 0x00000100
#define BSC_S_DONE 0x00000002
#define BSC_C_CLEAR_1 0x00000020
#define BSC_I2C_REASON_ERROR_NACK 0x01
#define BSC_I2C_REASON_ERROR_CLKT 0x02
#define BSC_I2C_REASON_ERROR_DATA 0x04
#define GPFSEL0 0x00
#define GPSET0 0x1C
#define GPCLR0 0x28
static
void
__iomem
*
gpio_base
;
static
void
__iomem
*
bsc1_base
;
volatile
unsigned
int
*
gpsel0
;
volatile
unsigned
int
*
gpsel1
;
volatile
unsigned
int
*
gpsel2
;
volatile
unsigned
int
*
gpset0
;
volatile
unsigned
int
*
bsc_a
;
volatile
unsigned
int
*
bsc_clk
;
volatile
unsigned
int
*
bsc_dlen
;
volatile
unsigned
int
*
bsc_fifo
;
volatile
unsigned
int
*
bsc_status
;
volatile
unsigned
int
*
bsc_control
;
void
lcd_send_byte
(
const
unsigned
char
byte
,
const
unsigned
char
mode
);
void
i2c_write
(
const
char
*
buf
,
unsigned
int
len
);
#endif
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment