mirror of
https://github.com/sengeiou/realtek_ameba_mp_sdk.git
synced 2026-07-06 11:35:43 +00:00
ameba micropython sdk first commit
This commit is contained in:
commit
8508ee6139
5619 changed files with 1874619 additions and 0 deletions
11
sdk/component/common/application/wigadget/cloud_link.h
Normal file
11
sdk/component/common/application/wigadget/cloud_link.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#ifndef CLOUD_LINK_H
|
||||
#define CLOUD_LINK_THREAD_H
|
||||
|
||||
#include "wigadget.h"
|
||||
|
||||
void start_cloud_link(void);
|
||||
void cloud_link_task(void *param);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
25
sdk/component/common/application/wigadget/encrypt.h
Normal file
25
sdk/component/common/application/wigadget/encrypt.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef _WI_ENCRYPT_H_
|
||||
#define _WI_ENCRYPT_H_
|
||||
|
||||
#include "rom_aes.h"
|
||||
|
||||
typedef union
|
||||
{ unsigned int l;
|
||||
unsigned char b[4];
|
||||
} aes_inf;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
aes_context ctx;
|
||||
aes_inf inf;
|
||||
|
||||
} aes_encrypt_ctx;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
aes_context ctx;
|
||||
aes_inf inf;
|
||||
|
||||
} aes_decrypt_ctx;
|
||||
|
||||
#endif
|
||||
13
sdk/component/common/application/wigadget/shtc1.h
Normal file
13
sdk/component/common/application/wigadget/shtc1.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#ifndef SHTC1_H
|
||||
#define SHTC1_H
|
||||
|
||||
#define NO_ERROR 0x00
|
||||
#define ACK_ERROR 0x01
|
||||
#define CHECKSUM_ERROR 0x02
|
||||
#define NULL_ERROR 0x03
|
||||
|
||||
int SHTC_GetTempAndHumi(float *temp, float *humi);
|
||||
int SHTC_Init(uint16_t *pID);
|
||||
void example_shtc1(void);
|
||||
|
||||
#endif
|
||||
11
sdk/component/common/application/wigadget/wigadget.h
Normal file
11
sdk/component/common/application/wigadget/wigadget.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#ifndef WIGADGET_H
|
||||
#define WIGADGET_H
|
||||
|
||||
#define FLASH_IOT_DATA (0x0007E000)
|
||||
#define PSEUDO_DATA 1
|
||||
|
||||
void example_wigadget(void);
|
||||
void gen_json_data(char *i, char *j, unsigned char *json_data);
|
||||
|
||||
#endif /* WIGADGET_H */
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue