Mediatek Labs LinkIt Connect 7681 Developer's Manual page 36

Table of Contents

Advertisement

This code will result in the message "Hello world" being output from UART when MT7681 starts
up, as follows:
==> Recovery Mode
<== RecoveryMode
(-)
SM=0, Sub=0
Hello world
[WTask]5001
[WTask]10001
4.4.5.
iot_cust_subtask1()
iot_cust_subtask1() is called as a sub-task of wifiTASK_LowPrioTask(), which in turn executes
approximately once every 1ms or less, but this will depend on how long this callback takes to
execute. You can add your own logic here, for example:
void iot_cust_subtask1(void)
{
static int32 i=0;
printf_high("Hello world [%d]\n", i++);
}
This code will result in the message "Hello world" being output from UART approximately once
every 1ms.
==> Recovery Mode
<== RecoveryMode
(-)
SM=0, Sub=0
SM=1, Sub=0
Hello world [0]
Hello world [1]
Hello world [2]
Hello world [3]
Hello world [4]
4.4.6.
UART Tx and Rx callback
MT7681 registers a UART ISR handler callback for URT Tx and Rx where:
UART_Rx_Cb() is the callback for the UART Rx data handler and the interrupt assert
triggers as Rx FIFO gets close to full.
UART_Tx_Cb() is the callback for the UART Tx data handler and the interrupt asserts as
IoT_uart_output() gets close to filling the Tx buffer.
Smart Connection provides the callback STARxDoneInterruptHandle() that can check the
contents of the Smart Connection Rx packet.
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.
MediaTek LinkIt™ Connect 7681 Developer's Guide
© 2015, 2016 MediaTek Inc.
Page 31 of 65

Advertisement

Table of Contents
loading

Related Products for Mediatek Labs LinkIt Connect 7681

Table of Contents