Skip to content
Snippets Groups Projects
Select Git revision
  • cec738e651588ccf96e990d13aaac49b6921e8c3
  • max32xxx default protected
  • dw-cmsisdap-path
3 results

openocd.c

Blame
  • mpy-cross-wrapper.c 311 B
    #include <stdio.h>
    #include <unistd.h>
    
    #ifndef MPY_CROSS_PATH
    #error "You need to define MPY_CROSS_PATH to compile this wrapper."
    #endif
    
    int main(int argc, char**argv)
    {
    	char path[] = MPY_CROSS_PATH "/mpy-cross";
    	argv[0] = "mpy-cross";
    	execv(path, argv);
    	fprintf(stderr, "Failed to run '%s'!\n", path);
    }