Nut Programmable Logic Header File. More...
#include <dev/irqreg.h>
Go to the source code of this file.
Defines | |
#define | NPL_BASE 0xFF00 |
CPLD register base address. | |
#define | NPL_RSCR _SFR_MEM8(NPL_BASE + 0x00) |
RS232 command register. | |
#define | NPL_RSFON_BIT 0 |
Force on bit. | |
#define | NPL_RSFON (1 << NPL_RSFON_BIT) |
Force on mask. | |
#define | NPL_RSFOFF_BIT 1 |
Force off bit. | |
#define | NPL_RSFOFF (1 << NPL_RSFOFF_BIT) |
Force off mask. | |
#define | NPL_RSDTR_BIT 2 |
DTR handshake bit. | |
#define | NPL_RSDTR (1 << NPL_RSDTR_BIT) |
DTR handshake mask. | |
#define | NPL_RSRTS_BIT 3 |
RTS handshake bit. | |
#define | NPL_RSRTS (1 << NPL_RSRTS_BIT) |
RTS handshake mask. | |
#define | NPL_RSUS0E_BIT 5 |
USART0 select bit. | |
#define | NPL_RSUS0E (1 << NPL_RSUS0E_BIT) |
USART0 select mask. | |
#define | NPL_RSUS1E_BIT 6 |
USART1 select bit. | |
#define | NPL_RSUS1E (1 << NPL_RSUS1E_BIT) |
USART1 select mask. | |
#define | NPL_RSUS1P_BIT 7 |
USART1 primary bit. | |
#define | NPL_RSUS1P (1 << NPL_RSUS1P_BIT) |
USART1 primary mask. | |
#define | NPL_IMR _SFR_MEM16(NPL_BASE + 0x04) |
Interrupt mask register. | |
#define | NPL_SPICTRL _SFR_MEM8(NPL_BASE + 0x08) |
SPI clock divider register. | |
#define | NPL_SLR _SFR_MEM16(NPL_BASE + 0x0C) |
Signal latch register. | |
#define | NPL_SCR _SFR_MEM16(NPL_BASE + 0x10) |
Signal clear register. | |
#define | NPL_STATUS _SFR_MEM16(NPL_BASE + 0x10) |
Status register. | |
#define | NPL_RSCTS_BIT 0 |
RS232 CTS interrupt bit. | |
#define | NPL_RSCTS (1 << NPL_RSCTS_BIT) |
RS232 CTS interrupt mask. | |
#define | NPL_RSDSR_BIT 1 |
RS232 DSR interrupt bit. | |
#define | NPL_RSDSR (1 << NPL_RSDSR_BIT) |
RS232 DSR interrupt mask. | |
#define | NPL_RSDCD_BIT 2 |
RS232 DCD interrupt bit. | |
#define | NPL_RSDCD (1 << NPL_RSDCD_BIT) |
RS232 DCD interrupt mask. | |
#define | NPL_RSRI_BIT 3 |
RS232 RI interrupt bit. | |
#define | NPL_RSRI (1 << NPL_RSRI_BIT) |
RS232 RI interrupt mask. | |
#define | NPL_RTCALARM_BIT 4 |
RTC alarm interrupt bit. | |
#define | NPL_RTCALARM (1 << NPL_RTCALARM_BIT) |
RTC alarm interrupt mask. | |
#define | NPL_LANWAKEUP_BIT 5 |
NIC wakeup interrupt bit. | |
#define | NPL_LANWAKEUP (1 << NPL_LANWAKEUP_BIT) |
NIC wakeup interrupt mask. | |
#define | NPL_FMBUSY_BIT 6 |
FLASH ready interrupt bit. | |
#define | NPL_FMBUSY (1 << NPL_FMBUSY_BIT) |
FLASH ready interrupt mask. | |
#define | NPL_MMCREADY_BIT 7 |
MMC shift register ready bit. | |
#define | NPL_MMCREADY (1 << NPL_MMCREADY_BIT) |
MMC shift register ready mask. | |
#define | NPL_RSINVAL_BIT 8 |
RS232 invalid interrupt bit. | |
#define | NPL_RSINVAL (1 << NPL_RSINVAL_BIT) |
RS232 invalid interrupt mask. | |
#define | NPL_NRSINVAL_BIT 9 |
RS232 valid interrupt bit. | |
#define | NPL_NRSINVAL (1 << NPL_NRSINVAL_BIT) |
RS232 valid interrupt mask. | |
#define | NPL_MMCD_BIT 10 |
MMC insert interrupt bit. | |
#define | NPL_MMCD (1 << NPL_MMCD_BIT) |
MMC insert interrupt mask. | |
#define | NPL_NMMCD_BIT 11 |
MMC remove interrupt bit. | |
#define | NPL_NMMCD (1 << NPL_NMMCD_BIT) |
MMC remove interrupt mask. | |
#define | NPL_MMCDR _SFR_MEM8(NPL_BASE + 0x14) |
MMC data register. | |
#define | NPL_XER _SFR_MEM8(NPL_BASE + 0x18) |
External enable register. | |
#define | NPL_MMCS 0x0001 |
MMC select. | |
#define | NPL_PANCS 0x0002 |
Panel select. | |
#define | NPL_USRLED 0x0004 |
User LED. | |
#define | NPL_NPCS0 0x0008 |
DataFlash CS. | |
#define | NPL_VIDR _SFR_MEM8(NPL_BASE + 0x1C) |
Version identifier register. | |
Functions | |
int | NplRegisterIrqHandler (IRQ_HANDLER *irq, void(*handler)(void *), void *arg) |
Register an NPL interrupt handler. | |
int | NplIrqEnable (IRQ_HANDLER *irq) |
Enable a specified NPL interrupt. | |
int | NplIrqDisable (IRQ_HANDLER *irq) |
Disable a specified NPL interrupt. | |
Variables | |
IRQ_HANDLER | sig_RSCTS |
RS232 CTS interrupt handler info. | |
IRQ_HANDLER | sig_RSDSR |
RS232 DSR interrupt handler info. | |
IRQ_HANDLER | sig_RSDCD |
RS232 DCD interrupt handler info. | |
IRQ_HANDLER | sig_RSRI |
RS232 RI interrupt handler info. | |
IRQ_HANDLER | sig_RTCALARM |
RTC alarm interrupt handler info. | |
IRQ_HANDLER | sig_LANWAKEUP |
LAN wakeup interrupt handler info. | |
IRQ_HANDLER | sig_FMBUSY |
Flash memory busy interrupt handler info. | |
IRQ_HANDLER | sig_MMCREADY |
IRQ_HANDLER | sig_RSINVAL |
RS232 signal invalid interrupt handler info. | |
IRQ_HANDLER | sig_NRSINVAL |
RS232 signal valid interrupt handler info. | |
IRQ_HANDLER | sig_MMCD |
Multimedia card insertion interrupt handler info. | |
IRQ_HANDLER | sig_NMMCD |
Multimedia card removal interrupt handler info. |
Nut Programmable Logic Header File.
* $Id: npl.h 4477 2012-08-20 17:50:01Z haraldkipp $ *