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

61 lines
1.9 KiB
Plaintext

#
# Colour Maximite Computer
# ========================
# Console on USB.
#
# To build the kernel, use:
# cd sys/pic32/maximite
# 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 "MAXIMITE_COLOR" # Board type
ldscript "maximite-color/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=TRISE" # for kernel activity LED...
options "LED_KERNEL_PIN=0" # ...use pin RE0...
options "LED_KERNEL_INVERT" # ...inverted
options "LED_DISK_PORT=TRISE" # for disk activity LED...
options "LED_DISK_PIN=1" # ...use pin RE1
# 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 spi4 # SD card
# microSD card
device sd0 at spi4 pin RA1 # select pin
options "SD0_PORT=4" # at spi3 TODO: delete
options "SD0_CS_PORT=TRISA" # for chip select... TODO: delete
options "SD0_CS_PIN=1" # ...use pin RA1 TODO: delete
# General purpose I/O ports
device gpio
# ADC driver
device adc
# PWM driver
device pwm