mirror of
https://github.com/Arthur-cai/Soft_I2C_Driver.git
synced 2025-06-17 04:52:05 +00:00
![]() 1. 修改停止信号函数为void型,且超时不会return 2. 起始信号函数增加时钟延展判断 3. I2C驱动结构体增加延展计数 4. I2C驱动初始化函数增加传参,设置延展计数 Signed-off-by: ArthurCai <arthurcai_c@163.com> |
||
---|---|---|
.. | ||
MDK-ARM | ||
SOFT_I2C | ||
gd32f30x_it.c | ||
gd32f30x_it.h | ||
gd32f30x_libopt.h | ||
main.c | ||
readme.txt | ||
systick.c | ||
systick.h |
/*! \file readme.txt \brief description of the GPIO_Running_Led example \version 2021-03-23, V2.0.0, demo for GD32F30x */ /* Copyright (c) 2021, GigaDevice Semiconductor Inc. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ This demo is based on the GD32303E-EVAL-V1.0 board, LED2 connected to PF0. LED3 connected to PF1. LED4 connected to PF2. Then, three LEDs can light cycles.