61 lines
1.9 KiB
Plaintext
61 lines
1.9 KiB
Plaintext
#
|
|
# Custom board with UART console
|
|
# ==============================
|
|
# Console on UART1.
|
|
#
|
|
# To build the kernel, use:
|
|
# cd sys/pic32/baremetal
|
|
# 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 "BAREMETAL" # Board type
|
|
ldscript "baremetal/script.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=TRISD" # for kernel activity LED...
|
|
options "LED_KERNEL_PIN=3" # ...use pin RD3
|
|
options "LED_DISK_PORT=TRISD" # for disk activity LED...
|
|
options "LED_DISK_PIN=2" # ...use pin RD2
|
|
options "LED_TTY_PORT=TRISD" # for serial activity LED...
|
|
options "LED_TTY_PIN=12" # ...use pin RD12
|
|
|
|
# Root filesystem at /dev/sd0a, swap at /dev/sd0b
|
|
config unix root on sd0a
|
|
swap on sd0b
|
|
|
|
# Serial UART ports
|
|
device uart1
|
|
|
|
# Console options
|
|
options "CONSOLE_DEVICE=tty0" # /dev/tty0
|
|
|
|
# SPI ports
|
|
controller spi2 # SD card
|
|
|
|
# SD card
|
|
device sd0 at spi2 pin RD1 # select pin
|
|
options "SD0_MHZ=16" # speed 16 MHz
|
|
options "SD0_PORT=2" # at spi2 TODO: delete
|
|
options "SD0_CS_PORT=TRISD" # for chip select... TODO: delete
|
|
options "SD0_CS_PIN=1" # ...use pin RD1 TODO: delete
|
|
|
|
# General purpose I/O ports
|
|
device gpio
|
|
|
|
# ADC driver
|
|
device adc
|
|
|
|
# PWM driver
|
|
device pwm
|