Files
retrobsd/sys/pic32/ubw32/Config-uart
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

73 lines
2.7 KiB
Plaintext

#
# UBW32 board with two SD card slots
# ==================================
# For details, see https://github.com/RetroBSD/retrobsd/wiki/Board-Sparkfun-UBW32
# Console on UART2.
#
# To build the kernel, use:
# cd sys/pic32/ubw32
# 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 "UBW32" # Board type
ldscript "ubw32/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
# LEDs
signal "LED_KERNEL" pin RE2 invert # kernel activity indicator
signal "LED_DISK" pin RE1 invert # disk activity indicator
signal "LED_SWAP" pin RE0 invert # swap activity indicator
signal "LED_TTY" pin RE3 invert # tty activity indicator
# Root filesystem at /dev/sd0a, swap at /dev/sd0b
config unix root on sd0a
swap on sd0b
# Console options
options "CONSOLE_DEVICE=tty1" # Console on UART2
# Serial UART ports
device uart2 # USB-to-serial adapter
# SPI ports
controller spi1 # SD card
# microSD card
device sd0 at spi1 pin RA9 # select pin
device sd1 at spi1 pin RA10 # select pin
options "SD0_PORT=1" # sd0 at spi1 TODO: delete
options "SD0_CS_PORT=TRISA" # for sd0 chip select...TODO: delete
options "SD0_CS_PIN=9" # ...use pin RA9 TODO: delete
options "SD1_PORT=1" # sd1 at spi1 TODO: delete
options "SD1_CS_PORT=TRISA" # for sd1 chip select...TODO: delete
options "SD1_CS_PIN=10" # ...use pin RA9 TODO: delete
# General purpose I/O ports
# Flags define a mask of available pins
# The following pins excluded:
# RF4, RF5 - uart2
# RC4, RD0, RD10, RA9, RA10 - spi1, SD card
device gpio0 flags 0xc0ff # port A
device gpio1 flags 0xffff # port B
device gpio2 flags 0xf00e # port C
device gpio3 flags 0xfbfe # port D
device gpio4 flags 0x03ff # port E
device gpio5 flags 0x310f # port F
device gpio6 flags 0xf3cf # port G
# ADC driver
device adc
# PWM driver
device pwm