core, structural cleanup, fixes and improvements for type issues #2

This commit is contained in:
kub 2021-01-01 12:43:49 +01:00
parent 5ab80df952
commit f821bb7011
64 changed files with 140 additions and 150 deletions

View file

@ -103,7 +103,7 @@ get_define () # prefix struct member member...
field=$(echo $* | sed 's/ /./g')
name=$(echo $* | sed 's/ /_/g')
echo '#include <stdint.h>' > /tmp/getoffs.c
echo '#include "pico/pico_int.h"' >> /tmp/getoffs.c
echo '#include <pico/pico_int.h>' >> /tmp/getoffs.c
echo "static struct $struct p;" >> /tmp/getoffs.c
echo "const int32_t val = (char *)&p.$field - (char*)&p;" >>/tmp/getoffs.c
compile_rodata