![Mediatek Labs LinkIt Connect 7681 Developer'S Manual Download Page 35](http://html1.mh-extra.com/html/mediatek-labs/linkit-connect-7681/linkit-connect-7681_developers-manual_1760804035.webp)
MediaTek LinkIt™ Connect 7681 Developer's Guide
© 2015, 2016 MediaTek Inc.
Page 30 of 65
This document contains information that is proprietary to MediaTek Inc.
Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.
4.4.2.
Callback flowchart
The flowchart in Figure 21 shows the event timing and triggers for MT7681 callbacks.
Figure 21 The flow of callback function in MT7681
4.4.3.
iot_cust_preinit ()
iot_cust_preinit()
is called once at system start-up. Code should NOT do anything related to
UART or GPIO here, because they are not initialized at this stage. It’s recommended you place
structure or global parameter initialization here.
4.4.4.
iot_cust_init()
iot_cust_init()
is called once after module initialization has finished. It’s recommended that
UART and GPIO or customer software initialization is done here. The following is an example of
code that could be placed in this callback.
void iot_cust_init(void)
{
/* run customer initial function */
printf_high("Hello world \n");
}