mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2025-04-21 12:27:27 +03:00
add nand flash tools
This commit is contained in:
23
nandprog/common/main.c
Normal file
23
nandprog/common/main.c
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* 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;
|
||||
}
|
||||
Reference in New Issue
Block a user