bugfix ds1820
This commit is contained in:
parent
92b835080b
commit
2b7e7b8f8c
|
@ -59,7 +59,8 @@ unsigned char ds1820_ok[8];
|
|||
|
||||
/* 1-wire is at PortE.3 */
|
||||
#define SERIAL_ID_PIN_READ PINE
|
||||
#define SERIAL_ID_PIN_MASK _BV(PE3)
|
||||
//#define SERIAL_ID_PIN_MASK _BV(PE3)
|
||||
#define SERIAL_ID_PIN_MASK _BV(PE4)
|
||||
#define SERIAL_ID_PxOUT PORTE
|
||||
#define SERIAL_ID_PxDIR DDRE
|
||||
|
||||
|
|
|
@ -68,3 +68,22 @@ led1_off(void)
|
|||
PORTE |= (1<<PINE5);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
led2_on(void)
|
||||
{
|
||||
DDRE |= (1<<PINE4);
|
||||
PORTE &= ~(1<<PINE4);
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* \brief Turns the Raven LED1 off.
|
||||
*/
|
||||
void
|
||||
led2_off(void)
|
||||
{
|
||||
DDRE |= (1<<PINE4);
|
||||
PORTE |= (1<<PINE4);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
|
|
@ -47,6 +47,8 @@
|
|||
/** @{ */
|
||||
void led1_on(void);
|
||||
void led1_off(void);
|
||||
void led2_on(void);
|
||||
void led2_off(void);
|
||||
/** @} */
|
||||
|
||||
#endif /* __LED_H__ */
|
||||
|
|
Loading…
Reference in a new issue