Page 1 of 1

Question about adding new functions to port specific modules.

Posted: Sat May 29, 2021 10:57 pm
by chibill
I am wondering where inside a port specific module should I add new functions for example, I wish to add a few new functions to the esp32 modnetwork.c file to add in WPA2 EAP networking support, where in the file would it be best at add these?

After the last function declaration that is accessible from uPy? In the middle somewhere? or at the beginning.

Re: Question about adding new functions to port specific modules.

Posted: Tue Jun 08, 2021 4:28 pm
by chibill
Still looking for an answer.

Re: Question about adding new functions to port specific modules.

Posted: Tue Jun 08, 2021 5:42 pm
by stijn
Doesn't really matter where, as long as it compiles? The function object eventually needs to go in mp_module_network_globals_table so must be defined before that.