bugfix ds1820

This commit is contained in:
harald 2012-12-17 14:25:35 +01:00 committed by harald
parent 92b835080b
commit 2b7e7b8f8c
3 changed files with 23 additions and 1 deletions

View file

@ -59,7 +59,8 @@ unsigned char ds1820_ok[8];
/* 1-wire is at PortE.3 */ /* 1-wire is at PortE.3 */
#define SERIAL_ID_PIN_READ PINE #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_PxOUT PORTE
#define SERIAL_ID_PxDIR DDRE #define SERIAL_ID_PxDIR DDRE

View file

@ -68,3 +68,22 @@ led1_off(void)
PORTE |= (1<<PINE5); 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);
}
/*---------------------------------------------------------------------------*/

View file

@ -47,6 +47,8 @@
/** @{ */ /** @{ */
void led1_on(void); void led1_on(void);
void led1_off(void); void led1_off(void);
void led2_on(void);
void led2_off(void);
/** @} */ /** @} */
#endif /* __LED_H__ */ #endif /* __LED_H__ */