#include "pm.h"
Defines | |
#define | __FILE_ID__ 0x11 |
#define | USE_DUFFS_DEVICE 0 |
Functions | |
void * | sli_memcpy (unsigned char *to, unsigned char const *from, unsigned int n) |
int | sli_strlen (char const *s) |
int | sli_strcmp (char const *s1, char const *s2) |
int | sli_strncmp (char const *s1, char const *s2, unsigned int n) |
void | sli_memset (unsigned char *dest, char const val, unsigned int n) |
PyMite requires a few functions from a few different standard C libraries (memory, string, etc).
#define USE_DUFFS_DEVICE 0 |
use Duff's Device or simple for-loop for memcpy.
void* sli_memcpy | ( | unsigned char * | , | |
unsigned char const * | , | |||
unsigned | int | |||
) |
Copy a block of memory in RAM.
to | the destination address. | |
from | the source address. | |
n | the number of bytes to copy. |
void sli_memset | ( | unsigned char * | dest, | |
const char | val, | |||
unsigned int | n | |||
) |
Copy a value repeatedly into a block of memory
dest | the destination address. | |
val | the value. | |
n | the number of bytes to copy. |
int sli_strcmp | ( | char const * | , | |
char const * | ||||
) |
int sli_strlen | ( | char const * | s | ) |
int sli_strncmp | ( | char const * | s1, | |
char const * | s2, | |||
unsigned int | n | |||
) |