Convert <CR><CR><LF> line endings to <LF>
This commit is contained in:
parent
97ea7b0376
commit
e7d2b64894
1 changed files with 90 additions and 90 deletions
|
@ -1,90 +1,90 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2008 Swedish Institute of Computer Science
|
* Copyright (c) 2008 Swedish Institute of Computer Science
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions are met:
|
* modification, are permitted provided that the following conditions are met:
|
||||||
*
|
*
|
||||||
* * Redistributions of source code must retain the above copyright
|
* * Redistributions of source code must retain the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
* * Redistributions in binary form must reproduce the above copyright
|
* * Redistributions in binary form must reproduce the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer in
|
* notice, this list of conditions and the following disclaimer in
|
||||||
* the documentation and/or other materials provided with the
|
* the documentation and/or other materials provided with the
|
||||||
* distribution.
|
* distribution.
|
||||||
* * Neither the name of the copyright holders nor the names of
|
* * Neither the name of the copyright holders nor the names of
|
||||||
* contributors may be used to endorse or promote products derived
|
* contributors may be used to endorse or promote products derived
|
||||||
* from this software without specific prior written permission.
|
* from this software without specific prior written permission.
|
||||||
*
|
*
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
* 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
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* \file
|
* \file
|
||||||
*
|
*
|
||||||
* \brief
|
* \brief
|
||||||
* Interface for the onboard temperature sensor.
|
* Interface for the onboard temperature sensor.
|
||||||
*
|
*
|
||||||
* \author
|
* \author
|
||||||
* Mike Vidales mavida404@gmail.com
|
* Mike Vidales mavida404@gmail.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __TEMP_H__
|
#ifndef __TEMP_H__
|
||||||
#define __TEMP_H__
|
#define __TEMP_H__
|
||||||
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "adc.h"
|
#include "adc.h"
|
||||||
|
|
||||||
#define PROGMEM_DECLARE(x) x __attribute__((__progmem__))
|
#define PROGMEM_DECLARE(x) x __attribute__((__progmem__))
|
||||||
|
|
||||||
/** \addtogroup lcd */
|
/** \addtogroup lcd */
|
||||||
/** \{ */
|
/** \{ */
|
||||||
/** Type used with \ref temp_get() to select temperature unit */
|
/** Type used with \ref temp_get() to select temperature unit */
|
||||||
typedef enum {
|
typedef enum {
|
||||||
TEMP_UNIT_CELCIUS,
|
TEMP_UNIT_CELCIUS,
|
||||||
TEMP_UNIT_FAHRENHEIT
|
TEMP_UNIT_FAHRENHEIT
|
||||||
} temp_unit_t;
|
} temp_unit_t;
|
||||||
|
|
||||||
/** \name Definition of Port Pin for temp sensor. */
|
/** \name Definition of Port Pin for temp sensor. */
|
||||||
/** \{ */
|
/** \{ */
|
||||||
#define TEMP_PORT PORTF
|
#define TEMP_PORT PORTF
|
||||||
#define TEMP_DDR DDRF
|
#define TEMP_DDR DDRF
|
||||||
#define TEMP_PIN PINF
|
#define TEMP_PIN PINF
|
||||||
#define TEMP_BIT_IN 4
|
#define TEMP_BIT_IN 4
|
||||||
#define TEMP_BIT_PWR 6
|
#define TEMP_BIT_PWR 6
|
||||||
/** \} */
|
/** \} */
|
||||||
|
|
||||||
/** \brief Initialize the temperature sensor
|
/** \brief Initialize the temperature sensor
|
||||||
*
|
*
|
||||||
* \return EOF on error
|
* \return EOF on error
|
||||||
*/
|
*/
|
||||||
int temp_init(void);
|
int temp_init(void);
|
||||||
|
|
||||||
|
|
||||||
/** \brief De-initialize the temperature sensor
|
/** \brief De-initialize the temperature sensor
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void temp_deinit(void);
|
void temp_deinit(void);
|
||||||
|
|
||||||
/** \brief Read current temperature
|
/** \brief Read current temperature
|
||||||
*
|
*
|
||||||
* \param[in] unit Selected temperature unit (\ref temp_unit_t)
|
* \param[in] unit Selected temperature unit (\ref temp_unit_t)
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* \return EOF on error
|
* \return EOF on error
|
||||||
*/
|
*/
|
||||||
int16_t temp_get(temp_unit_t unit);
|
int16_t temp_get(temp_unit_t unit);
|
||||||
/** \} */
|
/** \} */
|
||||||
#endif /* __TEMP_H__ */
|
#endif /* __TEMP_H__ */
|
||||||
|
|
Loading…
Reference in a new issue