[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r5150 - gnuradio/branches/developers/matt/u2f/firmware
From: |
matt |
Subject: |
[Commit-gnuradio] r5150 - gnuradio/branches/developers/matt/u2f/firmware |
Date: |
Fri, 27 Apr 2007 00:18:24 -0600 (MDT) |
Author: matt
Date: 2007-04-27 00:18:23 -0600 (Fri, 27 Apr 2007)
New Revision: 5150
Modified:
gnuradio/branches/developers/matt/u2f/firmware/bootstrap.c
gnuradio/branches/developers/matt/u2f/firmware/memory_map.h
Log:
progress
Modified: gnuradio/branches/developers/matt/u2f/firmware/bootstrap.c
===================================================================
--- gnuradio/branches/developers/matt/u2f/firmware/bootstrap.c 2007-04-27
06:17:18 UTC (rev 5149)
+++ gnuradio/branches/developers/matt/u2f/firmware/bootstrap.c 2007-04-27
06:18:23 UTC (rev 5150)
@@ -2,21 +2,17 @@
#include "memory_map.h"
int main() {
-
+
// Set up AD9510
spi_init();
spi_transact(SPI_TXONLY, SPI_SS_AD9510, 0x00004500, 24); // CLK2 drives
distribution
- spi_wait();
spi_transact(SPI_TXONLY, SPI_SS_AD9510, 0x00003D80, 24); // Turn on output
1, normal levels
- spi_wait();
spi_transact(SPI_TXONLY, SPI_SS_AD9510, 0x00004B80, 24); // Bypass divider
- spi_wait();
spi_transact(SPI_TXONLY, SPI_SS_AD9510, 0x00005A01, 24); // Update Regs
- spi_wait();
-
+
// Allow for clock switchover
char clock_controls = (char)0x1C;
- char *p = (char *) OUTPUTS_BASE + 3;
+ char *p = (char *) OUTPUTS_BASE + OUTPUTS_CLK;
*p = clock_controls;
}
Modified: gnuradio/branches/developers/matt/u2f/firmware/memory_map.h
===================================================================
--- gnuradio/branches/developers/matt/u2f/firmware/memory_map.h 2007-04-27
06:17:18 UTC (rev 5149)
+++ gnuradio/branches/developers/matt/u2f/firmware/memory_map.h 2007-04-27
06:18:23 UTC (rev 5150)
@@ -38,5 +38,12 @@
// I2C
#define I2C_BASE 0x2000
#define GPIO_BASE 0x3000
+
+
+///////////////////////////////////////////////////
#define OUTPUTS_BASE 0x4000
+#define OUTPUTS_CLK 0
+#define OUTPUTS_SERDES 1
+#define OUTPUTS_ADC 2
+#define OUTPUTS_MISC 3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r5150 - gnuradio/branches/developers/matt/u2f/firmware,
matt <=