#
# Olimex PIC32-RetroBSD board, or
# Pinguino-Micro board with PIC32MX795 processor
# =====================================================
# Console on USB.
# For details, see https://github.com/RetroBSD/retrobsd/wiki/Board-Olimex-PIC32-RetroBSD
#
# To build the kernel, use:
#   cd sys/pic32/pinguino-micro
#   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           "PINGUINO_MICRO"            # 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
signal          "LED_KERNEL" pin RD1 invert # kernel 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"

# Serial UART ports
device          uart1                       # Pins 4, 5 at CON2 connector
device          uart2                       # Pins 3, 4 at UEXT connector

# SPI ports
controller      spi2                        # SD card

# microSD card
device          sd0     at spi2 pin RB13    # select pin

# General purpose I/O ports
# Flags define a mask of available pins
# See schematics for details
device          gpio1   flags 0xdfff        # port B
device          gpio2   flags 0x6000        # port C
device          gpio3   flags 0x0ff3        # port D
device          gpio4   flags 0x00ff        # port E
device          gpio5   flags 0x000b        # port F
device          gpio6   flags 0x0200        # port G

# ADC driver
device          adc

# PWM driver
device          pwm
