File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 4343 - name : Patch cy_syslib.c to declare cy_delay32kMs
4444 run : |
4545 # Add extern declaration for cy_delay32kMs directly in cy_syslib.c
46- sed -i '/#include "cy_syslib.h"/a \\\n/* Extern declaration for delay variable */\nextern uint32_t cy_delay32kMs;' lib/psoc6pdl/drivers/source/cy_syslib.c
46+ # Find the line with the include and add the extern declaration after it
47+ awk '/#include "cy_syslib.h"/ {print; print ""; print "/* Extern declaration for delay variable */"; print "extern uint32_t cy_delay32kMs;"; next} 1' \
48+ lib/psoc6pdl/drivers/source/cy_syslib.c > /tmp/cy_syslib_patched.c
49+ mv /tmp/cy_syslib_patched.c lib/psoc6pdl/drivers/source/cy_syslib.c
4750
4851 - name : Workaround for sources.list
4952 run : |
You can’t perform that action at this time.
0 commit comments