#ifndef __opled_h__#define __opled_h__#include "common.h"namespace OpLed {#if defined BOARD_rs232ifconst int OpLedMask=(0x01 << 4);#elif defined BOARD_umServo32const int OpLedMask=(0x01 << 4);#elif defined BOARD_umHBridgeconst int OpLedMask=(0x01 << 2);#else#error Unknown board specification#endifvoid inline Init() {SETBIT(DDRD,OpLedMask);}void inline On() {SETBIT(PORTD,OpLedMask);}void inline Off() {CLRBIT(PORTD,OpLedMask);}void inline Toggle() {TOGGLEBIT(PORTD,OpLedMask);}}#endif // __opled_h__