Skip to content

Instantly share code, notes, and snippets.

wpa authenticator version : hostap-2.6

set key

unicast addres is ptk. broadcast address is gtk.

common

eloop の RTOS

eloop_run()

while()の中のイベント待ち。

P: イベントフラグ待ち

twai_flg(flagid, flagptn, EVT_OR, timeout);

I2S ADCについて

なるべく簡単に使えるI2S ADCについて調べました。

  • 電源電圧 3.3V単一が良い
  • XTALのみを繋げば良いタイプと、外部の回路が必要な場合がある。
  • PLLがあると48KHzと44.1KHzの両対応が可能 WM8978
  • I2Cで設定しなくても動くタイプもある。

ADCのみ

Realtek audio codec

I2S with stereo AMP

  • ALC5631 / ALC5631Q
  • single I2S
  • ALC5631W / ALC5631V
  • dual I2S
  • ALC5638
  • three I2S
@eggman
eggman / Bluetooth5_overview_j.md
Last active February 8, 2022 10:38
Bluetooth Specification 5.0 (Core_v5.0.pdf) Overview の日本語訳

Bluetooth Specification 5.0 (Core_v5.0.pdf) の Architecture & Terminology Overview P.166 - P264 の日本語訳です。

  • 内容については無保証です。
  • 翻訳の間違い等は、twitterのDM等でご連絡をお願いします。
  • どうもありがとう Google翻訳

gitbookで編集して公開しました。

https://www.gitbook.com/book/eggman/bluetooth-5-overview/details

; arm-none-eabi-objdump -D -b binary -m arm -M force-thumb ram_1.r.bin --start-address=0x16a0
16a0: f8df f000 ldr.w pc, [pc] ; 0x16a4 0x
16a4: 2b39 cmp r3, #57 ; 0x39
16a6: 0000 movs r0, r0
16a8: f8df f000 ldr.w pc, [pc] ; 0x16ac
16ac: 0341 lsls r1, r0, #13
16ae: 0000 movs r0, r0
16b0: f8df f000 ldr.w pc, [pc] ; 0x16b4
# i2s_api.c for AMEBA (RTL8710 and etc)
void i2s_init(i2s_t *obj, PinName sck, PinName ws, PinName sd)
{
RtkI2SLoadDefault();
HalI2SInit();
}
void i2s_set_dma_buffer(i2s_t *obj, char *tx_buf, char *rx_buf,
uint32_t page_num, uint32_t page_size)
@eggman
eggman / startup.c
Last active August 27, 2016 20:20
startup.c for ameba
/* startup.c for ameba */
#include "rtl8195a.h"
extern u32 ConfigDebugWarn;
extern u32 ConfigDebugInfo;
extern u32 ConfigDebugErr;
extern void SystemCoreClockUpdate(void);
extern void En32KCalibration(void);
@eggman
eggman / startup_disasm.txt
Last active August 26, 2016 23:09
disassembled code of ameba startup.o
10003260 <InfraStart>:
10003260: b508 push {r3, lr}
10003262: 4b15 ldr r3, [pc, #84] ; (100032b8 <InfraStart+0x58>)
10003264: 681b ldr r3, [r3, #0]
10003266: 005b lsls r3, r3, #1
10003268: d422 bmi.n 100032b0 <InfraStart+0x50>
1000326a: 4814 ldr r0, [pc, #80] ; (100032bc <InfraStart+0x5c>)
1000326c: 4a14 ldr r2, [pc, #80] ; (100032c0 <InfraStart+0x60>)
1000326e: 2100 movs r1, #0
10003270: 1a12 subs r2, r2, r0