feat support SQLite function, need follow README.md, RAM > 512KB, shell task stack > 32KB, TF card mount FATFS

This commit is contained in:
Liu_Weichao
2023-11-01 16:09:52 +08:00
parent dfa6b664ac
commit 4b579d1c8f
7 changed files with 48 additions and 14 deletions
@@ -408,7 +408,7 @@ static int _xizi_io_sector_size(sqlite3_file *file_id)
static int _xizi_io_device_characteristics(sqlite3_file *file_id)
{
return 0;
return SQLITE_IOCAP_SAFE_APPEND;
}
/*
@@ -122,7 +122,7 @@ static sqlite3_mutex * _xizi_mtx_alloc(int id)
{
case SQLITE_MUTEX_FAST:
case SQLITE_MUTEX_RECURSIVE:
p = PrivMalloc(sizeof(sqlite3_mutex));
p = sqlite3_malloc(sizeof(sqlite3_mutex));
if (p != NULL) {
PrivMutexCreate(&p->mutex, 0);
@@ -101,7 +101,7 @@ int _gettimeofday(struct timeval *tp, void *ignore)
static int _Access(const char *pathname, int mode)
{
int fd;
int fd = -1;
fd = PrivOpen(pathname, O_RDONLY);