Skip to content
Balavivek Sivanantham edited this page Nov 18, 2018 · 1 revision

Welcome to the ChibiOS wiki!

Pin Mapping (MCU → mic): (via I2S2, which an option of SPI2, without MCK signal)

PB12 (I2S2_WS / SPI2_NSS) → LRCL (WS) PB13 (I2S2_CK / SPI2_SCK) → BCLK (CLK) PB14 (GPIO / SPI2_MISO) → SEL (SEL) PB15 (I2S2_SD / SPI2_MOSI) → DOUT (DATA)


*** Files Organization ***


--{root} - ChibiOS directory. +--os/ - ChibiOS components. +--include/ - i2s.h is added and in hal.h i2s.h is defined. +--src/ - i2s.c is added. hal.mk - path for i2s package. +--platforms - +--STM32 - +--SPIv1 - i2s_lld.c and i2s_lld.h is added. +--SPIv2 - i2s_lld.c and i2s_lld.h is added. +--STM32F1xx - platform_f105_f107.mk - path for i2s_lld.c and i2s_iid.h package. platform.mk - path for i2s_lld.c and i2s_iid.h package. +--testhal/ - HAL integration test demos. | +--STM32F1xx/ - Created I2S directory inside here. | | +--I2S/ - added all file.

Clone this wiki locally