aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-04-21 19:36:49 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-04-21 19:36:49 -0400
commit3d37362d6e5f39d000e81bd35ae4c1f33abf2e8b (patch)
tree7a52fe24d648adceebddba3286d7cf9c5c7083bb /scripts
parent8f9e497d6950bf47274cb084a6d3d8ca2b854976 (diff)
downloadkutter-3d37362d6e5f39d000e81bd35ae4c1f33abf2e8b.tar.gz
kutter-3d37362d6e5f39d000e81bd35ae4c1f33abf2e8b.tar.xz
kutter-3d37362d6e5f39d000e81bd35ae4c1f33abf2e8b.zip
buildcommands: Call irq_poll() after last task function
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/buildcommands.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/buildcommands.py b/scripts/buildcommands.py
index d41cab0f..a26ee95d 100644
--- a/scripts/buildcommands.py
+++ b/scripts/buildcommands.py
@@ -46,7 +46,9 @@ class HandleCallList:
func_code = [' extern void %s(void);\n %s();' % (f, f)
for f in funcs]
if funcname == 'ctr_run_taskfuncs':
- func_code = [' irq_poll();\n' + fc for fc in func_code]
+ add_poll = ' irq_poll();\n'
+ func_code = [add_poll + fc for fc in func_code]
+ func_code.append(add_poll)
fmt = """
void
%s(void)