Commit 3ab0bbe6 authored by smartinezs's avatar smartinezs
Browse files
parents f2b786c6 804913ae
#include "usb.h"
#include "usbd_cdc.h"
#include "gpio.h"
#define RX_DATA_SIZE 64
#define TX_DATA_SIZE 64
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment