| | |
| | | /********************************************************************************* |
| | | * Copyright: (C) 2023 LingYun IoT System Studio. All Rights Reserved. |
| | | * Copyright: (C) 2023 LingYun IoT System Studio |
| | | * All rights reserved. |
| | | * |
| | | * Filename: at24c.c |
| | | * Description: This file is AT24Cxx EEPROM code |
| | | * |
| | | * Version: 1.0.0(10/08/23) |
| | | * Author: Guo Wenxue <guowenxue@gmail.com> |
| | | * ChangeLog: 1, Release initial version on "10/08/23 17:52:00" |
| | | * |
| | | * Description: This file is W25Qxx SPI Norflash driver on RaspberryPi 40Pin. |
| | | * Pin connection: |
| | | * W25QXX Raspberry Pi 40Pin |
| | | * VCC <---> Pin#1 (3.3V) |
| | | * CS <---> Pin#24(CS) |
| | | * DO <---> Pin#21(MISO) |
| | | * GND <---> Pin#9 (GND) |
| | | * CLK <---> Pin#23(SCLK) |
| | | * DI <---> Pin#19(MOSI) |
| | | * |
| | | * W25QXX RaspberryPi 40Pin |
| | | * VCC <---> 3.3V(Pin#1) |
| | | * CS <---> CS(Pin#24) |
| | | * DO <---> MISO(Pin#21) |
| | | * GND <---> GND(Pin#9) |
| | | * CLK <---> SCLK(Pin#23) |
| | | * DI <---> MOSI(Pin#19) |
| | | * /boot/config.txt: |
| | | * dtparam=spi=on |
| | | * |
| | | ********************************************************************************/ |
| | | |