34 lines
912 B
C
34 lines
912 B
C
/*
|
|
* Nexus Sovereign Config for LittleFS
|
|
* Freestanding mode - no libc
|
|
*/
|
|
#ifndef LFS_CONFIG_H
|
|
#define LFS_CONFIG_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
|
|
// Disable stdio and assertions (Freestanding)
|
|
#define LFS_NO_MALLOC
|
|
#define LFS_NO_ASSERT
|
|
#define LFS_NO_DEBUG
|
|
#define LFS_NO_WARN
|
|
#define LFS_NO_ERROR
|
|
|
|
// Clib prototypes (implemented in libs/membrane/clib.c)
|
|
void *memcpy(void *dest, const void *src, size_t n);
|
|
void *memset(void *s, int c, size_t n);
|
|
int memcmp(const void *s1, const void *s2, size_t n);
|
|
void *memmove(void *dest, const void *src, size_t n);
|
|
|
|
size_t strlen(const char *s);
|
|
int strncmp(const char *s1, const char *s2, size_t n);
|
|
int strcmp(const char *s1, const char *s2);
|
|
char *strcpy(char *dest, const char *src);
|
|
char *strchr(const char *s, int c);
|
|
size_t strspn(const char *s, const char *accept);
|
|
size_t strcspn(const char *s, const char *reject);
|
|
|
|
#endif
|