4 #include <stm32.h> // <-- my own header file located located in ./include
8 void *memcpy(void *dest, void *src, size_t count)
10 const char *sp = (const char *)src;
11 char *dp = (char *)dest;
12 for(; count != 0; count--) *dp++ = *sp++;
16 /* fillout memory with 'val' (i.e. all zeroes)
18 void *memset(void *dest, unsigned char val, size_t count)
20 char *temp = (char *)dest;
21 for( ; count != 0; count--) *temp++ = val;
25 /* same as above but shorter */
26 unsigned short *memsetw(unsigned short *dest, unsigned short val, size_t count)
28 unsigned short *temp = (unsigned short *)dest;
29 for( ; count != 0; count--) *temp++ = val;
33 int strlen(const char *str)
36 for(retval = 0; *str != '\0'; str++) retval++;
49 //uart_puts("LOADING SYSTEM 0.1 ...\n");
55 pool_init(20, 5, 0x20000800);
62 __asm__ __volatile__ ("udiv r1, r3 ,%0" :: "r"(0)); */
64 //regw_u32(p, 0x0CCCCCCCC, 4, 0x01);
66 //regw_u8(p, 0xFF, 0, 0x02);
68 // asm("cpsie i"); // enable irq , cpsied f (disable faukts(