Reorganize repository structure

This commit is contained in:
Telekatz 2017-07-01 22:09:52 +02:00
parent f2259c5424
commit 3c44927e0a
364 changed files with 0 additions and 14028 deletions

30
lpctool/bin2h.c Normal file
View file

@ -0,0 +1,30 @@
#include "stdio.h"
#include "string.h"
#include <fcntl.h>
int main(void)
{
int fd;
unsigned long cnt, cnt2;
unsigned char buf[0x10000];
fd = open("ramtool.bin", O_RDONLY);
if(fd)
{
cnt = read(fd, buf, 0x10000);
cnt2 = 0;
printf("#define tool_len 0x%08X\n",cnt);
printf("const unsigned char tool_data[] = {\n\t");
while(cnt--)
{
printf("0x%02X,",buf[cnt2++]);
if((cnt2 & 0x0F) == 0)
printf("\n\t");
}
printf("\n};\n");
close(fd);
}
return 0;
}