Dna.cfg

From MGH Designs wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Propeller GCC config files for the DNA

<syntaxhighlight lang="cfg">

  1. dna.cfg (2012-9-24)
  1. SimpleIDE directives (don't remove '#')
  2. IDE:SDLOAD
  3. IDE:SDXMMC
  1. Propeller configuration defaults

clkfreq: 80000000 clkmode: XTAL1+PLL16X

  1. Default serial communications

baudrate: 115200 rxpin: 31 txpin: 30

  1. 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

  1. 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

</syntaxhighlight>