Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
humanoides
tools
stm32_libraries
Commits
fe6b353f
Commit
fe6b353f
authored
Apr 14, 2021
by
Sergi Hernandez
Browse files
Solved a bug in the initialization of the framebuffer structure.
parent
e2bcc8f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
pattern_frame_buffer/src/frame_buffer.c
View file @
fe6b353f
...
...
@@ -17,12 +17,12 @@ void frame_buffer_init(TFrameBuffer *fb,TMemory *memory,unsigned short int ram_b
unsigned
int
i
;
/* initialize internal data */
frame_buffer_set_num_rows
(
fb
,
DEFAULT_FRAME_BUFFER_CONTROL_NUM_ROWS
);
frame_buffer_set_pixels_per_row
(
fb
,
DEFAULT_FRAME_BUFFER_CONTROL_NUM_PIXELS
);
frame_buffer_set_num_buffers
(
fb
,
DEFAULT_FRAME_BUFFER_CONTROL_NUM_BUFFERS
);
fb
->
ram_base_address
=
ram_base_address
;
fb
->
eeprom_base_address
=
eeprom_base_address
;
fb
->
memory
=
memory
;
frame_buffer_set_num_rows
(
fb
,
DEFAULT_FRAME_BUFFER_CONTROL_NUM_ROWS
);
frame_buffer_set_pixels_per_row
(
fb
,
DEFAULT_FRAME_BUFFER_CONTROL_NUM_PIXELS
);
frame_buffer_set_num_buffers
(
fb
,
DEFAULT_FRAME_BUFFER_CONTROL_NUM_BUFFERS
);
for
(
i
=
0
;
i
<
FB_MAX_BUFFER_LEN
;
i
++
)
fb
->
pixel_buffer
[
i
]
=
0x00
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment