1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-12-24 01:58:58 +02:00
xburst-tools/nandprog/common/main.c
2009-04-05 16:26:33 +00:00

24 lines
393 B
C

/*
* Main entry of the program.
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
#include "include.h"
static np_data *npdata;
int main(int argc, char *argv[])
{
if (cmdline(argc, argv, npdata)) return 0;
npdata=cmdinit();
if (!npdata) return 0;
if (cmdexcute(npdata)) return 0;
if (cmdexit(npdata)) return 0;
return 0;
}