#
# 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

# LEDs
signal          "LED_KERNEL" pin RE0 invert # kernel activity indicator
signal          "LED_DISK"   pin RE1        # disk activity indicator

# Root filesystem at /dev/sd0a, swap at /dev/sd0b
config          unix    root on sd0a
                        swap on sd0b

# Console options
options         "CONS_MAJOR=UARTUSB_MAJOR"  # UARTUSB device

# 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

# General purpose I/O ports
# Flags define a mask of available pins
# The following pins excluded:
#   RF4, RF5, RD10, RA1 - spi4, SD card
device          gpio0   flags 0xc6fd    # port A
device          gpio1   flags 0xffff    # port B
device          gpio2   flags 0xf01e    # port C
device          gpio3   flags 0xfbff    # 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
