Fix retroone configuration.
Reorganize ubw32 and picadillo configurations.
This commit is contained in:
BIN
sys/pic32/32mxsdram-uart/32mxsdram-schematics.pdf
Normal file
BIN
sys/pic32/32mxsdram-uart/32mxsdram-schematics.pdf
Normal file
Binary file not shown.
@@ -1,11 +1,9 @@
|
||||
|
||||
# Programs that live in subdirectories, and have makefiles of their own.
|
||||
#
|
||||
SUBDIR = baremetal duinomite duinomite-emega \
|
||||
explorer16 max32 maximite \
|
||||
meb starter-kit sdxl ubw32 ubw32-uart \
|
||||
ubw32-uart-sdram baremetal fubarino mmb-mx7 maximite-color \
|
||||
32mxsdram-uart picadillo wf32 pinguino-micro
|
||||
SUBDIR = baremetal duinomite duinomite-emega explorer16 \
|
||||
fubarino max32 maximite maximite-color meb mmb-mx7 \
|
||||
picadillo pinguino-micro sdxl starter-kit ubw32 wf32
|
||||
|
||||
default:
|
||||
|
||||
|
||||
@@ -18,30 +18,6 @@ DEFS += -DCPU_KHZ=80000
|
||||
DEFS += -DCPU_MUL=20
|
||||
DEFS += -DCPU_ODIV=1
|
||||
DEFS += -DCRYSTAL=8
|
||||
DEFS += -DDC0_DEBUG=DEVCFG0_DEBUG_DISABLED
|
||||
DEFS += -DDC0_ICE=0
|
||||
DEFS += -DDC1_CKM=0
|
||||
DEFS += -DDC1_CKS=0
|
||||
DEFS += -DDC1_FNOSC=DEVCFG1_FNOSC_PRIPLL
|
||||
DEFS += -DDC1_IESO=DEVCFG1_IESO
|
||||
DEFS += -DDC1_OSCIOFNC=0
|
||||
DEFS += -DDC1_PBDIV=DEVCFG1_FPBDIV_1
|
||||
DEFS += -DDC1_POSCMOD=DEVCFG1_POSCMOD_HS
|
||||
DEFS += -DDC1_SOSC=0
|
||||
DEFS += -DDC1_WDTEN=0
|
||||
DEFS += -DDC1_WDTPS=DEVCFG1_WDTPS_1
|
||||
DEFS += -DDC2_PLLIDIV=DEVCFG2_FPLLIDIV_2
|
||||
DEFS += -DDC2_PLLMUL=DEVCFG2_FPLLMUL_20
|
||||
DEFS += -DDC2_PLLODIV=DEVCFG2_FPLLODIV_1
|
||||
DEFS += -DDC2_UPLL=0
|
||||
DEFS += -DDC2_UPLLIDIV=DEVCFG2_UPLLIDIV_2
|
||||
DEFS += -DDC3_CAN=DEVCFG3_FCANIO
|
||||
DEFS += -DDC3_ETH=DEVCFG3_FETHIO
|
||||
DEFS += -DDC3_MII=DEVCFG3_FMIIEN
|
||||
DEFS += -DDC3_SRS=DEVCFG3_FSRSSEL_7
|
||||
DEFS += -DDC3_USBID=DEVCFG3_FUSBIDIO
|
||||
DEFS += -DDC3_USERID=0xffff
|
||||
DEFS += -DDC3_VBUSON=DEVCFG3_FVBUSONIO
|
||||
DEFS += -DEXEC_AOUT
|
||||
DEFS += -DEXEC_ELF
|
||||
DEFS += -DEXEC_SCRIPT
|
||||
@@ -96,7 +72,7 @@ DEFS += -DUCB_METER
|
||||
|
||||
LDSCRIPT = ../../../tools/configsys/../../sys/pic32/cfg/bootloader-max32.ld
|
||||
|
||||
CONFIG = PICADILLO_RAMBO
|
||||
CONFIG = PICADILLO-RAMBO
|
||||
CONFIGPATH = ../../../tools/configsys
|
||||
|
||||
include ../../../tools/configsys/../../sys/pic32/kernel-post.mk
|
||||
@@ -2,8 +2,8 @@
|
||||
# Picadillo 35T board
|
||||
# ===================
|
||||
#
|
||||
# Console on UART1
|
||||
# SD/MMC card driver on SPI2
|
||||
# Console on UART1.
|
||||
# SD/MMC card driver on SPI2.
|
||||
|
||||
core pic32mx7
|
||||
mapping picadillo
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
#
|
||||
# Picadillo 35T board
|
||||
# ===================
|
||||
#
|
||||
# Console on TFT display.
|
||||
# SD/MMC card driver on SPI2.
|
||||
# SPI RAM on SPI4.
|
||||
|
||||
core pic32mx7
|
||||
mapping picadillo
|
||||
9
sys/pic32/picadillo_rambo/.gitignore
vendored
9
sys/pic32/picadillo_rambo/.gitignore
vendored
@@ -1,9 +0,0 @@
|
||||
.compileversion
|
||||
.deps/
|
||||
.oldversion
|
||||
machine
|
||||
sys
|
||||
unix.bin
|
||||
unix.map
|
||||
usbboot.map
|
||||
vers.c
|
||||
@@ -9,7 +9,7 @@ vpath %.c $(M):$(S)
|
||||
vpath %.S $(M):$(S)
|
||||
|
||||
# Kernel options.
|
||||
DEFS += -I. -I$(H) -DKERNEL -DUCB_METER -DPIC32MX7
|
||||
DEFS += -I. -I$(H) -DKERNEL -DPIC32MX7
|
||||
DEFS += -DGLOBAL_DEBUG
|
||||
|
||||
# CPU frequency 80 MHz.
|
||||
@@ -38,13 +38,16 @@ ASFLAGS = $(DEFS) $(DEPFLAGS)
|
||||
|
||||
include ../gcc-config.mk
|
||||
|
||||
CC = $(GCCPREFIX)gcc -EL -g -mips32r2
|
||||
CC = $(MIPS_GCC_PREFIX)gcc -EL -g -mips32r2
|
||||
CC += -nostdinc -fno-builtin -Werror -Wall -fno-dwarf2-cfi-asm
|
||||
LDFLAGS += -nostdlib -T ../cfg/bare.ld -Wl,-Map=unix.map
|
||||
SIZE = $(GCCPREFIX)size
|
||||
OBJDUMP = $(GCCPREFIX)objdump
|
||||
OBJCOPY = $(GCCPREFIX)objcopy
|
||||
MPIDE = /Applications/Mpide.app/Contents/Resources/Java/
|
||||
LDFLAGS = -nostdlib -T ../cfg/bare.ld -Wl,-Map=unix.map
|
||||
SIZE = $(MIPS_GCC_PREFIX)size
|
||||
OBJDUMP = $(MIPS_GCC_PREFIX)objdump
|
||||
OBJCOPY = $(MIPS_GCC_PREFIX)objcopy
|
||||
|
||||
ifneq (${MIPS_GCC_FORMAT},)
|
||||
LDFLAGS += -Wl,--oformat=${MIPS_GCC_FORMAT}
|
||||
endif
|
||||
|
||||
# Machine-dependent files:
|
||||
# startup.o MUST be loaded first.
|
||||
@@ -60,6 +63,7 @@ KERNOBJ += init_main.o init_sysent.o kern_clock.o \
|
||||
subr_log.o subr_prf.o subr_rmap.o \
|
||||
sys_generic.o sys_inode.o syscalls.o \
|
||||
sys_pipe.o sys_process.o tty.o exec_conf.o exec_subr.o \
|
||||
exec_aout.o exec_elf.o exec_script.o \
|
||||
tty_subr.o tty_tty.o ufs_alloc.o ufs_bio.o \
|
||||
ufs_bmap.o ufs_dsort.o ufs_fio.o \
|
||||
ufs_inode.o ufs_mount.o ufs_namei.o ufs_subr.o \
|
||||
|
||||
@@ -23,3 +23,10 @@ PIC32_DEVCFG (
|
||||
DEVCFG3_USERID(0xffff) | /* User-defined ID */
|
||||
DEVCFG3_FSRSSEL_7 | /* Assign irq priority 7 to shadow set */
|
||||
DEVCFG3_FETHIO); /* Default Ethernet i/o pins */
|
||||
|
||||
#include "sys/param.h"
|
||||
#include "sys/conf.h"
|
||||
|
||||
dev_t rootdev = makedev(0, 1); /* sd0a */
|
||||
dev_t dumpdev = makedev(0, 2); /* sd0b */
|
||||
dev_t swapdev = makedev(0, 2); /* sd0b */
|
||||
|
||||
9
sys/pic32/ubw32-uart-sdram/.gitignore
vendored
9
sys/pic32/ubw32-uart-sdram/.gitignore
vendored
@@ -1,9 +0,0 @@
|
||||
.compileversion
|
||||
.deps/
|
||||
.oldversion
|
||||
machine
|
||||
sys
|
||||
unix.bin
|
||||
unix.map
|
||||
usbboot.map
|
||||
vers.c
|
||||
@@ -1,25 +0,0 @@
|
||||
/*
|
||||
* Chip configuration.
|
||||
*/
|
||||
#include "machine/pic32mx.h"
|
||||
|
||||
PIC32_DEVCFG (
|
||||
DEVCFG0_DEBUG_DISABLED, /* ICE debugger enabled */
|
||||
|
||||
DEVCFG1_FNOSC_PRIPLL | /* Primary oscillator with PLL */
|
||||
DEVCFG1_POSCMOD_HS | /* HS oscillator */
|
||||
DEVCFG1_FPBDIV_1 | /* Peripheral bus clock = SYSCLK/1 */
|
||||
DEVCFG1_IESO | /* Internal-external switch over */
|
||||
DEVCFG1_WDTPS_1, /* Watchdog postscale = 1/1 */
|
||||
|
||||
DEVCFG2_FPLLIDIV_2 | /* PLL divider = 1/2 */
|
||||
DEVCFG2_FPLLMUL_20 | /* PLL multiplier = 20x */
|
||||
DEVCFG2_UPLLIDIV_2 | /* USB PLL divider = 1/2 */
|
||||
DEVCFG2_FPLLODIV_1, /* PLL postscaler = 1/1 */
|
||||
|
||||
DEVCFG3_USERID(0xffff) | /* User-defined ID */
|
||||
DEVCFG3_FSRSSEL_7 | /* Assign irq priority 7 to shadow set */
|
||||
DEVCFG3_FUSBIDIO | /* USBID pin: controlled by USB */
|
||||
DEVCFG3_FVBUSONIO | /* VBuson pin: controlled by USB */
|
||||
DEVCFG3_FCANIO | /* Default CAN pins */
|
||||
DEVCFG3_FETHIO); /* Default Ethernet i/o pins */
|
||||
9
sys/pic32/ubw32-uart/.gitignore
vendored
9
sys/pic32/ubw32-uart/.gitignore
vendored
@@ -1,9 +0,0 @@
|
||||
.compileversion
|
||||
.deps/
|
||||
.oldversion
|
||||
machine
|
||||
sys
|
||||
unix.bin
|
||||
unix.map
|
||||
usbboot.map
|
||||
vers.c
|
||||
@@ -1,25 +0,0 @@
|
||||
/*
|
||||
* Chip configuration.
|
||||
*/
|
||||
#include "machine/pic32mx.h"
|
||||
|
||||
PIC32_DEVCFG (
|
||||
DEVCFG0_DEBUG_DISABLED, /* ICE debugger enabled */
|
||||
|
||||
DEVCFG1_FNOSC_PRIPLL | /* Primary oscillator with PLL */
|
||||
DEVCFG1_POSCMOD_HS | /* HS oscillator */
|
||||
DEVCFG1_FPBDIV_1 | /* Peripheral bus clock = SYSCLK/1 */
|
||||
DEVCFG1_IESO | /* Internal-external switch over */
|
||||
DEVCFG1_WDTPS_1, /* Watchdog postscale = 1/1 */
|
||||
|
||||
DEVCFG2_FPLLIDIV_2 | /* PLL divider = 1/2 */
|
||||
DEVCFG2_FPLLMUL_20 | /* PLL multiplier = 20x */
|
||||
DEVCFG2_UPLLIDIV_2 | /* USB PLL divider = 1/2 */
|
||||
DEVCFG2_FPLLODIV_1, /* PLL postscaler = 1/1 */
|
||||
|
||||
DEVCFG3_USERID(0xffff) | /* User-defined ID */
|
||||
DEVCFG3_FSRSSEL_7 | /* Assign irq priority 7 to shadow set */
|
||||
DEVCFG3_FUSBIDIO | /* USBID pin: controlled by USB */
|
||||
DEVCFG3_FVBUSONIO | /* VBuson pin: controlled by USB */
|
||||
DEVCFG3_FCANIO | /* Default CAN pins */
|
||||
DEVCFG3_FETHIO); /* Default Ethernet i/o pins */
|
||||
Reference in New Issue
Block a user