The one in main.c I think is very straight forward, there is a missing include header for SBUS, fixes these compiler warnings:
main.c:73: warning 112: function 'sbus_init' implicit declaration
main.c:73: warning 84: 'auto' variable 'sbus_init' may be used before initialization
main.c:73: warning 84: 'auto' variable 'sbus_init' may be used before initialization
In delay.c I'm not 100% sure... removed static from both functions, to fix this issue when compiling on Windows [SDCC 3.5.0 #9253 (Jun 20 2015) (MINGW64)]:
delay.c:20: error 146: two or more storage classes in declaration for 'delay_ms'
delay.c:45: error 146: two or more storage classes in declaration for 'delay_us'
With no changes it compiled only in Linux [SDCC 3.3.0 #8604 (Dec 30 2013) (Linux) - Ubuntu], and after the change the generated main.hex are identical (could not test this on Windows), so I guess it should be fine also.
Hey, made 2 small fixes.
The one in main.c I think is very straight forward, there is a missing include header for SBUS, fixes these compiler warnings:
In delay.c I'm not 100% sure... removed static from both functions, to fix this issue when compiling on Windows [SDCC 3.5.0 #9253 (Jun 20 2015) (MINGW64)]:
With no changes it compiled only in Linux [SDCC 3.3.0 #8604 (Dec 30 2013) (Linux) - Ubuntu], and after the change the generated main.hex are identical (could not test this on Windows), so I guess it should be fine also.
Hope it helps ;)