Files
retrobsd/sys/pic32/duinomite-emega/Config
Serge Vakulenko 976bf303cc Kernel config utility: add new specification to assign
logical signals to pins. like 'signal "LED_KERNEL" pin RA0'.
2015-09-19 17:09:40 -07:00

71 lines
2.4 KiB
Plaintext

#
# Olimex Duinomite-eMega board
# ============================
# Console on USB.
# For Windows, use the driver: http://www.schmalzhaus.com/UBW32/FW/UBW32inf.zip
# For details, see https://github.com/RetroBSD/retrobsd/wiki/Board-Olimex-Duinomite
#
# To build the kernel, use:
# cd sys/pic32/duinomite-emega
# kconfig Config
# make clean
# make
#
# Format of this file is described on page:
# http://retrobsd.org/wiki/doku.php/doc/kconfig
#
architecture "pic32"
cpu "PIC32MX7" # Processor variant
board "DUINOMITE" # Board type
ldscript "maximite/bootloader.ld" # Linker script
# Standard system options
options "CPU_KHZ=80000" # Oscillator frequency of CPU core
options "BUS_KHZ=40000" # Frequency of peripheral bus
options "BUS_DIV=1" # Bus clock divisor 1/2/4/8
# LEDs
signal "LED_KERNEL" pin RB15 # kernel activity indicator
signal "LED_DISK" pin RC1 # disk activity indicator
# Root filesystem at /dev/sd0a, swap at /dev/sd0b
config unix root on sd0a
swap on sd0b
# Console options
options "CONSOLE_DEVICE=ttyUSB0" # Console on USB
# Virtual UART on USB
device uartusb
options "USB_MAX_EP_NUMBER=3"
options "USB_NUM_STRING_DESCRIPTORS=3"
# SPI ports
controller spi3 # SD card
# microSD card
device sd0 at spi3
pins RG12, RG13 # select pin, enable pin
options "SD0_PORT=3" # at spi3 TODO: delete
options "SD0_CS_PORT=TRISG" # for chip select... TODO: delete
options "SD0_CS_PIN=12" # ...use pin RG12 TODO: delete
signal "SD0_ENA" pin RG13 # SD card enable signal TODO: delete
# General purpose I/O ports
# Flags define a mask of available pins
# The following pins excluded:
# RD1, RD2, RD3, RG12, RG13 - spi3, SD card
device gpio0 flags 0xc6ff # port A
device gpio1 flags 0xffff # port B
device gpio2 flags 0xf01e # port C
device gpio3 flags 0xfff1 # port D
device gpio4 flags 0x03ff # port E
device gpio5 flags 0x313f # port F
device gpio6 flags 0xc3cf # port G
# ADC driver
device adc
# PWM driver
device pwm