/**
* @file tmp102.c
* @brief TMP102 I2C temperature sensor driver implementation
* @details GD32F350 I2C0 master driver for TMP102.
* APB1 = 54MHz, I2C0 = 100kHz standard mode.
*
* @version 1.0
* @date 2026-06-18
* @author
*/
#include <stdio.h>
#include "gd32f3x0.h"
#include "tmp102.h"
/* I2C bus timeout (loop counter, ~5ms @ 108MHz with debug) */
#define TMP102_I2C_TIMEOUT 100000U
/* ================================================================
* Internal Helpers
* ================================================================ */</
订阅专栏 解锁全文
203

被折叠的 条评论
为什么被折叠?



