Commit c6586f9e authored by Andrey Filippov's avatar Andrey Filippov
Browse files

Added function declaration

parent 636a8f86
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -8,6 +8,9 @@
#include "elphel/x393_types.h"
//#include "elphel/x393_defs.h // alternative variant"

// init_mmio_ptr() should be called once before using any of the other declared functions

int init_mmio_ptr(void);

// R/W addresses to set up memory arbiter priorities. For sensors  (chn = 8..11), for compressors - 12..15

+3 −0
Original line number Diff line number Diff line
@@ -127,6 +127,9 @@ class X393ExportC(object):
        # Includes section
        txt = '\n#include "elphel/x393_types.h"\n'
        txt +='//#include "elphel/x393_defs.h // alternative variant"\n\n'
        txt +=  '// init_mmio_ptr() should be called once before using any of the other declared functions\n\n'
        txt +=  'int init_mmio_ptr(void);\n'
        
        for d in ld:
            fd=self.expand_define_maxi0(d, mode = "func_decl",frmt_spcs = None)
            if fd: