Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bdk/display/di.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ int display_dsi_read(u8 cmd, u32 len, void *data, bool video_enabled)
// Disable host cmd packets during video and restore host control.
if (video_enabled)
{
// Wait for vblank before reseting sync points.
// Wait for vblank before resetting sync points.
DISPLAY_A(_DIREG(DC_CMD_INT_STATUS)) = DC_CMD_INT_FRAME_END_INT; // Clear interrupt.
while (!(DISPLAY_A(_DIREG(DC_CMD_INT_STATUS)) & DC_CMD_INT_FRAME_END_INT))
;
Expand Down Expand Up @@ -260,7 +260,7 @@ void display_dsi_vblank_write(u8 cmd, u32 len, void *data)
break;
}

// Wait for vblank before reseting sync points.
// Wait for vblank before resetting sync points.
DISPLAY_A(_DIREG(DC_CMD_INT_STATUS)) = DC_CMD_INT_FRAME_END_INT; // Clear interrupt.
while (!(DISPLAY_A(_DIREG(DC_CMD_INT_STATUS)) & DC_CMD_INT_FRAME_END_INT))
;
Expand Down
2 changes: 1 addition & 1 deletion bdk/exception_handlers.S
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ _irq_handler:
MSR SPSR_cxsf, R0 /* Copy it into SPSR_IRQ */

LDMFD SP, {R0-R3, R12, LR}^ /* Unstack all saved USER/SYSTEM registers */
NOP /* Cant access barked registers immediately */
NOP /* Can't access barked registers immediately */
LDR LR, [SP, #24] /* Load return address from the SYS stack */
MOVS PC, LR /* Return restoring CPSR from SPSR */

Expand Down
4 changes: 2 additions & 2 deletions bdk/libs/compr/lz4.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ LZ4_FORCE_INLINE void LZ4_prepareTable(
cctx->currentOffset = 0;
cctx->tableType = clearedTable;
} else {
DEBUGLOG(4, "LZ4_prepareTable: Re-use hash table (no reset)");
DEBUGLOG(4, "LZ4_prepareTable: Reuse hash table (no reset)");
}
}

Expand Down Expand Up @@ -633,7 +633,7 @@ LZ4_FORCE_INLINE int LZ4_compress_generic(
_next_match:
/* at this stage, the following variables must be correctly set :
* - ip : at start of LZ operation
* - match : at start of previous pattern occurence; can be within current prefix, or within extDict
* - match : at start of previous pattern occurrence; can be within current prefix, or within extDict
* - offset : if maybe_ext_memSegment==1 (constant)
* - lowLimit : must be == dictionary to mean "match is within extDict"; must be == source otherwise
* - token and *token : position to write 4-bits for match length; higher 4-bits for literal length supposed already written
Expand Down
10 changes: 5 additions & 5 deletions bdk/libs/compr/lz4.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ extern "C" {
#define LZ4_VERSION_STRING LZ4_EXPAND_AND_QUOTE(LZ4_LIB_VERSION)

LZ4LIB_API int LZ4_versionNumber (void); /**< library version number; useful to check dll version */
LZ4LIB_API const char* LZ4_versionString (void); /**< library version string; unseful to check dll version */
LZ4LIB_API const char* LZ4_versionString (void); /**< library version string; useful to check dll version */


/*-************************************
Expand Down Expand Up @@ -246,7 +246,7 @@ LZ4LIB_API LZ4_stream_t* LZ4_createStream(void);
LZ4LIB_API int LZ4_freeStream (LZ4_stream_t* streamPtr);

/*! LZ4_resetStream() :
* An LZ4_stream_t structure can be allocated once and re-used multiple times.
* An LZ4_stream_t structure can be allocated once and reused multiple times.
* Use this function to start compressing a new stream.
*/
LZ4LIB_API void LZ4_resetStream (LZ4_stream_t* streamPtr);
Expand Down Expand Up @@ -295,14 +295,14 @@ typedef union LZ4_streamDecode_u LZ4_streamDecode_t; /* incomplete type (defin

/*! LZ4_createStreamDecode() and LZ4_freeStreamDecode() :
* creation / destruction of streaming decompression tracking structure.
* A tracking structure can be re-used multiple times sequentially. */
* A tracking structure can be reused multiple times sequentially. */
LZ4LIB_API LZ4_streamDecode_t* LZ4_createStreamDecode(void);
LZ4LIB_API int LZ4_freeStreamDecode (LZ4_streamDecode_t* LZ4_stream);

/*! LZ4_setStreamDecode() :
* An LZ4_streamDecode_t structure can be allocated once and re-used multiple times.
* An LZ4_streamDecode_t structure can be allocated once and reused multiple times.
* Use this function to start decompression of a new stream of blocks.
* A dictionary can optionnally be set. Use NULL or size 0 for a reset order.
* A dictionary can optionally be set. Use NULL or size 0 for a reset order.
* @return : 1 if OK, 0 if error
*/
LZ4LIB_API int LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize);
Expand Down
4 changes: 2 additions & 2 deletions bdk/libs/fatfs/diskio.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*-----------------------------------------------------------------------/
/ Low level disk interface modlue include file (C)ChaN, 2014 /
/ Low level disk interface module include file (C)ChaN, 2014 /
/-----------------------------------------------------------------------*/

#ifndef _DISKIO_DEFINED
Expand Down Expand Up @@ -51,7 +51,7 @@ DRESULT disk_set_info (BYTE pdrv, BYTE cmd, void *buff);
#define STA_PROTECT 0x04 /* Write protected */


/* Command code for disk_ioctrl fucntion */
/* Command code for disk_ioctrl function */

/* Generic command (Used by FatFs) */
#define CTRL_SYNC 0 /* Complete pending write process (needed at FF_FS_READONLY == 0) */
Expand Down
44 changes: 22 additions & 22 deletions bdk/libs/fatfs/ff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ static FRESULT dec_lock ( /* Decrement object open counter */
if (n == 0) Files[i].fs = 0; /* Delete the entry if open count gets zero */
res = FR_OK;
} else {
res = FR_INT_ERR; /* Invalid index nunber */
res = FR_INT_ERR; /* Invalid index number */
}
return res;
}
Expand Down Expand Up @@ -2037,7 +2037,7 @@ static void gen_numname (
seq = (UINT)sr;
}

/* itoa (hexdecimal) */
/* itoa (hexadecimal) */
i = 7;
do {
c = (BYTE)((seq % 16) + '0');
Expand Down Expand Up @@ -2145,7 +2145,7 @@ static DWORD xsum32 ( /* Returns 32-bit checksum */
/*------------------------------------------------------*/

static void get_xfileinfo (
BYTE* dirb, /* Pointer to the direcotry entry block 85+C0+C1s */
BYTE* dirb, /* Pointer to the directory entry block 85+C0+C1s */
FILINFO* fno /* Buffer to store the extracted file information */
)
{
Expand Down Expand Up @@ -2182,16 +2182,16 @@ static void get_xfileinfo (


/*-----------------------------------*/
/* exFAT: Get a directry entry block */
/* exFAT: Get a directory entry block */
/*-----------------------------------*/

static FRESULT load_xdir ( /* FR_INT_ERR: invalid entry block */
DIR* dp /* Reading direcotry object pointing top of the entry block to load */
DIR* dp /* Reading directory object pointing top of the entry block to load */
)
{
FRESULT res;
UINT i, sz_ent;
BYTE* dirb = dp->obj.fs->dirbuf; /* Pointer to the on-memory direcotry entry block 85+C0+C1s */
BYTE* dirb = dp->obj.fs->dirbuf; /* Pointer to the on-memory directory entry block 85+C0+C1s */


/* Load file-directory entry */
Expand Down Expand Up @@ -2255,7 +2255,7 @@ static void init_alloc_info (
/*------------------------------------------------*/

static FRESULT load_obj_xdir (
DIR* dp, /* Blank directory object to be used to access containing direcotry */
DIR* dp, /* Blank directory object to be used to access containing directory */
const FFOBJID* obj /* Object with its containing directory information */
)
{
Expand Down Expand Up @@ -2284,18 +2284,18 @@ static FRESULT load_obj_xdir (
/*----------------------------------------*/

static FRESULT store_xdir (
DIR* dp /* Pointer to the direcotry object */
DIR* dp /* Pointer to the directory object */
)
{
FRESULT res;
UINT nent;
BYTE* dirb = dp->obj.fs->dirbuf; /* Pointer to the direcotry entry block 85+C0+C1s */
BYTE* dirb = dp->obj.fs->dirbuf; /* Pointer to the directory entry block 85+C0+C1s */

/* Create set sum */
st_word(dirb + XDIR_SetSum, xdir_sum(dirb));
nent = dirb[XDIR_NumSec] + 1;

/* Store the direcotry entry block to the directory */
/* Store the directory entry block to the directory */
res = dir_sdi(dp, dp->blk_ofs);
while (res == FR_OK) {
res = move_window(dp->obj.fs, dp->sect);
Expand All @@ -2312,11 +2312,11 @@ static FRESULT store_xdir (


/*-------------------------------------------*/
/* exFAT: Create a new directory enrty block */
/* exFAT: Create a new directory entry block */
/*-------------------------------------------*/

static void create_xdir (
BYTE* dirb, /* Pointer to the direcotry entry block buffer */
BYTE* dirb, /* Pointer to the directory entry block buffer */
const WCHAR* lfn /* Pointer to the object name */
)
{
Expand Down Expand Up @@ -2737,7 +2737,7 @@ static void get_fileinfo (
fno->altname[di] = 0; /* Terminate the SFN (null string means SFN is invalid) */

if (fno->fname[0] == 0) { /* If LFN is invalid, altname[] needs to be copied to fname[] */
if (di == 0) { /* If LFN and SFN both are invalid, this object is inaccesible */
if (di == 0) { /* If LFN and SFN both are invalid, this object is inaccessible */
fno->fname[di++] = '?';
} else {
for (si = di = 0, lcf = NS_BODY; fno->altname[si]; si++, di++) { /* Copy altname[] to fname[] with case information */
Expand Down Expand Up @@ -3315,7 +3315,7 @@ static FRESULT find_volume ( /* FR_OK(0): successful, !=0: an error occurred */
}
if (fmt == 4) {
EFSPRINTF("BRNL");
return FR_DISK_ERR; /* An error occured in the disk I/O layer */
return FR_DISK_ERR; /* An error occurred in the disk I/O layer */
}
#if FF_SIMPLE_GPT
if (fmt >= 2) {
Expand Down Expand Up @@ -3375,7 +3375,7 @@ static FRESULT find_volume ( /* FR_OK(0): successful, !=0: an error occurred */
fs->volbase = bsect;
fs->database = bsect + ld_dword(fs->win + BPB_DataOfsEx);
fs->fatbase = bsect + ld_dword(fs->win + BPB_FatOfsEx);
if (maxlba < (QWORD)fs->database + nclst * fs->csize) return FR_NO_FILESYSTEM; /* (Volume size must not be smaller than the size requiered) */
if (maxlba < (QWORD)fs->database + nclst * fs->csize) return FR_NO_FILESYSTEM; /* (Volume size must not be smaller than the size required) */
fs->dirbase = ld_dword(fs->win + BPB_RootClusEx);

/* Get bitmap location and check if it is contiguous (implementation assumption) */
Expand Down Expand Up @@ -3530,7 +3530,7 @@ static FRESULT validate ( /* Returns FR_OK or FR_INVALID_OBJECT */
if (obj && obj->fs && obj->fs->fs_type && obj->id == obj->fs->id) { /* Test if the object is valid */
#if FF_FS_REENTRANT
if (lock_fs(obj->fs)) { /* Obtain the filesystem object */
if (!(disk_status(obj->fs->pdrv) & STA_NOINIT)) { /* Test if the phsical drive is kept initialized */
if (!(disk_status(obj->fs->pdrv) & STA_NOINIT)) { /* Test if the physical drive is kept initialized */
res = FR_OK;
} else {
unlock_fs(obj->fs, FR_OK);
Expand All @@ -3539,7 +3539,7 @@ static FRESULT validate ( /* Returns FR_OK or FR_INVALID_OBJECT */
res = FR_TIMEOUT;
}
#else
if (!(disk_status(obj->fs->pdrv) & STA_NOINIT)) { /* Test if the phsical drive is kept initialized */
if (!(disk_status(obj->fs->pdrv) & STA_NOINIT)) { /* Test if the physical drive is kept initialized */
res = FR_OK;
}
#endif
Expand Down Expand Up @@ -3708,7 +3708,7 @@ FRESULT f_open (
}
}
else { /* Open an existing file */
if (res == FR_OK) { /* Is the object exsiting? */
if (res == FR_OK) { /* Is the object existing? */
if (dj.obj.attr & AM_DIR) { /* File open against a directory */
res = FR_NO_FILE;
} else {
Expand Down Expand Up @@ -4750,7 +4750,7 @@ FRESULT f_opendir (
if (dp->obj.attr & AM_DIR) { /* This object is a sub-directory */
#if FF_FS_EXFAT
if (fs->fs_type == FS_EXFAT) {
dp->obj.c_scl = dp->obj.sclust; /* Get containing directory inforamation */
dp->obj.c_scl = dp->obj.sclust; /* Get containing directory information */
dp->obj.c_size = ((DWORD)dp->obj.objsize & 0xFFFFFF00) | dp->obj.stat;
dp->obj.c_ofs = dp->blk_ofs;
init_alloc_info(fs, &dp->obj); /* Get object allocation info */
Expand Down Expand Up @@ -4781,7 +4781,7 @@ FRESULT f_opendir (
FREE_NAMBUF();
if (res == FR_NO_FILE) res = FR_NO_PATH;
}
if (res != FR_OK) dp->obj.fs = 0; /* Invalidate the directory object if function faild */
if (res != FR_OK) dp->obj.fs = 0; /* Invalidate the directory object if function failed */

LEAVE_FF(fs, res);
}
Expand Down Expand Up @@ -5222,7 +5222,7 @@ FRESULT f_mkdir (
st_clust(fs, fs->win + SZDIRE, pcl);
fs->wflag = 1;
}
res = dir_register(&dj); /* Register the object to the parent directoy */
res = dir_register(&dj); /* Register the object to the parent directory */
}
}
if (res == FR_OK) {
Expand Down Expand Up @@ -6823,7 +6823,7 @@ int f_printf (
case 'U' : /* Unsigned decimal */
r = 10; break;

case 'X' : /* Unsigned hexdecimal */
case 'X' : /* Unsigned hexadecimal */
r = 16; break;

default: /* Unknown type (pass-through) */
Expand Down
2 changes: 1 addition & 1 deletion bdk/libs/fatfs/ff.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ typedef struct {
WORD ftime; /* Modified time */
BYTE fattrib; /* File attribute */
#if FF_USE_LFN
TCHAR altname[FF_SFN_BUF + 1];/* Altenative file name */
TCHAR altname[FF_SFN_BUF + 1];/* Alternative file name */
TCHAR fname[FF_LFN_BUF + 1]; /* Primary file name */
#else
TCHAR fname[12 + 1]; /* File name */
Expand Down
2 changes: 1 addition & 1 deletion bdk/libs/fatfs/ffunicode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*------------------------------------------------------------------------*/
/* This module will occupy a huge memory in the .const section when the /
/ FatFs is configured for LFN with DBCS. If the system has any Unicode /
/ utilitiy for the code conversion, this module should be modified to use /
/ utility for the code conversion, this module should be modified to use /
/ that function to avoid silly memory consumption. /
/-------------------------------------------------------------------------*/
/*
Expand Down
2 changes: 1 addition & 1 deletion bdk/libs/lv_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#define LV_MEM_CUSTOM 0 /*1: use custom malloc/free, 0: use the built-in lv_mem_alloc/lv_mem_free*/
#if LV_MEM_CUSTOM == 0
# define LV_MEM_SIZE NYX_LV_MEM_SZ /*Size memory used by `lv_mem_alloc` in bytes (>= 2kB)*/
# define LV_MEM_ATTR /*Complier prefix for big array declaration*/
# define LV_MEM_ATTR /*Compiler prefix for big array declaration*/
# define LV_MEM_ADR NYX_LV_MEM_ADR /*Set an address for memory pool instead of allocation it as an array. Can be in external SRAM too.*/
# define LV_MEM_AUTO_DEFRAG 1 /*Automatically defrag on free*/
#else /*LV_MEM_CUSTOM*/
Expand Down
2 changes: 1 addition & 1 deletion bdk/libs/lvgl/lv_core/lv_indev.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ static void indev_proc_press(lv_indev_proc_t * proc)
pr_obj = indev_search_obj(proc, lv_layer_top());
if(pr_obj == NULL) pr_obj = indev_search_obj(proc, lv_scr_act());
}
/*If a dragable or a protected object was the last then keep it*/
/*If a draggable or a protected object was the last then keep it*/
else {

}
Expand Down
8 changes: 4 additions & 4 deletions bdk/libs/lvgl/lv_core/lv_obj.c
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ void lv_obj_set_top(lv_obj_t * obj, bool en)
/**
* Enable the dragging of an object
* @param obj pointer to an object
* @param en true: make the object dragable
* @param en true: make the object draggable
*/
void lv_obj_set_drag(lv_obj_t * obj, bool en)
{
Expand Down Expand Up @@ -1212,7 +1212,7 @@ void lv_obj_set_free_num(lv_obj_t * obj, LV_OBJ_FREE_NUM_TYPE free_num)
* Set an application specific pointer for an object.
* It can help to identify objects in the application.
* @param obj pointer to an object
* @param free_p the new free pinter
* @param free_p the new free pointer
*/
void lv_obj_set_free_ptr(lv_obj_t * obj, void * free_p)
{
Expand Down Expand Up @@ -1587,7 +1587,7 @@ bool lv_obj_get_click(const lv_obj_t * obj)
/**
* Get the top enable attribute of an object
* @param obj pointer to an object
* @return true: the auto top feture is enabled
* @return true: the auto top feature is enabled
*/
bool lv_obj_get_top(const lv_obj_t * obj)
{
Expand All @@ -1597,7 +1597,7 @@ bool lv_obj_get_top(const lv_obj_t * obj)
/**
* Get the drag enable attribute of an object
* @param obj pointer to an object
* @return true: the object is dragable
* @return true: the object is draggable
*/
bool lv_obj_get_drag(const lv_obj_t * obj)
{
Expand Down
6 changes: 3 additions & 3 deletions bdk/libs/lvgl/lv_core/lv_obj.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ void lv_obj_set_top(lv_obj_t * obj, bool en);
/**
* Enable the dragging of an object
* @param obj pointer to an object
* @param en true: make the object dragable
* @param en true: make the object draggable
*/
void lv_obj_set_drag(lv_obj_t * obj, bool en);

Expand Down Expand Up @@ -530,7 +530,7 @@ void lv_obj_set_free_num(lv_obj_t * obj, LV_OBJ_FREE_NUM_TYPE free_num);
* Set an application specific pointer for an object.
* It can help to identify objects in the application.
* @param obj pointer to an object
* @param free_p the new free pinter
* @param free_p the new free pointer
*/
void lv_obj_set_free_ptr(lv_obj_t * obj, void * free_p);
#endif
Expand Down Expand Up @@ -709,7 +709,7 @@ bool lv_obj_get_top(const lv_obj_t * obj);
/**
* Get the drag enable attribute of an object
* @param obj pointer to an object
* @return true: the object is dragable
* @return true: the object is draggable
*/
bool lv_obj_get_drag(const lv_obj_t * obj);

Expand Down
2 changes: 1 addition & 1 deletion bdk/libs/lvgl/lv_core/lv_refr.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ static void lv_refr_obj(lv_obj_t * obj, const lv_area_t * mask_ori_p)
obj_area.y2 += ext_size;
union_ok = lv_area_intersect(&obj_ext_mask, mask_ori_p, &obj_area);

/*Draw the parent and its children only if they ore on 'mask_parent'*/
/*Draw the parent and its children only if they are on 'mask_parent'*/
if(union_ok != false) {

/* Redraw the object */
Expand Down
2 changes: 1 addition & 1 deletion bdk/libs/lvgl/lv_draw/lv_draw_img.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ bool lv_img_color_format_has_alpha(lv_img_cf_t cf)
* - pointer to an 'lv_img_t' variable (image stored internally and compiled into the code)
* - a path to a file (e.g. "S:/folder/image.bin")
* - or a symbol (e.g. SYMBOL_CLOSE)
* @return type of the image source LV_IMG_SRC_VARIABLE/FILE/SYMBOL/UNKOWN
* @return type of the image source LV_IMG_SRC_VARIABLE/FILE/SYMBOL/UNKNOWN
*/
lv_img_src_t lv_img_src_get_type(const void * src)
{
Expand Down
Loading