mirror of
https://github.com/micropython/micropython.git
synced 2025-08-19 00:50:37 +02:00
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>
This commit is contained in:
committed by
Damien George
parent
90c5b04a97
commit
a7ae3a385e
@@ -29,11 +29,13 @@
|
||||
int real_main(void);
|
||||
int mp_console_init(void);
|
||||
|
||||
void main(void) {
|
||||
int main(void) {
|
||||
#ifdef CONFIG_CONSOLE_SUBSYS
|
||||
mp_console_init();
|
||||
#else
|
||||
zephyr_getchar_init();
|
||||
#endif
|
||||
real_main();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user