• Stars
    star
    104
  • Rank 330,604 (Top 7 %)
  • Language
    C
  • License
    GNU General Publi...
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

24xx EEPROM library for stm32 HAL

24xx EEPROM library for stm32 HAL

ko-fi


solve F1 i2c problem


void HAL_I2C_MspInit(I2C_HandleTypeDef* i2cHandle)
{

  GPIO_InitTypeDef GPIO_InitStruct = {0};
  if(i2cHandle->Instance==I2C2)
  {
  /* USER CODE BEGIN I2C2_MspInit 0 */
   __HAL_RCC_I2C2_CLK_ENABLE();  // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<  add manualy
  /* USER CODE END I2C2_MspInit 0 */
  
    __HAL_RCC_GPIOB_CLK_ENABLE();
    /**I2C2 GPIO Configuration    
    PB10     ------> I2C2_SCL
    PB11     ------> I2C2_SDA 
    */
    GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11;
    GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
    GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
    HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);

    /* I2C2 clock enable */
    __HAL_RCC_I2C2_CLK_ENABLE();
  /* USER CODE BEGIN I2C2_MspInit 1 */

  /* USER CODE END I2C2_MspInit 1 */
  }
}

example:

#include "ee24.h"

uint8_t data[1024];
int main(void)
{
  if (ee24_isConnected())
  {
    ee24_read(0, data, 1024, 1000);
  }
  while(1)
  {
  
  }
}

More Repositories

1

SPIF

w25qxx SPI FLASH driver for stm32 HAL
C
424
star
2

gsm_v5

gsm module library for STM32 LL
C
194
star
3

ee

EEPROM emulation for stm32.
C
190
star
4

ESP8266

Esp8266 Atcommand driver for Stm32
C
127
star
5

ds18b20

ds18b20 library for stm32 hal
C
110
star
6

atc

STM32 LL AT-Command parser
C
98
star
7

NMEA

GPS NMEA Library for stm32 LL
C
93
star
8

master-modbus

master modbus library for STM32 LL
C
57
star
9

ask

ASK Remote Receiver/Sender (EV1527,PT2262,PT2264 and ... )
C
52
star
10

HX711

HX711 driver for STM32 HAL
C
47
star
11

KeyPad

Matrix KeyPad Library for stm32 HAL
C
42
star
12

DHT

DHT Sensor Library for stm32 HAL
C
37
star
13

AltiumLibrary

Useful Altium pcb library (3D)
35
star
14

max31865

Max31865 library for stm32 hal
C
35
star
15

LCD-Character

4 Pin LCD character Library for STM32 HAL
C
35
star
16

gsm

gsm module library for STM32 LL
C
32
star
17

sx1278

sx1278 LoRa driver for Stm32 HAL
C
28
star
18

ATC-V2

STM32 AT Command LL library
C
21
star
19

ws281x

ws281x driver for stm32 HAL
C
21
star
20

NTC

convert ntc value to C or F
C
19
star
21

DtmfGenerator

Dtmf generator for stm32
C
19
star
22

Schematic

Useful schematics
19
star
23

FingerPrint

FingerPrint R308 6 pin Driver For Stm32 HAL library
C
18
star
24

Isd17xxx

Isd17xxx series library for stm32 hal library
C
17
star
25

MLX90614

Infrared Temperature Sensor
C
17
star
26

ff_iso

STM32 multitasking fatfs
C
15
star
27

STM32-CycloneTCP-ENC28J60

Configure file for ENC28J60 + Cyclone TCP
C
15
star
28

pmeter

AC power meter based on STM32 ADC
C
14
star
29

45dbxxx

45dbxxx library for stm32 hal
C
14
star
30

emWinTouch

xpt2046 Touch drive for STemwin
C
13
star
31

RFID

RFID EM-18,EM-19 module Library for STM32 HAL
C
13
star
32

BS81X

Serial Touch Key Library For STM32 HAL
C
12
star
33

Fingerprint-SM25-

SM25 fingerprint library for STM32
C
11
star
34

rtcF1

calendar for STM32F1 series
C
9
star
35

tm1637

tm1637 display library for STM32
C
7
star
36

ADS1110

ADS1110 Library for STM32 HAL
C
6
star
37

somfy

somfy remote receiver for stm32 platform
C
3
star
38

STM32-PACK

2
star
39

rbuf

Ring Buffer (Circular Buffer) Library for STM32
C
2
star
40

Nimaltd

1
star