Files
retrobsd/sys/pic32/duinomite/Config-uart
2015-09-08 22:17:10 -07:00

64 lines
2.2 KiB
Plaintext

#
# Duinomite and Duinomite-Mega boards
# ===================================
# Console on UART5.
# For details, see https://github.com/RetroBSD/retrobsd/wiki/Board-Olimex-Duinomite
#
# To build the kernel, use:
# cd sys/pic32/duinomite
# kconfig Config-uart
# 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=80000" # Frequency of peripheral bus
options "BUS_DIV=1" # Bus clock divisor 1/2/4/8
# LED
options "LED_KERNEL_PORT=TRISB" # for kernel activity LED...
options "LED_KERNEL_PIN=15" # ...use pin RB15
options "LED_DISK_PORT=TRISB" # for disk activity LED...
options "LED_DISK_PIN=12" # ...use pin RB12
# Root filesystem at /dev/sd0a, swap at /dev/sd0b
config unix root on sd0a
swap on sd0b
# Console options
options "CONSOLE_DEVICE=tty4" # Console on UART5
# Serial UART ports
device uart5 pin RB13 # RS-232 port, enable pin
options "UART5_ENA_PORT=TRISB" # for RS-232 enable... TODO: delete
options "UART5_ENA_PIN=13" # ...use pin RB13 TODO: delete
# SPI ports
controller spi3 # SD card
# microSD card
device sd0 at spi3
pins RD5, RB13 # select pin, enable pin
options "SD0_PORT=3" # at spi3 TODO: delete
options "SD0_CS_PORT=TRISD" # for chip select... TODO: delete
options "SD0_CS_PIN=5" # ...use pin RD5 TODO: delete
options "SD0_ENA_PORT=TRISB" # for SD enable... TODO: delete
options "SD0_ENA_PIN=13" # ...use pin RB13 TODO: delete
# General purpose I/O ports
device gpio
# ADC driver
device adc
# PWM driver
device pwm