-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86fa0ff
commit e910cca
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* | ||
* @Author: yj | ||
* @email: [email protected] | ||
* @LastEditors: yj | ||
* @file name: tuya_device.c | ||
* @Description: template demo for SDK WiFi & BLE for BK7231T | ||
* @Copyright: HANGZHOU TUYA INFORMATION TECHNOLOGY CO.,LTD | ||
* @Company: http://www.tuya.com | ||
* @Date: 2021-01-23 16:33:00 | ||
* @LastEditTime: 2021-01-27 17:00:00 | ||
*/ | ||
|
||
#define _TUYA_DEVICE_GLOBAL | ||
|
||
/* Includes ------------------------------------------------------------------*/ | ||
#include "uni_log.h" | ||
#include "tuya_iot_wifi_api.h" | ||
#include "tuya_hal_system.h" | ||
#include "tuya_iot_com_api.h" | ||
#include "tuya_cloud_com_defs.h" | ||
#include "gw_intf.h" | ||
#include "gpio_test.h" | ||
#include "tuya_gpio.h" | ||
#include "tuya_key.h" | ||
#include "tuya_led.h" | ||
#include "wlan_ui_pub.h" | ||
|
||
#include "lwip/sockets.h" | ||
#include "lwip/ip_addr.h" | ||
#include "lwip/inet.h" | ||
|
||
#include "mem_pub.h" | ||
#include "str_pub.h" | ||
#include "ethernet_intf.h" | ||
|
||
#include <saradc_pub.h> | ||
#include <drv_model_pub.h> | ||
|
||
|
||
|
||
const char *CFG_GetDeviceName() { | ||
return "obk_test_loop"; | ||
} | ||
|
||
|
||
// receives status change notifications about wireless - could be useful | ||
// ctxt is pointer to a rw_evt_type | ||
void wl_status( void *ctxt ){ | ||
|
||
|
||
} | ||
|
||
void user_main(void) | ||
{ | ||
OSStatus err; | ||
int i; | ||
|
||
i = 0; | ||
|
||
bk_printf("[OpenBK2731T ObkLooper]!\r\n"); | ||
|
||
|
||
while(1) { | ||
bk_printf("[ObkLooper] %i\r\n",i); | ||
rtos_delay_milliseconds(100); | ||
i++; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./build_app.sh apps/obk_test_loop obk_test_loop git |