Nut/OS  4.10.3
API Reference
xnut.h File Reference
#include <cfg/os.h>
#include <cfg/memory.h>
#include <cfg/arch.h>
#include <cfg/eeprom.h>
#include <arch/avr.h>
#include <cfg/arch/avrpio.h>
Include dependency graph for xnut.h:

Go to the source code of this file.

Defines

#define _XNUT_XXX_H_INCLUDED   "cfg/xnut.h"
#define F_CPU   NUT_CPU_FREQ
#define LED_S1_OFF()   do {PORTF &= ~_BV(2); PORTF &= ~_BV(3);} while(0)
#define LED_S1_RED()   do {PORTF &= ~_BV(2); PORTF |= _BV(3);} while(0)
#define LED_S1_RED_TOGGLE()   do {PORTF &= ~_BV(2); PORTF ^= _BV(3);} while(0)
#define LED_S1_GREEN()   do {PORTF |= _BV(2); PORTF &= ~_BV(3);} while(0)
#define LED_S1_GREEN_TOGGLE()   do {PORTF ^= _BV(2); PORTF &= ~_BV(3);} while(0)
#define LED_S1_RED_GREEN_TOGGLE()
#define LED_S2_OFF()   do {PORTF &= ~_BV(0); PORTF &= ~_BV(1);} while(0)
#define LED_S2_RED()   do {PORTF &= ~_BV(0); PORTF |= _BV(1);} while(0)
#define LED_S2_RED_TOGGLE()   do {PORTF &= ~_BV(0); PORTF ^= _BV(1);} while(0)
#define LED_S2_GREEN()   do {PORTF |= _BV(0); PORTF &= ~_BV(1);} while(0)
#define LED_S2_GREEN_TOGGLE()   do {PORTF ^= _BV(0); PORTF &= ~_BV(1);} while(0)
#define LED_S2_RED_GREEN_TOGGLE()
#define SER0_RS232_MODE()   (PORTB |= _BV(0))
#define SER0_RS485_MODE()   (PORTB &= ~_BV(0))
#define SER0_RS485_DRV_ON()   (PORTB |= _BV(1))
#define SER0_RS485_DRV_OFF()   (PORTB &= ~_BV(1))
#define SER1_RS232_MODE()   (PORTB |= _BV(2))
#define SER1_RS485_MODE()   (PORTB &= ~_BV(2))
#define SER1_RS485_DRV_ON()   (PORTB |= _BV(3))
#define SER1_RS485_DRV_OFF()   (PORTB &= ~_BV(3))
#define SER0_GET_CD()   bit_is_set(PINB, 6)
#define SER0_GET_RI()   bit_is_clear(PINB, 7)
#define SER0_GET_CTS()   bit_is_clear(PINE, 6)
#define SER0_GET_DSR()   bit_is_clear(PINE, 4)
#define SER0_SET_RTS()   (PORTB &= ~_BV(4))
#define SER0_CLR_RTS()   (PORTB |= _BV(4))
#define SER0_SET_DTR()   (PORTB &= ~_BV(5))
#define SER0_CLR_DTR()   (PORTB |= _BV(5))

Define Documentation

#define _XNUT_XXX_H_INCLUDED   "cfg/xnut.h"

Definition at line 40 of file xnut.h.

#define F_CPU   NUT_CPU_FREQ

Definition at line 57 of file xnut.h.