Updated some comments

This commit is contained in:
Alexey Zholtikov 2024-06-23 12:34:25 +03:00
parent 88bf443320
commit 18afcab1d9
2 changed files with 0 additions and 14 deletions

View File

@ -1,9 +1,3 @@
/**
* @file
* Header file for the zh_ds18b20 component.
*
*/
#pragma once
#include "stdio.h"

View File

@ -1,19 +1,11 @@
/**
* @file
* The main code of the zh_ds18b20 component.
*
*/
#include "zh_ds18b20.h"
/// \cond
#define SCRATCHPAD_LENGTH 8 // Scratchpad length.
#define CONVERT_TEMPERATURE 0x44 // Initiates temperature conversion.
#define READ_SCRATCHPAD 0xBE // Reads bytes from scratchpad.
#define pgm_read_byte(addr) (*(const uint8_t *)(addr))
/// \endcond
static uint8_t _crc_calculate(const uint8_t *scratchpad);