Просмотр исходного кода

头文件中移除不必要不必要的静态声明 write_cmd read_bytes , 避免警告, 也避免同名出现。

Yanhong.Ma 3 лет назад
Родитель
Сommit
abc08b2469
1 измененных файлов с 0 добавлено и 21 удалено
  1. 0 21
      sht3x.h

+ 0 - 21
sht3x.h

@@ -69,27 +69,6 @@ struct sht3x_device
 };
 typedef struct sht3x_device *sht3x_device_t;
 
-/**
- * This function write 2-byte cmd to SHT3x 
- *
- * @param dev the pointer of device driver structure
- * @param cmd the 16bit command to be sent to SHT3x
- *
- * @return the cmd transfer status, RT_EOK reprensents setting successfully.
- */
-static rt_err_t write_cmd(sht3x_device_t dev, rt_uint16_t cmd);
-
-/**
- *  This function read len bytes from dev and store the bytes in to buf 
- * 
- * @param dev the pointer of device driver structure
- * @param buf the pointer to buffer array 
- * @param len the number of bytes to be read 
- * 
- * @return the i2c read status, RT_EOK represents success.
- */
-static rt_err_t read_bytes(sht3x_device_t dev, rt_uint8_t * buf, rt_uint8_t len);
-
 /** 
  * This function read temperature and humidity by single shot mode 
  * Attention: