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

# LEs
signal          "LED_KERNEL"    pin RB15    # kernel activity indicator
signal          "LED_DISK"      pin RB12    # 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=UART_MAJOR"     # UART device
options         "CONS_MINOR=4"              # /dev/tty4

# Serial UART ports
device          uart5                       # RS-232 port
signal          "UART5_ENA"     pin RB13    # RS-232 enable signal

# SPI ports
controller      spi3                        # SD card

# microSD card
device          sd0     at spi3 pin RD5     # select pin
signal          "SD0_ENA"       pin RB13    # SD card enable

# General purpose I/O ports
# Flags define a mask of available pins
# The following pins excluded:
#   RB8, RB14                - uart5
#   RD1, RD2, RD3, RD5, RB13 - spi3, SD card
device          gpio1   flags 0x9eff    # port B
device          gpio2   flags 0xf000    # port C
device          gpio3   flags 0x0fd1    # port D
device          gpio4   flags 0x00ff    # port E
device          gpio5   flags 0x003b    # port F
device          gpio6   flags 0x03cc    # port G

# ADC driver
device          adc

# PWM driver
device          pwm
