Fix typos/spelling. SAMV71-XULT: Update README, add support for fb_driver.
This commit is contained in:
parent
cf37eb34d5
commit
b90b4d40b6
@ -129,7 +129,7 @@ static int lpc17_putcmap(FAR struct fb_vtable_s *vtable,
|
|||||||
static int lpc17_getcursor(FAR struct fb_vtable_s *vtable,
|
static int lpc17_getcursor(FAR struct fb_vtable_s *vtable,
|
||||||
FAR struct fb_cursorattrib_s *attrib);
|
FAR struct fb_cursorattrib_s *attrib);
|
||||||
static int lpc17_setcursor(FAR struct fb_vtable_s *vtable,
|
static int lpc17_setcursor(FAR struct fb_vtable_s *vtable,
|
||||||
FAR struct fb_setcursor_s *setttings);
|
FAR struct fb_setcursor_s *settings);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@ -414,10 +414,10 @@ static int lpc17_getcursor(FAR struct fb_vtable_s *vtable,
|
|||||||
|
|
||||||
#ifdef CONFIG_FB_HWCURSOR
|
#ifdef CONFIG_FB_HWCURSOR
|
||||||
static int lpc17_setcursor(FAR struct fb_vtable_s *vtable,
|
static int lpc17_setcursor(FAR struct fb_vtable_s *vtable,
|
||||||
FAR struct fb_setcursor_s *setttings)
|
FAR struct fb_setcursor_s *settings)
|
||||||
{
|
{
|
||||||
lcdinfo("vtable=%p setttings=%p\n", vtable, setttings);
|
lcdinfo("vtable=%p settings=%p\n", vtable, settings);
|
||||||
if (vtable && setttings)
|
if (vtable && settings)
|
||||||
{
|
{
|
||||||
lcdinfo("flags: %02x\n", settings->flags);
|
lcdinfo("flags: %02x\n", settings->flags);
|
||||||
if ((flags & FB_CUR_SETPOSITION) != 0)
|
if ((flags & FB_CUR_SETPOSITION) != 0)
|
||||||
|
@ -1706,12 +1706,6 @@ NOTES:
|
|||||||
System Type -> Toolchain:
|
System Type -> Toolchain:
|
||||||
CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIW=y : GNU ARM EABI toolchain
|
CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIW=y : GNU ARM EABI toolchain
|
||||||
|
|
||||||
NOTE: As of this writing, there are issues with using this tool at
|
|
||||||
the -Os level of optimization. This has not been proven to be a
|
|
||||||
compiler issue (as least not one that might not be fixed with a
|
|
||||||
well placed volatile qualifier). However, in any event, it is
|
|
||||||
recommend that you use not more that -O2 optimization.
|
|
||||||
|
|
||||||
Configuration sub-directories
|
Configuration sub-directories
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
||||||
|
@ -56,6 +56,7 @@
|
|||||||
#include <nuttx/fs/nxffs.h>
|
#include <nuttx/fs/nxffs.h>
|
||||||
#include <nuttx/binfmt/elf.h>
|
#include <nuttx/binfmt/elf.h>
|
||||||
#include <nuttx/i2c/i2c_master.h>
|
#include <nuttx/i2c/i2c_master.h>
|
||||||
|
#include <nuttx/video/fb.h>
|
||||||
|
|
||||||
#include "sam_twihs.h"
|
#include "sam_twihs.h"
|
||||||
#include "samv71-xult.h"
|
#include "samv71-xult.h"
|
||||||
@ -551,6 +552,16 @@ int sam_bringup(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_VIDEO_FB
|
||||||
|
/* Initialize and register the LCD framebuffer driver */
|
||||||
|
|
||||||
|
ret = fb_register(0, 0);
|
||||||
|
if (ret < 0)
|
||||||
|
{
|
||||||
|
syslog(LOG_ERR, "ERROR: fb_register() failed: %d\n", ret);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* If we got here then perhaps not all initialization was successful, but
|
/* If we got here then perhaps not all initialization was successful, but
|
||||||
* at least enough succeeded to bring-up NSH with perhaps reduced
|
* at least enough succeeded to bring-up NSH with perhaps reduced
|
||||||
* capabilities.
|
* capabilities.
|
||||||
|
@ -184,7 +184,8 @@ static ssize_t fb_read(FAR struct file *filep, FAR char *buffer, size_t len)
|
|||||||
* Name: fb_write
|
* Name: fb_write
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static ssize_t fb_write(FAR struct file *filep, FAR const char *buffer, size_t len)
|
static ssize_t fb_write(FAR struct file *filep, FAR const char *buffer,
|
||||||
|
size_t len)
|
||||||
{
|
{
|
||||||
FAR struct inode *inode;
|
FAR struct inode *inode;
|
||||||
FAR struct fb_chardev_s *fb;
|
FAR struct fb_chardev_s *fb;
|
||||||
|
Loading…
Reference in New Issue
Block a user