
10 May
2007
10 May
'07
5:40 p.m.
What would be Really Cool[tm]
My idea was simply this (better with an example)
STAND ALONE PROGRAM ... #include exports.h ... char *argv[4] = { "nand", "device", "1", NULL }
/* select NAND device 1 */ if (!(xf_func_inc(XF_do_nand))){ /* make sure that this u-boot has nand support */ if(do_nand (0, 0, 3,argv)) puts("nand device 1 selected"); } Else { puts("Nand not supported"); }
This was a better solution than simply letting the dummy function catch it.
-JM