build: W600-SDK importiert, Firmware-Build und Hello am EVK

Docker-Build mit gcc-arm-none-eabi 4.9-2014q4 (statt Homebrew-Cask) verwendet,
Dockerfile/tools/docker.sh dafür aus Task 13 vorgezogen. cmake/sdk.cmake schont
gcc 4.9 (kennt -fcommon/-Wno-error=... nicht). Zwei zusätzliche SDK-Stubs
(EarlyInit, pre_gpio_config) in src/sys/sdk_stubs.c ergänzt, siehe sdk/PATCHES.md.
This commit is contained in:
Michael Sauer
2026-09-11 12:52:26 +02:00
parent 4e7ff78fc6
commit 1b0501179d
610 changed files with 224089 additions and 0 deletions
@@ -0,0 +1,66 @@
/******************************************************************************
Copyright (C) 2015 Winner Micro electronics Co., Ltd.
******************************************************************************
File Name : alg.h
Version : Initial Draft
Author : Li Limin, lilm@winnermicro.com
Created : 2015/3/7
Last Modified :
Description : Application layer gateway, (alg) only for apsta
History :
Date : 2015/3/7
Author : Li Limin, lilm@winnermicro.com
Modification : Created file
******************************************************************************/
#ifndef __ALG_H__
#define __ALG_H__
#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */
/* ============================== configure ===================== */
/* napt age time (second) */
#define NAPT_TABLE_TIMEOUT 60
/* napt port range: 15000~25000 */
#define NAPT_LOCAL_PORT_RANGE_START 0x3A98
#define NAPT_LOCAL_PORT_RANGE_END 0x61A8
/* napt icmp id range: 3000-65535 */
#define NAPT_ICMP_ID_RANGE_START 0xBB8
#define NAPT_ICMP_ID_RANGE_END 0xFFFF
/* napt table size */
//#define NAPT_TABLE_LIMIT
#ifdef NAPT_TABLE_LIMIT
#define NAPT_TABLE_SIZE_MAX 3000
#endif
/* ============================================================ */
#define NAPT_TMR_INTERVAL ((NAPT_TABLE_TIMEOUT / 2) * 1000UL)
extern bool alg_napt_port_is_used(u16 port);
extern int alg_napt_init(void);
extern int alg_input(const u8 *bssid, u8 *pkt_body, u32 pkt_len);
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
#endif /* __ALG_H__ */