cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103 I2C Slave Mode <Slave Transmitter & Master Receiver> Example Source code

csocom
Associate II

I want STM32F103 to I2C mode test

I can control <I2C Master Transmitter & Slave Receiver > mode

But, I need

-. When I2C Slave Mode: Slave Transmitter & Master Receiver example Code.

example)

Slave transmitter

Slave receiver

Master transmitter

Master receiver

 

#define DMA_Master_Transmit

#define DMA_Master_Receive

#define DMA_Slave_Transmit

#define DMA_Slave_Receive

#define IT_Master_Transmit

#define IT_Master_Receive

#define IT_Slave_Receive

#define IT_Slave_Transmit

#define Polling_Master_Transmit

#define Polling_Master_Receive

Many thanks!!!

2 REPLIES 2

Do you use some library?

JW

csocom
Associate II

I Use "STM32F10x_StdPeriph_Driver".