[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r6523 - gnuradio/branches/developers/matt/u2f/firmware
From: |
matt |
Subject: |
[Commit-gnuradio] r6523 - gnuradio/branches/developers/matt/u2f/firmware |
Date: |
Mon, 24 Sep 2007 17:24:28 -0600 (MDT) |
Author: matt
Date: 2007-09-24 17:24:28 -0600 (Mon, 24 Sep 2007)
New Revision: 6523
Modified:
gnuradio/branches/developers/matt/u2f/firmware/memory_map.h
Log:
timer and pic now in memory map
Modified: gnuradio/branches/developers/matt/u2f/firmware/memory_map.h
===================================================================
--- gnuradio/branches/developers/matt/u2f/firmware/memory_map.h 2007-09-24
23:23:52 UTC (rev 6522)
+++ gnuradio/branches/developers/matt/u2f/firmware/memory_map.h 2007-09-24
23:24:28 UTC (rev 6523)
@@ -174,4 +174,30 @@
#define dsp_rx_regs ((dsp_rx_regs_t *) DSP_RX_BASE)
+///////////////////////////////////////////////////
+// Interrupt Controller, Slave 8
+
+#define PIC_BASE 0xE0000
+
+typedef struct {
+ volatile int EdgeEnable;
+ volatile int Polarity;
+ volatile int Mask;
+ volatile int Pending;
+} pic_regs_t;
+
+#define pic_regs ((pic_regs_t *) PIC_BASE)
+
+#define PHY_INT 0x10
+#define I2C_INT 0x08
+#define SPI_INT 0x04
+#define TIMER_INT 0x02
+#define BUFFER_INT 0x01
+
+///////////////////////////////////////////////////
+// Timer, Slave 9
+
+#define TIMER_BASE 0xE800
+#define timer ((int *) TIMER_BASE)
+
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r6523 - gnuradio/branches/developers/matt/u2f/firmware,
matt <=