satar1980

Results 5 comments of satar1980

i want communicate to stm32f1. i config stm32 as cdc devive. and on the f1c100s i can receive data with this function : static void mydev_rcv (void) // this fucntion...

iam use this setup but still fail to send data : int usbh_myevice_init (DSC_DEV *dev_dsc) { // if(dev_dsc->idVendor != 0x0483 || dev_dsc->idProduct != 0x5750) return KO; if(dev_dsc->idVendor != 0x0483 ||...

> You have incorrect values ​​for the USB->RXFIFOSZ and USB->TXFIFOSZ registers: 2^(6+3) = 2^9 = 512. You need to do: USB->RXFIFOSZ = 3 and USB->TXFIFOSZ = 3. Accordingly: 2^(3+3) =...

you can try this code ii.c #include #include "iic.h" enum { I2C_ADDR = 0x000, I2C_XADDR = 0x004, I2C_DATA = 0x008, I2C_CNTR = 0x00c, I2C_STAT = 0x010, I2C_CCR = 0x014, I2C_SRST...

iic.h #ifndef _DRV_I2C_H_ #define _DRV_I2C_H_ enum { I2C_M_TEN = 0x0010, I2C_M_RD = 0x0001, I2C_M_STOP = 0x8000, I2C_M_NOSTART = 0x4000, I2C_M_REV_DIR_ADDR = 0x2000, I2C_M_IGNORE_NAK = 0x1000, I2C_M_NO_RD_ACK = 0x0800, I2C_M_RECV_LEN =...