Figure 21 The Flow Of Callback Function In Mt7681 - Mediatek Labs LinkIt Connect 7681 Developer's Manual

Table of Contents

Advertisement

4.4.2.
Callback flowchart
The flowchart in Figure 21 shows the event timing and triggers for MT7681 callbacks.
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");
}
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.

Figure 21 The flow of callback function in MT7681

© 2015, 2016 MediaTek Inc.
MediaTek LinkIt™ Connect 7681 Developer's Guide
Page 30 of 65

Advertisement

Table of Contents
loading

Related Products for Mediatek Labs LinkIt Connect 7681

Table of Contents