From 6f4beed83abcae0ed345ab693830b9ec051950d0 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> Date: Sun, 23 Jul 2006 16:47:32 +0000 Subject: add definitions for clear and set bit commands git-svn-id: https://svn.openpcd.org:2342/trunk@31 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpcd/firmware/include/openpcd.h | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/openpcd/firmware/include/openpcd.h b/openpcd/firmware/include/openpcd.h index b7cda20..5c1e622 100644 --- a/openpcd/firmware/include/openpcd.h +++ b/openpcd/firmware/include/openpcd.h @@ -15,14 +15,18 @@ struct openpcd_hdr { u_int8_t data[0]; } __attribute__ ((packed)); -#define OPENPCD_CMD_WRITE_REG 0x01 -#define OPENPCD_CMD_WRITE_FIFO 0x02 -#define OPENPCD_CMD_WRITE_VFIFO 0x03 -#define OPENPCD_CMD_READ_REG 0x11 -#define OPENPCD_CMD_READ_FIFO 0x12 -#define OPENPCD_CMD_READ_VFIFO 0x13 -#define OPENPCD_CMD_SET_LED 0x21 - -#define OPENPCD_CMD_IRQ 0x40 /* IRQ reported by RC632 */ +#define OPENPCD_CMD_WRITE_REG 0x01 +#define OPENPCD_CMD_WRITE_FIFO 0x02 +#define OPENPCD_CMD_WRITE_VFIFO 0x03 +#define OPENPCD_CMD_REG_BITS_CLEAR 0x04 +#define OPENPCD_CMD_REG_BITS_SET 0x05 + +#define OPENPCD_CMD_READ_REG 0x11 +#define OPENPCD_CMD_READ_FIFO 0x12 +#define OPENPCD_CMD_READ_VFIFO 0x13 + +#define OPENPCD_CMD_SET_LED 0x21 + +#define OPENPCD_CMD_IRQ 0x40 /* IRQ reported by RC632 */ #endif -- cgit v1.2.3