Difference between revisions of "Dna.cfg"

From MGH Designs wiki
Jump to: navigation, search
(Created page with "== Propeller GCC config files for the DNA == <pre> # dna.cfg (2012-9-24) # SimpleIDE directives (don't remove '#') # IDE:SDLOAD # IDE:SDXMMC # Propeller configuration defau...")
 
m (Martin Hodge moved page dna.cfg to Dna.cfg without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Propeller GCC config files for the DNA ==
 
== Propeller GCC config files for the DNA ==
  
<pre>
+
<syntaxhighlight lang="cfg">
 
# dna.cfg (2012-9-24)
 
# dna.cfg (2012-9-24)
  
Line 45: Line 45:
 
     cache-param1: (22 << 24) | (23 << 16) | (26 << 8) | 0x01
 
     cache-param1: (22 << 24) | (23 << 16) | (26 << 8) | 0x01
 
     cache-param2: 27 << 24
 
     cache-param2: 27 << 24
</pre>
+
</syntaxhighlight>

Latest revision as of 19:25, 17 September 2016

Propeller GCC config files for the DNA

# dna.cfg (2012-9-24)

# SimpleIDE directives (don't remove '#')
# IDE:SDLOAD
# IDE:SDXMMC

# Propeller configuration defaults
clkfreq: 80000000
clkmode: XTAL1+PLL16X

# Default serial communications
baudrate: 115200
rxpin: 31
txpin: 30

# Default SPI config
spi-base: 0
sd-driver: sd_driver.dat
sdspi-do: {spi-base} + 0
sdspi-clk: {spi-base} + 1
sdspi-di: {spi-base} + 2
sdspi-cs: {spi-base} + 3

# Default cache config
cachespi-cs: {spi-base} + 4
cache-size: 8K
cache-driver: spi_flash_cache.dat
cache-param1: ({sdspi-di} << 24) | ({sdspi-do} << 16) | ({sdspi-clk} << 8) | 0x21
cache-param2: {cachespi-cs} << 24

[hi]
    spi-base: 16

[sqi]
    cache-driver: winbond_sqi_flash_cache.dat
    cache-param1: (22 << 24) | (23 << 16) | (26 << 8) | 0x01
    cache-param2: 27 << 24

[sqihi]
    spi-base: 16
    cache-driver: winbond_sqi_flash_cache.dat
    cache-param1: (22 << 24) | (23 << 16) | (26 << 8) | 0x01
    cache-param2: 27 << 24