Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
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
card10
firmware
Commits
d6c17abe
Commit
d6c17abe
authored
5 years ago
by
Mateusz Zalega
Browse files
Options
Downloads
Patches
Plain Diff
coding style: reformatted LCD_Driver.c
Signed-off-by:
Mateusz Zalega
<
mateusz@appliedsourcery.com
>
parent
0c53de83
No related branches found
No related tags found
No related merge requests found
Pipeline
#1810
failed
5 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/gfx/LCD/LCD_Driver.c
+16
-14
16 additions, 14 deletions
lib/gfx/LCD/LCD_Driver.c
with
16 additions
and
14 deletions
lib/gfx/LCD/LCD_Driver.c
+
16
−
14
View file @
d6c17abe
...
...
@@ -322,8 +322,9 @@ void LCD_Update(void)
LCD_Set
((
uint8_t
*
)
screen
,
sizeof
(
screen
));
}
static
Color
lcd_fb_encode_color_rgb
(
struct
framebuffer
*
fb
,
uint8_t
r
,
uint8_t
g
,
uint8_t
b
)
{
static
Color
lcd_fb_encode_color_rgb
(
struct
framebuffer
*
fb
,
uint8_t
r
,
uint8_t
g
,
uint8_t
b
)
{
r
>>=
(
8
-
5
);
g
>>=
(
8
-
6
);
b
>>=
(
8
-
5
);
...
...
@@ -336,21 +337,22 @@ static Color lcd_fb_encode_color_rgb(struct framebuffer *fb, uint8_t r,
return
o
;
}
static
void
lcd_fb_update
(
struct
framebuffer
*
fb
)
{
static
void
lcd_fb_update
(
struct
framebuffer
*
fb
)
{
LCD_Update
();
}
static
struct
framebuffer
framebuffer
=
{
.
data
=
screen
,
static
struct
framebuffer
framebuffer
=
{
.
data
=
screen
,
.
width
=
LCD_WIDTH
,
.
height
=
LCD_HEIGHT
,
.
stride
=
LCD_WIDTH
*
LCD_HEIGHT
*
2
,
.
orientation
=
FB_O_180
,
.
encode_color_rgb
=
lcd_fb_encode_color_rgb
,
.
update
=
lcd_fb_update
};
.
encode_color_rgb
=
lcd_fb_encode_color_rgb
,
.
update
=
lcd_fb_update
};
struct
framebuffer
*
LCD_framebuffer
(
void
)
{
struct
framebuffer
*
LCD_framebuffer
(
void
)
{
return
&
framebuffer
;
}
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