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
+90
View File
@@ -0,0 +1,90 @@
#ifndef __LITEPOINT_H
#define __LITEPOINT_H
#include "wm_type_def.h"
typedef struct _ltpt_rx_info
{
volatile int cnt_total;
volatile int cnt_good;
volatile int cnt_bad;
volatile unsigned char valid;
volatile unsigned char snr;
volatile unsigned char rcpi;
volatile unsigned char rate;
volatile unsigned char channel;
volatile unsigned char bandwidth;
volatile unsigned char bprocess;
}ltpt_rx_info;
typedef struct _ltpt_tx_info
{
volatile int cnt_total;
volatile int packetcount;
volatile int psdulen;
/* input parameters */
volatile unsigned char txgain;
volatile unsigned char datarate;
volatile unsigned char gimode;
volatile unsigned char greenfield;
volatile unsigned char rifs;
volatile unsigned char bprocess;
volatile unsigned char channel;
volatile unsigned char longpreamble;
}ltpt_tx_info;
enum Rate
{
S2M = 0x0000,
S5M5 = 0x0001,
S11M = 0x0002,
L1M = 0x0003,
L2M = 0x0004,
L5M5 = 0x0005,
L11M = 0x0006,
R06M = 0x0100,
R09M = 0x0101,
R12M = 0x0102,
R18M = 0x0103,
R24M = 0x0104,
R36M = 0x0105,
R48M = 0x0106,
R54M = 0x0107,
MCS0 = 0x0200,
MCS1 = 0x0201,
MCS2 = 0x0202,
MCS3 = 0x0203,
MCS4 = 0x0204,
MCS5 = 0x0205,
MCS6 = 0x0206,
MCS7 = 0x0207,
MCS8 = 0x0208,
MCS9 = 0x0209,
MCS10 = 0x0210,
MCS11 = 0x0211,
MCS12 = 0x0212,
MCS13 = 0x0213,
MCS14 = 0x0214,
MCS15 = 0x0215,
MCS32 = 0x0232,
};
extern volatile int g_ltpt_testmode;
extern ltpt_rx_info *g_ltpt_rxinfo;
extern ltpt_tx_info *g_ltpt_txinfo;
extern unsigned char hed_rf_txgainmap[];
extern const unsigned int hed_bbp_value[];
void tls_litepoint_start(void);
void tls_tx_send_litepoint(void);
void tls_set_test_channel(u8 channel, u8 bandwidth);
void tls_tx_litepoint_test_start(u32 Packetcnt, u16 Psdulen, u32 Gain, u32 TxRate, u8 GiMode, u8 Gf, u8 Rifs);
void tls_txrx_litepoint_test_stop(void);
void tls_txrx_litepoint_clear_data(void);
int tls_tx_litepoint_test_get_totalsnd(void);
void tls_rx_litepoint_test_start(u32 Channel, u32 BandWidth);
void tls_rx_litepoint_test_result(u32 *total, u32 *goodcnt, u32 *badcnt);
void tls_tx_litepoint_param_update(u8 Gain, u8 TxRate);
void tls_rx_litepoint_test_rate(u8 rate);
void tls_rx_litepoint_pwr_result(u32 *valid, u32 *snr, u32 *rcpi);
void tls_tx_litepoint_period(u32 period);
#endif
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff