kopia lustrzana https://github.com/micropython/micropython
zephyr: Change main function to return an int.
Zephyr v3.4.0 changed the declaration of the main function to return an int to allow building Zephyr without the -ffreestanding compiler flag. Signed-off-by: Maureen Helm <maureen.helm@analog.com>pull/9335/head
rodzic
a354ed5539
commit
24ec66471b
|
@ -29,7 +29,7 @@
|
|||
|
||||
int real_main(void);
|
||||
|
||||
void main(void) {
|
||||
int main(void) {
|
||||
#ifdef CONFIG_CONSOLE_SUBSYS
|
||||
console_init();
|
||||
#else
|
||||
|
@ -40,4 +40,6 @@ void main(void) {
|
|||
// This is needed so the linker includes k_timer_init, z_impl_k_timer_start
|
||||
// and z_impl_k_timer_stop, as used by libmicropython.a.
|
||||
k_timer_start(NULL, K_MSEC(0), K_MSEC(0));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue