Starting support for PICMX324xx/5xx/7xx and PIC32 Ethernet Starter Kit

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4033 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-10-10 02:11:08 +00:00
parent b30d8ba5bb
commit c6d2d6af88
31 changed files with 1633 additions and 728 deletions

0
arch/mips/src/pic32mx/Make.defs Executable file → Normal file
View File

1875
arch/mips/src/pic32mx/chip.h Executable file → Normal file

File diff suppressed because it is too large Load Diff

0
arch/mips/src/pic32mx/excptmacros.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-adc.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-bmx.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-che.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-cm.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-config.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-cvr.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-ddp.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-devcfg.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-dma.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-flash.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-i2c.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-ic.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-int.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-internal.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-ioport.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-irq.c Executable file → Normal file
View File

486
arch/mips/src/pic32mx/pic32mx-memorymap.h Executable file → Normal file
View File

@ -1,239 +1,247 @@
/************************************************************************************ /************************************************************************************
* arch/mips/src/pic32mx/pic32mx-memorymap.h * arch/mips/src/pic32mx/pic32mx-memorymap.h
* *
* Copyright (C) 2011 Gregory Nutt. All rights reserved. * Copyright (C) 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr> * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
* *
* 1. Redistributions of source code must retain the above copyright * 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer. * notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in * notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the * the documentation and/or other materials provided with the
* distribution. * distribution.
* 3. Neither the name NuttX nor the names of its contributors may be * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software * used to endorse or promote products derived from this software
* without specific prior written permission. * without specific prior written permission.
* *
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
**** ****
// *********************************************************************************/ // *********************************************************************************/
#ifndef __ARCH_MIPS_SRC_PIC32MX_PIC32MX_MEMORYMAP_H #ifndef __ARCH_MIPS_SRC_PIC32MX_PIC32MX_MEMORYMAP_H
#define __ARCH_MIPS_SRC_PIC32MX_PIC32MX_MEMORYMAP_H #define __ARCH_MIPS_SRC_PIC32MX_PIC32MX_MEMORYMAP_H
/************************************************************************************ /************************************************************************************
* Included Files * Included Files
************************************************************************************/ ************************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
#include "chip.h" #include "chip.h"
#include "mips32-memorymap.h" #include "mips32-memorymap.h"
/************************************************************************************ /************************************************************************************
* Pre-Processor Definitions * Pre-Processor Definitions
************************************************************************************/ ************************************************************************************/
/* This memory may be valid for other chips as well, but I don't know that */ /* This top-level memory map is valid for the PIC32MX3xx/4xx as well as the
* PIC32MX5xx/6xx/7xx families.
#if defined(CHIP_PIC32MX3) || defined(CHIP_PIC32MX4) */
/* Physical Memory Map **************************************************************/ #if defined(CHIP_PIC32MX3) || defined(CHIP_PIC32MX4) || defined(CHIP_PIC32MX5) ||
defined(CHIP_PIC32MX6) || defined(CHIP_PIC32MX7)
# define PIC32MX_DATAMEM_PBASE 0x00000000 /* Size depends on CHIP_DATAMEM_KB */
# define PIC32MX_PROGFLASH_PBASE 0x1d000000 /* Size depends on CHIP_PROGFLASH_KB */ /* Physical Memory Map **************************************************************/
# define PIC32MX_SFR_PBASE 0x1f800000 /* Special function registers */
# define PIC32MX_BOOTFLASH_PBASE 0x1fc00000 /* Size depends on CHIP_BOOTFLASH_KB */ # define PIC32MX_DATAMEM_PBASE 0x00000000 /* Size depends on CHIP_DATAMEM_KB */
# define PIC32MX_DEVCFG_PBASE 0x1fc02ff0 /* Device configuration registers */ # define PIC32MX_PROGFLASH_PBASE 0x1d000000 /* Size depends on CHIP_PROGFLASH_KB */
# define PIC32MX_SFR_PBASE 0x1f800000 /* Special function registers */
/* Virtual Memory Map ***************************************************************/ # define PIC32MX_BOOTFLASH_PBASE 0x1fc00000 /* Size depends on CHIP_BOOTFLASH_KB */
# define PIC32MX_DEVCFG_PBASE 0x1fc02ff0 /* Device configuration registers */
# define PIC32MX_DATAMEM_K0BASE (KSEG0_BASE + PIC32MX_DATAMEM_PBASE)
# define PIC32MX_PROGFLASH_K0BASE (KSEG0_BASE + PIC32MX_PROGFLASH_PBASE) /* Virtual Memory Map ***************************************************************/
# define PIC32MX_BOOTFLASH_K0BASE (KSEG0_BASE + PIC32MX_BOOTFLASH_PBASE)
# define PIC32MX_DEVCFG_K0BASE (KSEG0_BASE + PIC32MX_DEVCFG_PBASE) # define PIC32MX_DATAMEM_K0BASE (KSEG0_BASE + PIC32MX_DATAMEM_PBASE)
# define PIC32MX_PROGFLASH_K0BASE (KSEG0_BASE + PIC32MX_PROGFLASH_PBASE)
# define PIC32MX_DATAMEM_K1BASE (KSEG1_BASE + PIC32MX_DATAMEM_PBASE) # define PIC32MX_BOOTFLASH_K0BASE (KSEG0_BASE + PIC32MX_BOOTFLASH_PBASE)
# define PIC32MX_PROGFLASH_K1BASE (KSEG1_BASE + PIC32MX_PROGFLASH_PBASE) # define PIC32MX_DEVCFG_K0BASE (KSEG0_BASE + PIC32MX_DEVCFG_PBASE)
# define PIC32MX_SFR_K1BASE (KSEG1_BASE + PIC32MX_SFR_PBASE)
# define PIC32MX_BOOTFLASH_K1BASE (KSEG1_BASE + PIC32MX_BOOTFLASH_PBASE) # define PIC32MX_DATAMEM_K1BASE (KSEG1_BASE + PIC32MX_DATAMEM_PBASE)
# define PIC32MX_DEVCFG_K1BASE (KSEG1_BASE + PIC32MX_DEVCFG_PBASE) # define PIC32MX_PROGFLASH_K1BASE (KSEG1_BASE + PIC32MX_PROGFLASH_PBASE)
# define PIC32MX_SFR_K1BASE (KSEG1_BASE + PIC32MX_SFR_PBASE)
/* Register Base Addresses **********************************************************/ # define PIC32MX_BOOTFLASH_K1BASE (KSEG1_BASE + PIC32MX_BOOTFLASH_PBASE)
# define PIC32MX_DEVCFG_K1BASE (KSEG1_BASE + PIC32MX_DEVCFG_PBASE)
/* Watchdog Register Base Address */ #endif
# define PIC32MX_WDT_K1BASE (PIC32MX_SFR_K1BASE + 0x00000000) /* Register Base Addresses **********************************************************/
/* RTCC Register Base Address */ #if defined(CHIP_PIC32MX3) || defined(CHIP_PIC32MX4)
# define PIC32MX_RTCC_K1BASE (PIC32MX_SFR_K1BASE + 0x00000200) /* Watchdog Register Base Address */
/* Timer 1-5 Register Base Addresses */ # define PIC32MX_WDT_K1BASE (PIC32MX_SFR_K1BASE + 0x00000000)
# define PIC32MX_TIMER_K1BASE(n) (PIC32MX_SFR_K1BASE + 0x00000600 + 0x200*(n-1)) /* RTCC Register Base Address */
# define PIC32MX_TIMER1_K1BASE (PIC32MX_SFR_K1BASE + 0x00000600)
# define PIC32MX_TIMER2_K1BASE (PIC32MX_SFR_K1BASE + 0x00000800) # define PIC32MX_RTCC_K1BASE (PIC32MX_SFR_K1BASE + 0x00000200)
# define PIC32MX_TIMER3_K1BASE (PIC32MX_SFR_K1BASE + 0x00000a00)
# define PIC32MX_TIMER4_K1BASE (PIC32MX_SFR_K1BASE + 0x00000c00) /* Timer 1-5 Register Base Addresses */
# define PIC32MX_TIMER5_K1BASE (PIC32MX_SFR_K1BASE + 0x00000e00)
# define PIC32MX_TIMER_K1BASE(n) (PIC32MX_SFR_K1BASE + 0x00000600 + 0x200*(n-1))
/* Input Capture 1-5 Register Base Addresses */ # define PIC32MX_TIMER1_K1BASE (PIC32MX_SFR_K1BASE + 0x00000600)
# define PIC32MX_TIMER2_K1BASE (PIC32MX_SFR_K1BASE + 0x00000800)
# define PIC32MX_IC_K1BASE(n) (PIC32MX_SFR_K1BASE + 0x00002000 + 0x200*(n-1)) # define PIC32MX_TIMER3_K1BASE (PIC32MX_SFR_K1BASE + 0x00000a00)
# define PIC32MX_IC1_K1BASE (PIC32MX_SFR_K1BASE + 0x00002000) # define PIC32MX_TIMER4_K1BASE (PIC32MX_SFR_K1BASE + 0x00000c00)
# define PIC32MX_IC2_K1BASE (PIC32MX_SFR_K1BASE + 0x00002200) # define PIC32MX_TIMER5_K1BASE (PIC32MX_SFR_K1BASE + 0x00000e00)
# define PIC32MX_IC3_K1BASE (PIC32MX_SFR_K1BASE + 0x00002400)
# define PIC32MX_IC4_K1BASE (PIC32MX_SFR_K1BASE + 0x00002600) /* Input Capture 1-5 Register Base Addresses */
# define PIC32MX_IC5_K1BASE (PIC32MX_SFR_K1BASE + 0x00002800)
# define PIC32MX_IC_K1BASE(n) (PIC32MX_SFR_K1BASE + 0x00002000 + 0x200*(n-1))
/* Output Compare 1-5 Register Base Addresses */ # define PIC32MX_IC1_K1BASE (PIC32MX_SFR_K1BASE + 0x00002000)
# define PIC32MX_IC2_K1BASE (PIC32MX_SFR_K1BASE + 0x00002200)
# define PIC32MX_OC_K1BASE(n) (PIC32MX_SFR_K1BASE + 0x00003000 + 0x200*(n-1)) # define PIC32MX_IC3_K1BASE (PIC32MX_SFR_K1BASE + 0x00002400)
# define PIC32MX_OC1_K1BASE (PIC32MX_SFR_K1BASE + 0x00003000) # define PIC32MX_IC4_K1BASE (PIC32MX_SFR_K1BASE + 0x00002600)
# define PIC32MX_OC2_K1BASE (PIC32MX_SFR_K1BASE + 0x00003200) # define PIC32MX_IC5_K1BASE (PIC32MX_SFR_K1BASE + 0x00002800)
# define PIC32MX_OC3_K1BASE (PIC32MX_SFR_K1BASE + 0x00003400)
# define PIC32MX_OC4_K1BASE (PIC32MX_SFR_K1BASE + 0x00003600) /* Output Compare 1-5 Register Base Addresses */
# define PIC32MX_OC5_K1BASE (PIC32MX_SFR_K1BASE + 0x00003800)
# define PIC32MX_OC_K1BASE(n) (PIC32MX_SFR_K1BASE + 0x00003000 + 0x200*(n-1))
/* I2C 1-2 Register Base Addresses */ # define PIC32MX_OC1_K1BASE (PIC32MX_SFR_K1BASE + 0x00003000)
# define PIC32MX_OC2_K1BASE (PIC32MX_SFR_K1BASE + 0x00003200)
# define PIC32MX_I2C1_K1BASE (PIC32MX_SFR_K1BASE + 0x00005000) # define PIC32MX_OC3_K1BASE (PIC32MX_SFR_K1BASE + 0x00003400)
# define PIC32MX_I2C2_K1BASE (PIC32MX_SFR_K1BASE + 0x00005200) # define PIC32MX_OC4_K1BASE (PIC32MX_SFR_K1BASE + 0x00003600)
# define PIC32MX_OC5_K1BASE (PIC32MX_SFR_K1BASE + 0x00003800)
/* SPI 1-2 Register Base Addresses */
/* I2C 1-2 Register Base Addresses */
# define PIC32MX_SPI1_K1BASE (PIC32MX_SFR_K1BASE + 0x00005800)
# define PIC32MX_SPI2_K1BASE (PIC32MX_SFR_K1BASE + 0x00005a00) # define PIC32MX_I2C1_K1BASE (PIC32MX_SFR_K1BASE + 0x00005000)
# define PIC32MX_I2C2_K1BASE (PIC32MX_SFR_K1BASE + 0x00005200)
/* UART 1-2 Register Base Addresses */
/* SPI 1-2 Register Base Addresses */
# define PIC32MX_UART1_K1BASE (PIC32MX_SFR_K1BASE + 0x00006000)
# define PIC32MX_UART2_K1BASE (PIC32MX_SFR_K1BASE + 0x00006200) # define PIC32MX_SPI1_K1BASE (PIC32MX_SFR_K1BASE + 0x00005800)
# define PIC32MX_SPI2_K1BASE (PIC32MX_SFR_K1BASE + 0x00005a00)
/* Parallel Master Register Base Address */
/* UART 1-2 Register Base Addresses */
# define PIC32MX_PMP_K1BASE (PIC32MX_SFR_K1BASE + 0x00007000)
# define PIC32MX_UART1_K1BASE (PIC32MX_SFR_K1BASE + 0x00006000)
/* ADC Register Base Addresses */ # define PIC32MX_UART2_K1BASE (PIC32MX_SFR_K1BASE + 0x00006200)
# define PIC32MX_ADC_K1BASE (PIC32MX_SFR_K1BASE + 0x00009000) /* Parallel Master Register Base Address */
/* Comparator Voltage Reference Register Base Addresses */ # define PIC32MX_PMP_K1BASE (PIC32MX_SFR_K1BASE + 0x00007000)
# define PIC32MX_CVR_K1BASE (PIC32MX_SFR_K1BASE + 0x00009800) /* ADC Register Base Addresses */
/* Comparator Register Base Addresses */ # define PIC32MX_ADC_K1BASE (PIC32MX_SFR_K1BASE + 0x00009000)
# define PIC32MX_CM_K1BASE (PIC32MX_SFR_K1BASE + 0x0000a000) /* Comparator Voltage Reference Register Base Addresses */
# define PIC32MX_CM1_K1BASE (PIC32MX_SFR_K1BASE + 0x0000a000)
# define PIC32MX_CM2_K1BASE (PIC32MX_SFR_K1BASE + 0x0000a010) # define PIC32MX_CVR_K1BASE (PIC32MX_SFR_K1BASE + 0x00009800)
/* Oscillator Control Register Base Addresses */ /* Comparator Register Base Addresses */
# define PIC32MX_OSC_K1BASE (PIC32MX_SFR_K1BASE + 0x0000f000) # define PIC32MX_CM_K1BASE (PIC32MX_SFR_K1BASE + 0x0000a000)
# define PIC32MX_CM1_K1BASE (PIC32MX_SFR_K1BASE + 0x0000a000)
/* Programming and Diagnostics Register Base Addresses */ # define PIC32MX_CM2_K1BASE (PIC32MX_SFR_K1BASE + 0x0000a010)
# define PIC32MX_DDP_K1BASE (PIC32MX_SFR_K1BASE + 0x0000f200) /* Oscillator Control Register Base Addresses */
/* FLASH Controller Register Base Addresses */ # define PIC32MX_OSC_K1BASE (PIC32MX_SFR_K1BASE + 0x0000f000)
# define PIC32MX_FLASH_K1BASE (PIC32MX_SFR_K1BASE + 0x0000f400) /* Programming and Diagnostics Register Base Addresses */
/* Reset Control Register Base Address */ # define PIC32MX_DDP_K1BASE (PIC32MX_SFR_K1BASE + 0x0000f200)
# define PIC32MX_RESET_K1BASE (PIC32MX_SFR_K1BASE + 0x0000f600) /* FLASH Controller Register Base Addresses */
/* Interrupt Register Base Address */ # define PIC32MX_FLASH_K1BASE (PIC32MX_SFR_K1BASE + 0x0000f400)
# define PIC32MX_INT_K1BASE (PIC32MX_SFR_K1BASE + 0x00081000) /* Reset Control Register Base Address */
/* Bus Matrix Register Base Address */ # define PIC32MX_RESET_K1BASE (PIC32MX_SFR_K1BASE + 0x0000f600)
# define PIC32MX_BMX_K1BASE (PIC32MX_SFR_K1BASE + 0x00082000) /* Interrupt Register Base Address */
/* DMA Register Base Address */ # define PIC32MX_INT_K1BASE (PIC32MX_SFR_K1BASE + 0x00081000)
# define PIC32MX_DMA_K1BASE (PIC32MX_SFR_K1BASE + 0x00083000) /* Bus Matrix Register Base Address */
# define PIC32MX_DMACH_K1BASE(n) (PIC32MX_SFR_K1BASE + 0x00083060 + 0xc0*(n))
# define PIC32MX_DMACH0_K1BASE (PIC32MX_SFR_K1BASE + 0x00083060) # define PIC32MX_BMX_K1BASE (PIC32MX_SFR_K1BASE + 0x00082000)
# define PIC32MX_DMACH1_K1BASE (PIC32MX_SFR_K1BASE + 0x00083120)
# define PIC32MX_DMACH2_K1BASE (PIC32MX_SFR_K1BASE + 0x000831e0) /* DMA Register Base Address */
# define PIC32MX_DMACH3_K1BASE (PIC32MX_SFR_K1BASE + 0x000832a0)
# define PIC32MX_DMA_K1BASE (PIC32MX_SFR_K1BASE + 0x00083000)
/* Prefetch Cache Register Base Address */ # define PIC32MX_DMACH_K1BASE(n) (PIC32MX_SFR_K1BASE + 0x00083060 + 0xc0*(n))
# define PIC32MX_DMACH0_K1BASE (PIC32MX_SFR_K1BASE + 0x00083060)
# define PIC32MX_CHE_K1BASE (PIC32MX_SFR_K1BASE + 0x00084000) # define PIC32MX_DMACH1_K1BASE (PIC32MX_SFR_K1BASE + 0x00083120)
# define PIC32MX_DMACH2_K1BASE (PIC32MX_SFR_K1BASE + 0x000831e0)
/* USB2 Register Base Addresses */ # define PIC32MX_DMACH3_K1BASE (PIC32MX_SFR_K1BASE + 0x000832a0)
# define PIC32MX_USB_K1BASE (PIC32MX_SFR_K1BASE + 0x00085000) /* Prefetch Cache Register Base Address */
/* Port Register Base Addresses */ # define PIC32MX_CHE_K1BASE (PIC32MX_SFR_K1BASE + 0x00084000)
# define PIC32MX_IOPORTA 0 /* USB2 Register Base Addresses */
# define PIC32MX_IOPORTB 1
# define PIC32MX_IOPORTC 2 # define PIC32MX_USB_K1BASE (PIC32MX_SFR_K1BASE + 0x00085000)
# define PIC32MX_IOPORTD 3
# define PIC32MX_IOPORTE 4 /* Port Register Base Addresses */
# define PIC32MX_IOPORTF 5
# define PIC32MX_IOPORTG 6 # define PIC32MX_IOPORTA 0
# define PIC32MX_IOPORT_K1BASE(n) (PIC32MX_SFR_K1BASE + 0x00086000 + 0x40*(n)) # define PIC32MX_IOPORTB 1
# define PIC32MX_IOPORTC 2
# define PIC32MX_IOPORTA_K1BASE (PIC32MX_SFR_K1BASE + 0x00086000) # define PIC32MX_IOPORTD 3
# define PIC32MX_IOPORTB_K1BASE (PIC32MX_SFR_K1BASE + 0x00086040) # define PIC32MX_IOPORTE 4
# define PIC32MX_IOPORTC_K1BASE (PIC32MX_SFR_K1BASE + 0x00086080) # define PIC32MX_IOPORTF 5
# define PIC32MX_IOPORTD_K1BASE (PIC32MX_SFR_K1BASE + 0x000860c0) # define PIC32MX_IOPORTG 6
# define PIC32MX_IOPORTE_K1BASE (PIC32MX_SFR_K1BASE + 0x00086100) # define PIC32MX_IOPORT_K1BASE(n) (PIC32MX_SFR_K1BASE + 0x00086000 + 0x40*(n))
# define PIC32MX_IOPORTF_K1BASE (PIC32MX_SFR_K1BASE + 0x00086140)
# define PIC32MX_IOPORTG_K1BASE (PIC32MX_SFR_K1BASE + 0x00086180) # define PIC32MX_IOPORTA_K1BASE (PIC32MX_SFR_K1BASE + 0x00086000)
# define PIC32MX_IOPORTB_K1BASE (PIC32MX_SFR_K1BASE + 0x00086040)
# define PIC32MX_IOPORTCN_K1BASE (PIC32MX_SFR_K1BASE + 0x000861c0) # define PIC32MX_IOPORTC_K1BASE (PIC32MX_SFR_K1BASE + 0x00086080)
# define PIC32MX_IOPORTD_K1BASE (PIC32MX_SFR_K1BASE + 0x000860c0)
#else # define PIC32MX_IOPORTE_K1BASE (PIC32MX_SFR_K1BASE + 0x00086100)
# error "Memory map unknown for this PIC32 chip" # define PIC32MX_IOPORTF_K1BASE (PIC32MX_SFR_K1BASE + 0x00086140)
#endif # define PIC32MX_IOPORTG_K1BASE (PIC32MX_SFR_K1BASE + 0x00086180)
/************************************************************************************ # define PIC32MX_IOPORTCN_K1BASE (PIC32MX_SFR_K1BASE + 0x000861c0)
* Public Types
************************************************************************************/ #elif defined(CHIP_PIC32MX5) || defined(CHIP_PIC32MX6) || defined(CHIP_PIC32MX7)
# error "Missing definitions"
#ifndef __ASSEMBLY__ #else
# error "Memory map unknown for this PIC32 chip"
/************************************************************************************ #endif
* Inline Functions
************************************************************************************/ /************************************************************************************
* Public Types
/************************************************************************************ ************************************************************************************/
* Public Function Prototypes
************************************************************************************/ #ifndef __ASSEMBLY__
#ifdef __cplusplus /************************************************************************************
#define EXTERN extern "C" * Inline Functions
extern "C" { ************************************************************************************/
#else
#define EXTERN extern /************************************************************************************
#endif * Public Function Prototypes
************************************************************************************/
#undef EXTERN
#ifdef __cplusplus #ifdef __cplusplus
} #define EXTERN extern "C"
#endif extern "C" {
#else
#endif /* __ASSEMBLY__ */ #define EXTERN extern
#endif /* __ARCH_MIPS_SRC_PIC32MX_PIC32MX_MEMORYMAP_H */ #endif
#undef EXTERN
#ifdef __cplusplus
}
#endif
#endif /* __ASSEMBLY__ */
#endif /* __ARCH_MIPS_SRC_PIC32MX_PIC32MX_MEMORYMAP_H */

0
arch/mips/src/pic32mx/pic32mx-oc.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-osc.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-pmp.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-reset.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-rtcc.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-spi.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-timer.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-timerisr.c Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-uart.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-usbotg.h Executable file → Normal file
View File

0
arch/mips/src/pic32mx/pic32mx-wdt.h Executable file → Normal file
View File