The friendly Operating System for the Internet of Things
msba2-common/drivers/include/sht11-board.h File Reference

LPC2387 SHT11 Device Driver. More...

Detailed Description

Author
Freie Universit├Ąt Berlin, Computer Systems & Telematics, FeuerWhere project
Version
$Revision$
Note
$Id$

Definition in file msba2-common/drivers/include/sht11-board.h.

#include "cpu.h"
#include "board.h"
+ Include dependency graph for msba2-common/drivers/include/sht11-board.h:

Go to the source code of this file.

Macros

#define SHT11_SCK_LOW   FIO1CLR = BIT25;
 
#define SHT11_SCK_HIGH   FIO1SET = BIT25;
 
#define SHT11_DATA   ((FIO1PIN & BIT26) != 0)
 
#define SHT11_DATA_LOW   (FIO1CLR = BIT26);
 
#define SHT11_DATA_HIGH   (FIO1SET = BIT26);
 
#define SHT11_DATA_IN   (FIO1DIR &= ~BIT26)
 
#define SHT11_DATA_OUT   (FIO1DIR |= BIT26)
 
#define SHT11_INIT   FIO1DIR |= BIT25; PINSEL3 &= ~(BIT14|BIT15 | BIT16|BIT17);