fix some bug

This commit is contained in:
bigmagic 2020-01-10 14:14:37 +08:00
parent fdde8ab198
commit c8e4bca1fc
4 changed files with 2 additions and 5 deletions

View File

@ -429,7 +429,7 @@ void print_fb_info()
rt_kprintf("call mbox:%x,%x,%x,%x,%x\n", mbox[0], mbox[1], mbox[2], mbox[3], mbox[4]);
}
void hdmi_fb_init()
int hdmi_fb_init()
{
unsigned int *mbox = (unsigned int*) MBOX_ADDR;
mbox[0] = 35 * 4;
@ -503,6 +503,7 @@ void hdmi_fb_init()
_hdmi_info.height = _hdmi.fb.height;
_hdmi_info.framebuffer = (rt_uint8_t *) _hdmi.fb.addr;
}
return 0;
}
INIT_DEVICE_EXPORT(hdmi_fb_init);

View File

@ -55,6 +55,5 @@ struct rt_hdmi_fb_device
fb_t fb_info;
void print_fb_info();
void hdmi_fb_init();
#endif/* __DRV_FB_H__ */

View File

@ -16,9 +16,6 @@ if os.getenv('RTT_CC'):
PLATFORM = 'gcc'
EXEC_PATH = r'/opt/gcc-arm-8.3-2019.03-x86_64-aarch64-elf/bin/'
if os.getenv('RTT_EXEC_PATH'):
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
BUILD = 'debug'
if PLATFORM == 'gcc':