arch/mips: Fix file naming.
This commit is contained in:
parent
ef9735febd
commit
32597a763a
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_allocateheap.c
|
||||
* arch/mips/src/common/mips_allocateheap.c
|
||||
*
|
||||
* Copyright (C) 2010, 2013, 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -46,8 +46,8 @@
|
||||
#include <nuttx/board.h>
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "up_internal.h"
|
||||
#include "mips_arch.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_arch.h
|
||||
* arch/mips/src/common/mips_arch.h
|
||||
*
|
||||
* Copyright (C) 2010, 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_createstack.c
|
||||
* arch/mips/src/common/mips_createstack.c
|
||||
*
|
||||
* Copyright (C) 2011, 2013, 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -49,8 +49,8 @@
|
||||
#include <nuttx/board.h>
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "up_internal.h"
|
||||
#include "mips_arch.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Macros
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_etherstub.c
|
||||
* arch/mips/src/common/mips_etherstub.c
|
||||
*
|
||||
* Copyright (C) 2011-2012, 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -39,7 +39,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_exit.c
|
||||
* arch/mips/src/common/mips_exit.c
|
||||
*
|
||||
* Copyright (C) 2011, 2013-2014, 2017-2018 Gregory Nutt. All rights
|
||||
* reserved.
|
||||
@ -54,7 +54,7 @@
|
||||
#include "task/task.h"
|
||||
#include "sched/sched.h"
|
||||
#include "group/group.h"
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_idle.c
|
||||
* arch/mips/src/common/mips_idle.c
|
||||
*
|
||||
* Copyright (C) 2011-2012, 2016, 2018 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -41,7 +41,7 @@
|
||||
#include <nuttx/irq.h>
|
||||
#include <nuttx/arch.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_initialize.c
|
||||
* arch/mips/src/common/mips_initialize.c
|
||||
*
|
||||
* Copyright (C) 2011-2013, 2015-2017 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -56,8 +56,8 @@
|
||||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "up_internal.h"
|
||||
#include "mips_arch.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/common/up_internal.h
|
||||
* arch/mips/common/mips_internal.h
|
||||
*
|
||||
* Copyright (C) 2011, 2012, 2015, 2018 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -144,8 +144,8 @@ extern void g_intstackbase;
|
||||
*
|
||||
* - The linker script defines, for example, the symbol_sdata.
|
||||
* - The declaration extern uint32_t _sdata; makes C happy. C will believe
|
||||
* that the value _sdata is the address of a uint32_t variable _data (it is
|
||||
* not!).
|
||||
* that the value _sdata is the address of a uint32_t variable _data (it
|
||||
* is not!).
|
||||
* - We can recoved the linker value then by simply taking the address of
|
||||
* of _data. like: uint32_t *pdata = &_sdata;
|
||||
*/
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_interruptcontext.c
|
||||
* arch/mips/src/common/mips_interruptcontext.c
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,7 +43,7 @@
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/irq.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Private Types
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_lowputs.c
|
||||
* arch/mips/src/common/mips_lowputs.c
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -39,7 +39,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_mdelay.c
|
||||
* arch/mips/src/common/mips_mdelay.c
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_modifyreg16.c
|
||||
* arch/mips/src/common/mips_modifyreg16.c
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -45,7 +45,7 @@
|
||||
#include <nuttx/irq.h>
|
||||
#include <nuttx/arch.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "mips_arch.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_modifyreg32.c
|
||||
* arch/mips/src/common/mips_modifyreg32.c
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -45,7 +45,7 @@
|
||||
#include <nuttx/irq.h>
|
||||
#include <nuttx/arch.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "mips_arch.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_modifyreg8.c
|
||||
* arch/mips/src/common/mips_modifyreg8.c
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -45,7 +45,7 @@
|
||||
#include <nuttx/irq.h>
|
||||
#include <nuttx/arch.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "mips_arch.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_puts.c
|
||||
* arch/mips/src/common/mips_puts.c
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -40,7 +40,7 @@
|
||||
#include <nuttx/config.h>
|
||||
#include <nuttx/arch.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_releasestack.c
|
||||
* arch/mips/src/common/mips_releasestack.c
|
||||
*
|
||||
* Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -45,7 +45,7 @@
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Private Types
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_stackframe.c
|
||||
* arch/mips/src/common/mips_stackframe.c
|
||||
*
|
||||
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -46,11 +46,12 @@
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Macros
|
||||
****************************************************************************/
|
||||
|
||||
/* MIPS requires at least a 4-byte stack alignment. For floating point use,
|
||||
* however, the stack must be aligned to 8-byte addresses.
|
||||
*/
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_udelay.c
|
||||
* arch/mips/src/common/mips_udelay.c
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/common/up_usestack.c
|
||||
* arch/mips/src/common/mips_usestack.c
|
||||
*
|
||||
* Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -47,7 +47,7 @@
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <nuttx/arch.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/mips32/up_assert.c
|
||||
* arch/mips/src/mips32/mips_assert.c
|
||||
*
|
||||
* Copyright (C) 2011-2015, 2018 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -52,9 +52,9 @@
|
||||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "mips_arch.h"
|
||||
#include "sched/sched.h"
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/mips32/up_blocktask.c
|
||||
* arch/mips/src/mips32/mips_blocktask.c
|
||||
*
|
||||
* Copyright (C) 2011, 2013-2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -49,7 +49,7 @@
|
||||
|
||||
#include "sched/sched.h"
|
||||
#include "group/group.h"
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/mips32/up_cache.S
|
||||
* arch/mips/src/mips32/mips_cache.S
|
||||
*
|
||||
* Copyright (C) 2019 Gregory Nutt. All rights reserved.
|
||||
* Author: Abdelatif Guettouche <abdelatif.guettouche@gmail.com>
|
||||
@ -43,7 +43,7 @@
|
||||
#include <arch/mips32/registers.h>
|
||||
#include <arch/mips32/cp0.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "mips_arch.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@ -70,7 +70,7 @@
|
||||
* Public Symbols
|
||||
****************************************************************************/
|
||||
|
||||
.file "up_cache.S"
|
||||
.file "mips_cache.S"
|
||||
|
||||
/****************************************************************************
|
||||
* Assembly Language Macros
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/mips32/up_copystate.c
|
||||
* arch/mips/src/mips32/mips_copystate.c
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,7 +42,7 @@
|
||||
#include <stdint.h>
|
||||
#include <arch/irq.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/mips32/up_doirq.c
|
||||
* arch/mips/src/mips32/mips_doirq.c
|
||||
*
|
||||
* Copyright (C) 2011, 2014-2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -47,8 +47,8 @@
|
||||
#include <nuttx/board.h>
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "up_internal.h"
|
||||
#include "mips_arch.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
#include "group/group.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/mips32/up_dumpstate.c
|
||||
* arch/mips/src/mips32/mips_dumpstate.c
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -48,9 +48,9 @@
|
||||
#include <nuttx/arch.h>
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "mips_arch.h"
|
||||
#include "sched/sched.h"
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
#ifdef CONFIG_ARCH_STACKDUMP
|
||||
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/mips32/up_initialstate.c
|
||||
* arch/mips/src/mips32/mips_initialstate.c
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -47,8 +47,8 @@
|
||||
#include <arch/irq.h>
|
||||
#include <arch/mips32/cp0.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
#include "up_arch.h"
|
||||
#include "mips_internal.h"
|
||||
#include "mips_arch.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/mips32/up_irq.c
|
||||
* arch/mips/src/mips32/mips_irq.c
|
||||
*
|
||||
* Copyright (C) 2011, 2018 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/mips32/up_releasepending.c
|
||||
* arch/mips/src/mips32/mips_releasepending.c
|
||||
*
|
||||
* Copyright (C) 2011, 2014-2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -48,7 +48,7 @@
|
||||
|
||||
#include "sched/sched.h"
|
||||
#include "group/group.h"
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/mips32/up_reprioritizertr.c
|
||||
* arch/mips/src/mips32/mips_reprioritizertr.c
|
||||
*
|
||||
* Copyright (C) 2011, 2013-2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -50,7 +50,7 @@
|
||||
|
||||
#include "sched/sched.h"
|
||||
#include "group/group.h"
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
@ -194,7 +194,7 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority)
|
||||
|
||||
/* up_switchcontext forces a context switch to the task at the
|
||||
* head of the ready-to-run list. It does not 'return' in the
|
||||
* normal sense. When it does return, it is because the blocked
|
||||
* normal sense. When it does return, it is because the blocked
|
||||
* task is again ready to run and has execution priority.
|
||||
*/
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/mips32/up_schedulesigaction.c
|
||||
* arch/mips/src/mips32/mips_schedulesigaction.c
|
||||
*
|
||||
* Copyright (C) 2011, 2015-2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -48,8 +48,8 @@
|
||||
#include <arch/mips32/cp0.h>
|
||||
|
||||
#include "sched/sched.h"
|
||||
#include "up_internal.h"
|
||||
#include "up_arch.h"
|
||||
#include "mips_internal.h"
|
||||
#include "mips_arch.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/mips32/up_sigdeliver.c
|
||||
* arch/mips/src/mips32/mips_sigdeliver.c
|
||||
*
|
||||
* Copyright (C) 2011, 2015, 2018-2019 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -50,8 +50,8 @@
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "sched/sched.h"
|
||||
#include "up_internal.h"
|
||||
#include "up_arch.h"
|
||||
#include "mips_internal.h"
|
||||
#include "mips_arch.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
@ -106,7 +106,8 @@ void up_sigdeliver(void)
|
||||
* errno that is needed by the user logic (it is probably EINTR).
|
||||
*/
|
||||
|
||||
sinfo("Resuming EPC: %08x STATUS: %08x\n", regs[REG_EPC], regs[REG_STATUS]);
|
||||
sinfo("Resuming EPC: %08x STATUS: %08x\n",
|
||||
regs[REG_EPC], regs[REG_STATUS]);
|
||||
|
||||
up_irq_save();
|
||||
rtcb->pterrno = saved_errno;
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/mips32/up_swint0.c
|
||||
* arch/mips/src/mips32/mips_swint0.c
|
||||
*
|
||||
* Copyright (C) 2011-2012, 2015, 2019 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -51,7 +51,7 @@
|
||||
#include <arch/mips32/cp0.h>
|
||||
|
||||
#include "signal/signal.h"
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
@ -156,7 +156,7 @@ int up_swint0(int irq, FAR void *context, FAR void *arg)
|
||||
{
|
||||
/* R4=SYS_restore_context: This a restore context command:
|
||||
*
|
||||
* void up_fullcontextrestore(uint32_t *restoreregs) noreturn_function;
|
||||
* void up_fullcontextrestore(uint32_t *restoreregs) noreturn_function;
|
||||
*
|
||||
* At this point, the following values are saved in context:
|
||||
*
|
||||
@ -285,7 +285,9 @@ int up_swint0(int irq, FAR void *context, FAR void *arg)
|
||||
break;
|
||||
}
|
||||
|
||||
/* Report what happened. That might difficult in the case of a context switch */
|
||||
/* Report what happened. That might difficult in the case of a context
|
||||
* switch
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_SYSCALL_INFO
|
||||
if (regs != CURRENT_REGS)
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/mips32/up_syscall0.S
|
||||
* arch/mips/src/mips32/mips_syscall0.S
|
||||
*
|
||||
* Copyright (C) 2011, 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -46,7 +46,7 @@
|
||||
* Public Symbols
|
||||
****************************************************************************/
|
||||
|
||||
.file "up_syscall0.S"
|
||||
.file "mips_syscall0.S"
|
||||
.global sys_call0
|
||||
.global sys_call1
|
||||
.global sys_call2
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/mips32/up_unblocktask.c
|
||||
* arch/mips/src/mips32/mips_unblocktask.c
|
||||
*
|
||||
* Copyright (C) 2011, 2013-2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -49,7 +49,7 @@
|
||||
#include "sched/sched.h"
|
||||
#include "group/group.h"
|
||||
#include "clock/clock.h"
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/mips32/up_vfork.c
|
||||
* arch/mips/src/mips32/mips_vfork.c
|
||||
*
|
||||
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -49,7 +49,7 @@
|
||||
#include <nuttx/arch.h>
|
||||
#include <arch/irq.h>
|
||||
|
||||
#include "up_vfork.h"
|
||||
#include "mips_vfork.h"
|
||||
#include "sched/sched.h"
|
||||
|
||||
/****************************************************************************
|
||||
@ -98,7 +98,7 @@
|
||||
* 5) up_vfork() then calls nxtask_vforkstart()
|
||||
* 6) nxtask_vforkstart() then executes the child thread.
|
||||
*
|
||||
* nxtask_vforkabort() may be called if an error occurs between steps 3 and 6.
|
||||
* nxtask_vforkabort() may be called if an error occurs between steps 3 and 6
|
||||
*
|
||||
* Input Parameters:
|
||||
* context - Caller context information saved by vfork()
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/mips/up_vfork.h
|
||||
* arch/mips/src/mips/mips_vfork.h
|
||||
*
|
||||
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -46,6 +46,7 @@
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* Register r30 may be a frame pointer in some ABIs. Or may just be saved
|
||||
* register s8. It makes a difference for vfork handling.
|
||||
*/
|
||||
@ -60,7 +61,7 @@
|
||||
* preserved across function calls.
|
||||
* r8-r15 t0-t7 Temporary registers used for expression evaluation; values
|
||||
* are not preserved across function calls.
|
||||
* r16-r23 s0-s7 Saved registers; values are preserved across function calls.
|
||||
* r16-r23 s0-s7 Saved registers; values are preserved across function calls
|
||||
* r24-r25 t8-t9 Temporary registers used for expression evaluations; values
|
||||
* are not preserved across function calls. When calling
|
||||
* position independent functions r25 must contain the address
|
||||
@ -119,8 +120,8 @@ struct vfork_s
|
||||
#else
|
||||
uint32_t s8; /* Saved register s8 */
|
||||
#endif
|
||||
uint32_t sp; /* Stack pointer*/
|
||||
uint32_t ra; /* Return address*/
|
||||
uint32_t sp; /* Stack pointer */
|
||||
uint32_t ra; /* Return address */
|
||||
#ifdef MIPS32_SAVE_GP
|
||||
uint32_t gp; /* Global pointer */
|
||||
#endif
|
@ -39,7 +39,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "up_vfork.h"
|
||||
#include "mips_vfork.h"
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
|
@ -36,51 +36,51 @@
|
||||
|
||||
# The start-up, "head", file
|
||||
|
||||
HEAD_ASRC = pic32mx-head.S
|
||||
HEAD_ASRC = pic32mx_head.S
|
||||
|
||||
# Common MIPS files
|
||||
|
||||
CMN_ASRCS = up_syscall0.S vfork.S
|
||||
CMN_CSRCS = up_allocateheap.c up_assert.c up_blocktask.c up_copystate.c
|
||||
CMN_CSRCS += up_createstack.c up_doirq.c up_exit.c up_initialize.c
|
||||
CMN_CSRCS += up_initialstate.c up_interruptcontext.c up_irq.c up_lowputs.c
|
||||
CMN_CSRCS += up_mdelay.c up_modifyreg8.c up_modifyreg16.c up_modifyreg32.c
|
||||
CMN_CSRCS += up_puts.c up_releasepending.c up_releasestack.c
|
||||
CMN_CSRCS += up_reprioritizertr.c up_schedulesigaction.c up_sigdeliver.c
|
||||
CMN_CSRCS += up_stackframe.c up_swint0.c up_udelay.c up_unblocktask.c
|
||||
CMN_CSRCS += up_usestack.c up_vfork.c
|
||||
CMN_ASRCS = mips_syscall0.S vfork.S
|
||||
CMN_CSRCS = mips_allocateheap.c mips_assert.c mips_blocktask.c mips_copystate.c
|
||||
CMN_CSRCS += mips_createstack.c mips_doirq.c mips_exit.c mips_initialize.c
|
||||
CMN_CSRCS += mips_initialstate.c mips_interruptcontext.c mips_irq.c mips_lowputs.c
|
||||
CMN_CSRCS += mips_mdelay.c mips_modifyreg8.c mips_modifyreg16.c mips_modifyreg32.c
|
||||
CMN_CSRCS += mips_puts.c mips_releasepending.c mips_releasestack.c
|
||||
CMN_CSRCS += mips_reprioritizertr.c mips_schedulesigaction.c mips_sigdeliver.c
|
||||
CMN_CSRCS += mips_stackframe.c mips_swint0.c mips_udelay.c mips_unblocktask.c
|
||||
CMN_CSRCS += mips_usestack.c mips_vfork.c
|
||||
|
||||
# Configuration dependent common files
|
||||
|
||||
ifneq ($(CONFIG_ARCH_IDLE_CUSTOM),y)
|
||||
CMN_CSRCS += up_idle.c
|
||||
CMN_CSRCS += mips_idle.c
|
||||
endif
|
||||
|
||||
# Use of common/up_etherstub.c is deprecated. The preferred mechanism is to
|
||||
# Use of common/mips_etherstub.c is deprecated. The preferred mechanism is to
|
||||
# use CONFIG_NETDEV_LATEINIT=y to suppress the call to up_netinitialize() in
|
||||
# up_initialize(). Then this stub would not be needed.
|
||||
|
||||
ifneq ($(CONFIG_PIC32MX_ETHERNET),y)
|
||||
ifeq ($(CONFIG_NET),y)
|
||||
CMN_CSRCS += up_etherstub.c
|
||||
CMN_CSRCS += mips_etherstub.c
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_ARCH_STACKDUMP),y)
|
||||
CMN_CSRCS += up_dumpstate.c
|
||||
CMN_CSRCS += mips_dumpstate.c
|
||||
endif
|
||||
|
||||
# Required PIC32MX files
|
||||
|
||||
CHIP_ASRCS =
|
||||
CHIP_CSRCS = pic32mx-irq.c pic32mx-decodeirq.c pic32mx-exception.c
|
||||
CHIP_CSRCS += pic32mx-gpio.c pic32mx-lowconsole.c pic32mx-lowinit.c
|
||||
CHIP_CSRCS += pic32mx-serial.c pic32mx-spi.c
|
||||
CHIP_CSRCS = pic32mx_irq.c pic32mx_decodeirq.c pic32mx_exception.c
|
||||
CHIP_CSRCS += pic32mx_gpio.c pic32mx_lowconsole.c pic32mx_lowinit.c
|
||||
CHIP_CSRCS += pic32mx_serial.c pic32mx_spi.c
|
||||
|
||||
# Configuration-dependent PIC32MX files
|
||||
|
||||
ifneq ($(CONFIG_SCHED_TICKLESS),y)
|
||||
CHIP_CSRCS += pic32mx-timerisr.c
|
||||
CHIP_CSRCS += pic32mx_timerisr.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_PIC32MX_GPIOIRQ),y)
|
||||
@ -88,9 +88,9 @@ CHIP_CSRCS += pic32mx_gpioirq.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_PIC32MX_USBDEV),y)
|
||||
CHIP_CSRCS += pic32mx-usbdev.c
|
||||
CHIP_CSRCS += pic32mx_usbdev.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_PIC32MX_ETHERNET),y)
|
||||
CHIP_CSRCS += pic32mx-ethernet.c
|
||||
CHIP_CSRCS += pic32mx_ethernet.c
|
||||
endif
|
||||
|
@ -49,13 +49,14 @@
|
||||
|
||||
#include <nuttx/spi/spi.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
#include "mips_internal.h"
|
||||
#include "chip.h"
|
||||
#include "pic32mx-config.h"
|
||||
#include "pic32mx_config.h"
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
|
||||
/* GPIO settings used in the configport, readport, writeport, etc.
|
||||
*
|
||||
* General encoding:
|
||||
@ -128,7 +129,9 @@
|
||||
typedef FAR void *DMA_HANDLE;
|
||||
typedef void (*dma_callback_t)(DMA_HANDLE handle, void *arg, int result);
|
||||
|
||||
/* The following is used for sampling DMA registers when CONFIG DEBUG_DMA is selected */
|
||||
/* The following is used for sampling DMA registers when CONFIG DEBUG_DMA
|
||||
* is selected.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_DMA
|
||||
struct pic32mx_dmaglobalregs_s
|
||||
@ -204,25 +207,25 @@ void pic32mx_consoleinit(void);
|
||||
# define pic32mx_consoleinit()
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
/************************************************************************************
|
||||
* Name: pic32mx_uartreset
|
||||
*
|
||||
* Description:
|
||||
* Reset a UART.
|
||||
*
|
||||
****************************************************************************/
|
||||
************************************************************************************/
|
||||
|
||||
#ifdef HAVE_UART_DEVICE
|
||||
void pic32mx_uartreset(uintptr_t uart_base);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
/************************************************************************************
|
||||
* Name: pic32mx_uartconfigure
|
||||
*
|
||||
* Description:
|
||||
* Configure a UART as a RS-232 UART.
|
||||
*
|
||||
****************************************************************************/
|
||||
************************************************************************************/
|
||||
|
||||
#ifdef HAVE_UART_DEVICE
|
||||
void pic32mx_uartconfigure(uintptr_t uart_base, uint32_t baudrate,
|
||||
@ -334,7 +337,7 @@ void pic32mx_gpioirqinitialize(void);
|
||||
* Zero (OK) is returned on success. A negated error value is returned on
|
||||
* any failure to indicate the nature of the failure.
|
||||
*
|
||||
****************************************************************************/
|
||||
************************************************************************************/
|
||||
|
||||
#ifdef CONFIG_PIC32MX_GPIOIRQ
|
||||
int pic32mx_gpioattach(uint32_t pinset, unsigned int cn, xcpt_t handler,
|
||||
@ -385,7 +388,7 @@ void pic32mx_dumpgpio(uint32_t pinset, const char *msg);
|
||||
# define pic32mx_dumpgpio(p,m)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
/************************************************************************************
|
||||
* Name: pic32mx_spibus_initialize
|
||||
*
|
||||
* Description:
|
||||
@ -397,7 +400,7 @@ void pic32mx_dumpgpio(uint32_t pinset, const char *msg);
|
||||
* Returned Value:
|
||||
* Valid SPI device structure reference on success; a NULL on failure
|
||||
*
|
||||
****************************************************************************/
|
||||
************************************************************************************/
|
||||
|
||||
struct spi_dev_s; /* Forward reference */
|
||||
FAR struct spi_dev_s *pic32mx_spibus_initialize(int port);
|
||||
@ -409,8 +412,8 @@ FAR struct spi_dev_s *pic32mx_spibus_initialize(int port);
|
||||
* These external functions must be provided by board-specific logic. They are
|
||||
* implementations of the select, status, and cmddata methods of the SPI interface
|
||||
* defined by struct spi_ops_s (see include/nuttx/spi/spi.h). All other methods
|
||||
* including pic32mx_spibus_initialize()) are provided by common PIC32MX logic. To use
|
||||
* this common SPI logic on your board:
|
||||
* including pic32mx_spibus_initialize()) are provided by common PIC32MX logic.
|
||||
* To use this common SPI logic on your board:
|
||||
*
|
||||
* 1. Provide logic in pic32mx_boardinitialize() to configure SPI/SSP chip select
|
||||
* pins.
|
||||
@ -423,8 +426,8 @@ FAR struct spi_dev_s *pic32mx_spibus_initialize(int port);
|
||||
* your board is configured.
|
||||
* 3. Add a call to pic32mx_spibus_initialize() in your low level application
|
||||
* initialization logic
|
||||
* 4. The handle returned by pic32mx_spibus_initialize() may then be used to bind the
|
||||
* SPI driver to higher level logic (e.g., calling
|
||||
* 4. The handle returned by pic32mx_spibus_initialize() may then be used to bind
|
||||
* the SPI driver to higher level logic (e.g., calling
|
||||
* mmcsd_spislotinitialize(), for example, will bind the SPI driver to
|
||||
* the SPI MMC/SD driver).
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-adc.h
|
||||
* arch/mips/src/pic32mx/pic32mx_adc.h
|
||||
*
|
||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,11 +42,12 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
|
||||
/* Register Offsets *****************************************************************/
|
||||
|
||||
#define PIC32MX_ADC_CON1_OFFSET 0x0000 /* ADC control register 1 */
|
@ -1,5 +1,5 @@
|
||||
/********************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-bmx.h
|
||||
* arch/mips/src/pic32mx/pic32mx_bmx.h
|
||||
*
|
||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,11 +42,12 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/********************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
********************************************************************************************/
|
||||
|
||||
/* Register Offsets *************************************************************************/
|
||||
|
||||
#define PIC32MX_BMX_CON_OFFSET 0x0000 /* Configuration Register */
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-can.h
|
||||
* arch/mips/src/pic32mx/pic32mx_can.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,11 +42,12 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* Register Offsets *********************************************************/
|
||||
|
||||
#warning "To be provided"
|
@ -1,5 +1,5 @@
|
||||
/********************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-che.h
|
||||
* arch/mips/src/pic32mx/pic32mx_che.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/********************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@ -105,7 +105,6 @@
|
||||
|
||||
/* Pre-fetch cache control register */
|
||||
|
||||
|
||||
#define CHE_CON_PFMWS_SHIFT (0) /* Bits 0-2: PFM access time (SYSCLK wait states) */
|
||||
#define CHE_CON_PFMWS_MASK (7 << CHE_CON_PFMWS_SHIFT)
|
||||
# define CHE_CON_PFMWS(n) ((n) << CHE_CON_PFMWS_SHIFT) /* n wait states, n=0-7 */
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-cm.h
|
||||
* arch/mips/src/pic32mx/pic32mx_cm.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,13 +43,14 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "chip.h"
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
#if CHIP_NCM > 0
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
|
||||
/* Register Offsets *****************************************************************/
|
||||
|
||||
#define PIC32MX_CM_CON_OFFSET 0x0000 /* Comparator control register */
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-config.h
|
||||
* arch/mips/src/pic32mx/pic32mx_config.h
|
||||
*
|
||||
* Copyright (C) 2011-2013 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -44,14 +44,15 @@
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "chip.h"
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx-uart.h"
|
||||
#include "pic32mx-int.h"
|
||||
#include "pic32mx-devcfg.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
#include "pic32mx_uart.h"
|
||||
#include "pic32mx_int.h"
|
||||
#include "pic32mx_devcfg.h"
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
|
||||
/* Interrupt Priorities *************************************************************/
|
||||
|
||||
#ifndef CONFIG_PIC32MX_CTPRIO /* Core Timer Interrupt */
|
||||
@ -485,6 +486,7 @@
|
||||
#endif
|
||||
|
||||
/* SYS calls ************************************************************************/
|
||||
|
||||
/* SYS call 1 and 2 are defined for internal use by the PIC32MX port (see
|
||||
* arch/mips/include/mips32/syscall.h). In addition, SYS call 3 is the return from
|
||||
* a SYS call in kernel mode. The first four syscall values must, therefore, be
|
||||
@ -500,6 +502,7 @@
|
||||
#endif
|
||||
|
||||
/* UARTs ****************************************************************************/
|
||||
|
||||
/* Don't enable UARTs not supported by the chip. */
|
||||
|
||||
#if CHIP_NUARTS < 1
|
||||
@ -597,6 +600,7 @@
|
||||
#endif
|
||||
|
||||
/* Device Configuration *************************************************************/
|
||||
|
||||
/* DEVCFG3 */
|
||||
|
||||
#ifndef CONFIG_PIC32MX_USERID /* User ID */
|
||||
@ -916,7 +920,7 @@
|
||||
************************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
* Public Functions
|
||||
* Public Functions Prototypes
|
||||
************************************************************************************/
|
||||
|
||||
#endif /* __ARCH_MIPS_SRC_PIC32MX_PIC32MX_PIC32_H */
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-cvr.h
|
||||
* arch/mips/src/pic32mx/pic32mx_cvr.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,11 +43,12 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "chip.h"
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
|
||||
/* Register Offsets *****************************************************************/
|
||||
|
||||
#define PIC32MX_CVR_CON_OFFSET 0x0000 /* Comparator voltage reference control register */
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-ddp.h
|
||||
* arch/mips/src/pic32mx/pic32mx_ddp.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-decodeirq.c
|
||||
* arch/mips/src/pic32mx/pic32mx_decodeirq.c
|
||||
*
|
||||
* Copyright (C) 2011, 2014-2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -49,9 +49,9 @@
|
||||
#include <nuttx/board.h>
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "mips_arch.h"
|
||||
|
||||
#include "pic32mx-int.h"
|
||||
#include "pic32mx_int.h"
|
||||
#include "pic32mx.h"
|
||||
|
||||
#include "group/group.h"
|
||||
@ -111,7 +111,9 @@ uint32_t *pic32mx_decodeirq(uint32_t *regs)
|
||||
#endif
|
||||
CURRENT_REGS = regs;
|
||||
|
||||
/* Loop while there are pending interrupts with priority greater than zero */
|
||||
/* Loop while there are pending interrupts with priority greater than
|
||||
* zero
|
||||
*/
|
||||
|
||||
for (; ; )
|
||||
{
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-devcfg.h
|
||||
* arch/mips/src/pic32mx/pic32mx_devcfg.h
|
||||
*
|
||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/********************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-dma.h
|
||||
* arch/mips/src/pic32mx/pic32mx_dma.h
|
||||
*
|
||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "chip.h"
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
#if CHIP_NDMACH > 0
|
||||
|
@ -69,9 +69,9 @@
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "chip.h"
|
||||
#include "up_arch.h"
|
||||
#include "pic32mx-config.h"
|
||||
#include "pic32mx-ethernet.h"
|
||||
#include "mips_arch.h"
|
||||
#include "pic32mx_config.h"
|
||||
#include "pic32mx_ethernet.h"
|
||||
#include "pic32mx.h"
|
||||
|
||||
/* Does this chip have and Ethernet controller? */
|
||||
@ -152,9 +152,12 @@
|
||||
|
||||
#define PIC32MX_ALIGNED_BUFSIZE ((CONFIG_NET_ETH_PKTSIZE + 3) & ~3)
|
||||
|
||||
/* The number of buffers will, then, be one for each descriptor plus one extra */
|
||||
/* The number of buffers will, then, be one for each descriptor plus one
|
||||
* extra
|
||||
*/
|
||||
|
||||
#define PIC32MX_NBUFFERS (CONFIG_PIC32MX_ETH_NRXDESC + CONFIG_PIC32MX_ETH_NTXDESC + 1)
|
||||
#define PIC32MX_NBUFFERS (CONFIG_PIC32MX_ETH_NRXDESC + \
|
||||
CONFIG_PIC32MX_ETH_NTXDESC + 1)
|
||||
|
||||
/* Debug Configuration *****************************************************/
|
||||
|
||||
@ -174,7 +177,9 @@
|
||||
|
||||
/* Timing *******************************************************************/
|
||||
|
||||
/* TX poll deley = 1 seconds. CLK_TCK is the number of clock ticks per second */
|
||||
/* TX poll deley = 1 seconds. CLK_TCK is the number of clock ticks per
|
||||
* second
|
||||
*/
|
||||
|
||||
#define PIC32MX_WDDELAY (1*CLK_TCK)
|
||||
|
||||
@ -222,7 +227,9 @@
|
||||
|
||||
/* Misc. Helpers ***********************************************************/
|
||||
|
||||
/* This is a helper pointer for accessing the contents of the Ethernet header */
|
||||
/* This is a helper pointer for accessing the contents of the Ethernet
|
||||
* header
|
||||
*/
|
||||
|
||||
#define BUF ((struct eth_hdr_s *)priv->pd_dev.d_buf)
|
||||
|
||||
@ -1090,7 +1097,9 @@ static int pic32mx_transmit(struct pic32mx_driver_s *priv)
|
||||
|
||||
pic32mx_txnext(priv);
|
||||
|
||||
/* Enable the transmission of the message by setting the TXRTS bit (ETHCON1:9). */
|
||||
/* Enable the transmission of the message by setting the TXRTS bit
|
||||
* (ETHCON1:9).
|
||||
*/
|
||||
|
||||
pic32mx_putreg(ETH_CON1_TXRTS | ETH_CON1_ON, PIC32MX_ETH_CON1SET);
|
||||
|
||||
@ -1189,7 +1198,9 @@ static int pic32mx_txpoll(struct net_driver_s *dev)
|
||||
priv->pd_dev.d_buf = pic32mx_allocbuffer(priv);
|
||||
if (priv->pd_dev.d_buf == NULL)
|
||||
{
|
||||
/* We have no more buffers available for the nex Tx.. stop the poll */
|
||||
/* We have no more buffers available for the nex Tx.. stop the
|
||||
* poll
|
||||
*/
|
||||
|
||||
return -ENOMEM;
|
||||
}
|
||||
@ -1423,7 +1434,9 @@ static void pic32mx_rxdone(struct pic32mx_driver_s *priv)
|
||||
pic32mx_rxreturn(rxdesc);
|
||||
}
|
||||
|
||||
/* We don't have any logic here for reassembling packets from fragments. */
|
||||
/* We don't have any logic here for reassembling packets from
|
||||
* fragments.
|
||||
*/
|
||||
|
||||
else if ((rxdesc->status & (RXDESC_STATUS_EOP | RXDESC_STATUS_SOP)) !=
|
||||
(RXDESC_STATUS_EOP | RXDESC_STATUS_SOP))
|
||||
@ -1462,7 +1475,9 @@ static void pic32mx_rxdone(struct pic32mx_driver_s *priv)
|
||||
pkt_input(&priv->pd_dev);
|
||||
#endif
|
||||
|
||||
/* We only accept IP packets of the configured type and ARP packets */
|
||||
/* We only accept IP packets of the configured type and ARP
|
||||
* packets
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_NET_IPv4
|
||||
if (BUF->type == HTONS(ETHTYPE_IP))
|
||||
@ -1665,7 +1680,9 @@ static void pic32mx_txdone(struct pic32mx_driver_s *priv)
|
||||
|
||||
if (priv->pd_txpending)
|
||||
{
|
||||
/* Clear the pending condition, send the packet, and restore Rx interrupts */
|
||||
/* Clear the pending condition, send the packet, and restore Rx
|
||||
* interrupts
|
||||
*/
|
||||
|
||||
priv->pd_txpending = false;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/********************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-ethernet.h
|
||||
* arch/mips/src/pic32mx/pic32mx_ethernet.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/********************************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-exception.c
|
||||
* arch/mips/src/pic32mx/pic32mx_exception.c
|
||||
*
|
||||
* Copyright (C) 2011-2012, 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -50,9 +50,9 @@
|
||||
#include <arch/board/board.h>
|
||||
#include <arch/pic32mx/cp0.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "mips_arch.h"
|
||||
|
||||
#include "pic32mx-int.h"
|
||||
#include "pic32mx_int.h"
|
||||
#include "pic32mx.h"
|
||||
|
||||
/****************************************************************************
|
||||
@ -175,7 +175,9 @@ uint32_t *pic32mx_exception(uint32_t *regs)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Crash with currents_regs set so that we can dump the register contents. */
|
||||
/* Crash with currents_regs set so that we can dump the register
|
||||
* contents.
|
||||
*/
|
||||
|
||||
CURRENT_REGS = regs;
|
||||
PANIC();
|
@ -1,5 +1,5 @@
|
||||
/********************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-flash.h
|
||||
* arch/mips/src/pic32mx/pic32mx_flash.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/********************************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-gpio.c
|
||||
* arch/mips/src/pic32mx/pic32mx_gpio.c
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -47,9 +47,9 @@
|
||||
#include <nuttx/arch.h>
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "mips_arch.h"
|
||||
#include "chip.h"
|
||||
#include "pic32mx-ioport.h"
|
||||
#include "pic32mx_ioport.h"
|
||||
#include "pic32mx.h"
|
||||
|
||||
/****************************************************************************
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-gpio.c
|
||||
* arch/mips/src/pic32mx/pic32mx_gpio.c
|
||||
*
|
||||
* Copyright (C) 2011, 2017 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -46,8 +46,8 @@
|
||||
#include <nuttx/arch.h>
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "pic32mx-gpio.h"
|
||||
#include "mips_arch.h"
|
||||
#include "pic32mx_gpio.h"
|
||||
#include "pic32mx.h"
|
||||
|
||||
#ifdef CONFIG_PIC32MX_GPIOIRQ
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-head.S
|
||||
* arch/mips/src/pic32mx/pic32mx_head.S
|
||||
*
|
||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,8 +42,8 @@
|
||||
#include <arch/mips32/registers.h>
|
||||
#include <arch/pic32mx/cp0.h>
|
||||
|
||||
#include "pic32mx-config.h"
|
||||
#include "pic32mx-bmx.h"
|
||||
#include "pic32mx_config.h"
|
||||
#include "pic32mx_bmx.h"
|
||||
#include "excptmacros.h"
|
||||
|
||||
/****************************************************************************
|
||||
@ -108,7 +108,7 @@
|
||||
* Public Symbols
|
||||
****************************************************************************/
|
||||
|
||||
.file "pic32mx-head.S"
|
||||
.file "pic32mx_head.S"
|
||||
|
||||
/* Exported symbols */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-i2c.h
|
||||
* arch/mips/src/pic32mx/pic32mx_i2c.h
|
||||
*
|
||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "chip.h"
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-ic.h
|
||||
* arch/mips/src/pic32mx/pic32mx_ic.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "chip.h"
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
#if CHIP_NIC > 0
|
||||
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-int.h
|
||||
* arch/mips/src/pic32mx/pic32mx_int.h
|
||||
*
|
||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "chip.h"
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/********************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-ioport.h
|
||||
* arch/mips/src/pic32mx/pic32mx_ioport.h
|
||||
*
|
||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "chip.h"
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/********************************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-irq.c
|
||||
* arch/mips/src/pic32mx/pic32mx_irq.c
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -49,10 +49,10 @@
|
||||
#include <arch/irq.h>
|
||||
#include <arch/pic32mx/cp0.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "up_internal.h"
|
||||
#include "mips_arch.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
#include "pic32mx-int.h"
|
||||
#include "pic32mx_int.h"
|
||||
#include "pic32mx.h"
|
||||
|
||||
/****************************************************************************
|
||||
@ -168,7 +168,9 @@ void up_irqinitialize(void)
|
||||
|
||||
/* And finally, enable interrupts */
|
||||
|
||||
/* Interrupts are enabled by setting the IE bit in the CP0 status register */
|
||||
/* Interrupts are enabled by setting the IE bit in the CP0 status
|
||||
* register
|
||||
*/
|
||||
|
||||
regval = 0;
|
||||
asm volatile("ei %0" : "=r"(regval));
|
||||
@ -197,7 +199,9 @@ void up_disable_irq(int irq)
|
||||
uint32_t regaddr;
|
||||
int bitno;
|
||||
|
||||
/* Disable the interrupt by clearing the associated bit in the IEC register */
|
||||
/* Disable the interrupt by clearing the associated bit in the IEC
|
||||
* register
|
||||
*/
|
||||
|
||||
DEBUGASSERT(irq >= PIC32MX_IRQSRC_FIRST && irq <= PIC32MX_IRQSRC_LAST);
|
||||
if (irq >= PIC32MX_IRQSRC_FIRST)
|
||||
@ -465,15 +469,15 @@ int up_prioritize_irq(int irq, int priority)
|
||||
|
||||
/* Don't allow this function to be used for disabling interrupts. There is
|
||||
* no good reason for this restriction other than I want to make sure that
|
||||
* the 5-bit priority values passed to this function are *not* confused with
|
||||
* the 3-bit hardware priority values.
|
||||
* the 5-bit priority values passed to this function are *not* confused
|
||||
* with the 3-bit hardware priority values.
|
||||
*/
|
||||
|
||||
DEBUGASSERT((unsigned)irq < NR_IRQS && (unsigned)(priority >> 2) > 0);
|
||||
if (irq < NR_IRQS)
|
||||
{
|
||||
/* Get the index to the IPC register and the shift to the 5-bit priority
|
||||
* field for this IRQ.
|
||||
/* Get the index to the IPC register and the shift to the 5-bit
|
||||
* priority field for this IRQ.
|
||||
*/
|
||||
|
||||
regndx = irq >> 2; /* Range: 0-11 */
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-lowconsole.c
|
||||
* arch/mips/src/pic32mx/pic32mx_lowconsole.c
|
||||
*
|
||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -45,10 +45,10 @@
|
||||
#include <arch/irq.h>
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "up_internal.h"
|
||||
#include "mips_arch.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
#include "pic32mx-config.h"
|
||||
#include "pic32mx_config.h"
|
||||
#include "pic32mx.h"
|
||||
|
||||
/****************************************************************************
|
||||
@ -260,7 +260,7 @@ void pic32mx_uartconfigure(uintptr_t uart_base, uint32_t baudrate,
|
||||
* The FIFO not full might generate better through-put but with a higher
|
||||
* interrupt rate. FIFO empty should lower the interrupt rate but result
|
||||
* in a burstier output. If you change this, please read the comment for
|
||||
* acknowledging the interrupt in pic32mx-serial.c
|
||||
* acknowledging the interrupt in pic32mx_serial.c
|
||||
*/
|
||||
|
||||
#ifdef UART_STA_URXISEL_RXB6
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32/pic32mx-lowinit.c
|
||||
* arch/mips/src/pic32/pic32mx_lowinit.c
|
||||
*
|
||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,17 +43,18 @@
|
||||
|
||||
#include <arch/pic32mx/cp0.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
#include "up_arch.h"
|
||||
#include "mips_internal.h"
|
||||
#include "mips_arch.h"
|
||||
|
||||
#include "chip.h"
|
||||
#include "pic32mx.h"
|
||||
#include "pic32mx-bmx.h"
|
||||
#include "pic32mx-che.h"
|
||||
#include "pic32mx_bmx.h"
|
||||
#include "pic32mx_che.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* Maximum Frequencies ******************************************************/
|
||||
|
||||
#define MAX_FLASH_HZ 30000000 /* Maximum FLASH speed (Hz) */
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-memorymap.h
|
||||
* arch/mips/src/pic32mx/pic32mx_memorymap.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-oc.h
|
||||
* arch/mips/src/pic32mx/pic32mx_oc.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "chip.h"
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
#if CHIP_NOC > 0
|
||||
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-osc.h
|
||||
* arch/mips/src/pic32mx/pic32mx_osc.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-pmp.h
|
||||
* arch/mips/src/pic32mx/pic32mx_pmp.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-pps.h
|
||||
* arch/mips/src/pic32mx/pic32mx_pps.h
|
||||
*
|
||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
#if defined(CHIP_PIC32MX1) || defined(CHIP_PIC32MX2)
|
||||
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-reset.h
|
||||
* arch/mips/src/pic32mx/pic32mx_reset.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/********************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-rtcc.h
|
||||
* arch/mips/src/pic32mx/pic32mx_rtcc.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/********************************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-serial.c
|
||||
* arch/mips/src/pic32mx/pic32mx_serial.c
|
||||
*
|
||||
* Copyright (C) 2011-2012, 2017 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -57,12 +57,12 @@
|
||||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "up_internal.h"
|
||||
#include "mips_arch.h"
|
||||
#include "mips_internal.h"
|
||||
|
||||
#include "pic32mx-config.h"
|
||||
#include "pic32mx_config.h"
|
||||
#include "chip.h"
|
||||
#include "pic32mx-uart.h"
|
||||
#include "pic32mx_uart.h"
|
||||
#include "pic32mx.h"
|
||||
|
||||
/****************************************************************************
|
||||
@ -142,7 +142,7 @@
|
||||
|
||||
struct up_dev_s
|
||||
{
|
||||
uintptr_t uartbase; /* Base address of UART registers */
|
||||
uintptr_t uartbase; /* Base address of UART registers */
|
||||
uint32_t baud; /* Configured baud */
|
||||
uint8_t irq; /* IRQ associated with this UART (for attachment) */
|
||||
uint8_t irqe; /* Error IRQ associated with this UART (for enable) */
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-spi.c
|
||||
* arch/mips/src/pic32mx/pic32mx_spi.c
|
||||
*
|
||||
* Copyright (C) 2012, 2015-2017 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -51,12 +51,12 @@
|
||||
#include <nuttx/semaphore.h>
|
||||
#include <nuttx/spi/spi.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
#include "up_arch.h"
|
||||
#include "mips_internal.h"
|
||||
#include "mips_arch.h"
|
||||
|
||||
#include "chip.h"
|
||||
#include "pic32mx.h"
|
||||
#include "pic32mx-spi.h"
|
||||
#include "pic32mx_spi.h"
|
||||
|
||||
#if defined(CONFIG_PIC32MX_SPI1) || defined(CONFIG_PIC32MX_SPI2) || \
|
||||
defined(CONFIG_PIC32MX_SPI3) || defined(CONFIG_PIC32MX_SPI4)
|
||||
@ -68,7 +68,7 @@
|
||||
/* Configuration */
|
||||
|
||||
#ifdef CONFIG_SPI_EXCHANGE
|
||||
/* See arch/mips/src/pic32mz/pic32mz-spi.c for an implementation */
|
||||
/* See arch/mips/src/pic32mz/pic32mz_spi.c for an implementation */
|
||||
|
||||
# error CONFIG_SPI_EXCHANGE not supported by this driver
|
||||
#endif
|
||||
@ -478,7 +478,9 @@ static uint32_t spi_setfrequency(FAR struct spi_dev_s *dev,
|
||||
spiinfo("Old frequency: %d actual: %d New frequency: %d\n",
|
||||
priv->frequency, priv->actual, frequency);
|
||||
|
||||
/* Check if the requested frequency is the same as the frequency selection */
|
||||
/* Check if the requested frequency is the same as the frequency
|
||||
* selection
|
||||
*/
|
||||
|
||||
if (priv->frequency == frequency)
|
||||
{
|
||||
@ -674,7 +676,9 @@ static void spi_setbits(FAR struct spi_dev_s *dev, int nbits)
|
||||
regval = spi_getreg(priv, PIC32MX_SPI_CON_OFFSET);
|
||||
spiinfo("CON: %08x\n", regval);
|
||||
|
||||
/* Save the selection so the subsequence re-configurations will be faster */
|
||||
/* Save the selection so the subsequence re-configurations will be
|
||||
* faster
|
||||
*/
|
||||
|
||||
priv->nbits = nbits;
|
||||
}
|
||||
@ -919,7 +923,9 @@ FAR struct spi_dev_s *pic32mx_spibus_initialize(int port)
|
||||
up_disable_irq(priv->rxirq);
|
||||
#endif
|
||||
|
||||
/* Stop and reset the SPI module by clearing the ON bit in the CON register. */
|
||||
/* Stop and reset the SPI module by clearing the ON bit in the CON
|
||||
* register.
|
||||
*/
|
||||
|
||||
spi_putreg(priv, PIC32MX_SPI_CON_OFFSET, 0);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-spi.h
|
||||
* arch/mips/src/pic32mx/pic32mx_spi.h
|
||||
*
|
||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "chip.h"
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-timer.h
|
||||
* arch/mips/src/pic32mx/pic32mx_timer.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "chip.h"
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
#if CHIP_NTIMERS > 0
|
||||
|
@ -47,18 +47,20 @@
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "clock/clock.h"
|
||||
#include "up_internal.h"
|
||||
#include "up_arch.h"
|
||||
#include "mips_internal.h"
|
||||
#include "mips_arch.h"
|
||||
|
||||
#include "pic32mx-config.h"
|
||||
#include "pic32mx-timer.h"
|
||||
#include "pic32mx-int.h"
|
||||
#include "pic32mx_config.h"
|
||||
#include "pic32mx_timer.h"
|
||||
#include "pic32mx_int.h"
|
||||
#include "pic32mx.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* Timer Setup **************************************************************/
|
||||
|
||||
/* Timer 1 is a type A timer. Setting the TCS bit in the timer control
|
||||
* register will select the SOSC as the clock source. Otherwise, PBCLOCK
|
||||
* is the clock source.
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-uart.h
|
||||
* arch/mips/src/pic32mx/pic32mx_uart.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "chip.h"
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
@ -64,9 +64,9 @@
|
||||
|
||||
#include <nuttx/irq.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
#include "mips_arch.h"
|
||||
#include "pic32mx.h"
|
||||
#include "pic32mx-usbotg.h"
|
||||
#include "pic32mx_usbotg.h"
|
||||
|
||||
#if defined(CONFIG_USBDEV) && defined(CONFIG_PIC32MX_USBDEV)
|
||||
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-usbotg.h
|
||||
* arch/mips/src/pic32mx/pic32mx_usbotg.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-wdt.h
|
||||
* arch/mips/src/pic32mx/pic32mx_wdt.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mx-memorymap.h"
|
||||
#include "pic32mx_memorymap.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -35,83 +35,83 @@
|
||||
|
||||
# The start-up, "head", file
|
||||
|
||||
HEAD_ASRC = pic32mz-head.S
|
||||
HEAD_ASRC = pic32mz_head.S
|
||||
|
||||
# Common MIPS files
|
||||
|
||||
CMN_ASRCS = up_syscall0.S vfork.S up_cache.S
|
||||
CMN_CSRCS = up_allocateheap.c up_assert.c up_blocktask.c up_copystate.c
|
||||
CMN_CSRCS += up_createstack.c up_doirq.c up_exit.c up_initialize.c
|
||||
CMN_CSRCS += up_initialstate.c up_interruptcontext.c up_irq.c up_lowputs.c
|
||||
CMN_CSRCS += up_mdelay.c up_modifyreg8.c up_modifyreg16.c up_modifyreg32.c
|
||||
CMN_CSRCS += up_puts.c up_releasepending.c up_releasestack.c
|
||||
CMN_CSRCS += up_reprioritizertr.c up_schedulesigaction.c up_sigdeliver.c
|
||||
CMN_CSRCS += up_stackframe.c up_swint0.c up_udelay.c up_unblocktask.c
|
||||
CMN_CSRCS += up_usestack.c up_vfork.c
|
||||
CMN_ASRCS = mips_syscall0.S vfork.S mips_cache.S
|
||||
CMN_CSRCS = mips_allocateheap.c mips_assert.c mips_blocktask.c mips_copystate.c
|
||||
CMN_CSRCS += mips_createstack.c mips_doirq.c mips_exit.c mips_initialize.c
|
||||
CMN_CSRCS += mips_initialstate.c mips_interruptcontext.c mips_irq.c mips_lowputs.c
|
||||
CMN_CSRCS += mips_mdelay.c mips_modifyreg8.c mips_modifyreg16.c mips_modifyreg32.c
|
||||
CMN_CSRCS += mips_puts.c mips_releasepending.c mips_releasestack.c
|
||||
CMN_CSRCS += mips_reprioritizertr.c mips_schedulesigaction.c mips_sigdeliver.c
|
||||
CMN_CSRCS += mips_stackframe.c mips_swint0.c mips_udelay.c mips_unblocktask.c
|
||||
CMN_CSRCS += mips_usestack.c mips_vfork.c
|
||||
|
||||
# Configuration dependent common files
|
||||
|
||||
ifneq ($(CONFIG_ARCH_IDLE_CUSTOM),y)
|
||||
CMN_CSRCS += up_idle.c
|
||||
CMN_CSRCS += mips_idle.c
|
||||
endif
|
||||
|
||||
# Use of common/up_etherstub.c is deprecated. The preferred mechanism is to
|
||||
# Use of common/mips_etherstub.c is deprecated. The preferred mechanism is to
|
||||
# use CONFIG_NETDEV_LATEINIT=y to suppress the call to up_netinitialize() in
|
||||
# up_initialize(). Then this stub would not be needed.
|
||||
|
||||
ifneq ($(CONFIG_PIC32MZ_ETHERNET),y)
|
||||
ifeq ($(CONFIG_NET),y)
|
||||
CMN_CSRCS += up_etherstub.c
|
||||
CMN_CSRCS += mips_etherstub.c
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_ARCH_STACKDUMP),y)
|
||||
CMN_CSRCS += up_dumpstate.c
|
||||
CMN_CSRCS += mips_dumpstate.c
|
||||
endif
|
||||
|
||||
# Required PIC32MZ files
|
||||
|
||||
CHIP_ASRCS =
|
||||
CHIP_CSRCS = pic32mz-lowinit.c pic32mz-exception.c pic32mz-decodeirq.c
|
||||
CHIP_CSRCS += pic32mz-irq.c pic32mz-timerisr.c pic32mz-gpio.c
|
||||
CHIP_CSRCS += pic32mz-lowconsole.c pic32mz-serial.c
|
||||
CHIP_CSRCS = pic32mz_lowinit.c pic32mz_exception.c pic32mz_decodeirq.c
|
||||
CHIP_CSRCS += pic32mz_irq.c pic32mz_timerisr.c pic32mz_gpio.c
|
||||
CHIP_CSRCS += pic32mz_lowconsole.c pic32mz_serial.c
|
||||
|
||||
# Configuration-dependent PIC32MZ files
|
||||
|
||||
ifeq ($(CONFIG_PIC32MZ_GPIOIRQ),y)
|
||||
CHIP_CSRCS += pic32mz-gpioirq.c
|
||||
CHIP_CSRCS += pic32mz_gpioirq.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_PIC32MZ_SPI),y)
|
||||
CHIP_CSRCS += pic32mz-spi.c
|
||||
CHIP_CSRCS += pic32mz_spi.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_PIC32MZ_I2C),y)
|
||||
CHIP_CSRCS += pic32mz-i2c.c
|
||||
CHIP_CSRCS += pic32mz_i2c.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_PIC32MZ_TIMER),y)
|
||||
CHIP_CSRCS += pic32mz-timer.c
|
||||
CHIP_CSRCS += pic32mz_timer.c
|
||||
ifeq ($(CONFIG_TIMER),y)
|
||||
CHIP_CSRCS += pic32mz-timer-lowerhalf.c
|
||||
CHIP_CSRCS += pic32mz_timer_lowerhalf.c
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_PIC32MZ_FREERUN),y)
|
||||
CHIP_CSRCS += pic32mz-freerun.c
|
||||
CHIP_CSRCS += pic32mz_freerun.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_PIC32MZ_ONESHOT),y)
|
||||
CHIP_CSRCS += pic32mz-oneshot.c
|
||||
CHIP_CSRCS += pic32mz_oneshot.c
|
||||
ifeq ($(CONFIG_ONESHOT),y)
|
||||
CHIP_CSRCS += pic32mz-oneshot-lowerhalf.c
|
||||
CHIP_CSRCS += pic32mz_oneshot_lowerhalf.c
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_PIC32MZ_ETHERNET),y)
|
||||
CHIP_CSRCS += pic32mz-ethernet.c
|
||||
CHIP_CSRCS += pic32mz_ethernet.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_PIC32MZ_DMA),y)
|
||||
CHIP_CSRCS += pic32mz-dma.c
|
||||
CHIP_CSRCS += pic32mz_dma.c
|
||||
endif
|
||||
|
@ -1,5 +1,5 @@
|
||||
/********************************************************************************************
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz-dma.h
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz_dma.h
|
||||
*
|
||||
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
#include <arch/pic32mz/chip.h>
|
||||
|
||||
#include "hardware/pic32mz-memorymap.h"
|
||||
#include "hardware/pic32mz_memorymap.h"
|
||||
|
||||
#if CHIP_NDMACH > 0
|
||||
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************************************
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz-ethernet.h
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz_ethernet.h
|
||||
*
|
||||
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
#include <arch/pic32mz/chip.h>
|
||||
|
||||
#include "hardware/pic32mz-memorymap.h"
|
||||
#include "hardware/pic32mz_memorymap.h"
|
||||
|
||||
#if CHIP_NETHERNET > 0
|
||||
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz-features.h
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz_features.h
|
||||
*
|
||||
* Copyright (C) 2015, 2018 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,9 +43,9 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#if defined(CONFIG_ARCH_CHIP_PIC32MZEC)
|
||||
# include "hardware/pic32mzec-features.h"
|
||||
# include "hardware/pic32mzec_features.h"
|
||||
#elif defined(CONFIG_ARCH_CHIP_PIC32MZEF)
|
||||
# include "hardware/pic32mzef-features.h"
|
||||
# include "hardware/pic32mzef_features.h"
|
||||
#else
|
||||
# error Unknown PIC32MZ family
|
||||
#endif
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz-i2c.h
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz_i2c.h
|
||||
*
|
||||
* Copyright (C) 2015, 2018 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
#include <arch/pic32mz/chip.h>
|
||||
|
||||
#include "hardware/pic32mz-memorymap.h"
|
||||
#include "hardware/pic32mz_memorymap.h"
|
||||
|
||||
#if CHIP_NI2C > 0
|
||||
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz-int.h
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz_int.h
|
||||
*
|
||||
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mz-memorymap.h"
|
||||
#include "pic32mz_memorymap.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/********************************************************************************************
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz-ioport.h
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz_ioport.h
|
||||
*
|
||||
* Copyright (C) 2015, 2019 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <arch/pic32mz/chip.h>
|
||||
#include "pic32mz-memorymap.h"
|
||||
#include "pic32mz_memorymap.h"
|
||||
|
||||
#if CHIP_NPORTS > 0
|
||||
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz-memorymap.h
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz_memorymap.h
|
||||
*
|
||||
* Copyright (C) 2015, 2018 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,9 +43,9 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#if defined(CONFIG_ARCH_CHIP_PIC32MZEC)
|
||||
# include "hardware/pic32mzec-memorymap.h"
|
||||
# include "hardware/pic32mzec_memorymap.h"
|
||||
#elif defined(CONFIG_ARCH_CHIP_PIC32MZEF)
|
||||
# include "hardware/pic32mzef-memorymap.h"
|
||||
# include "hardware/pic32mzef_memorymap.h"
|
||||
#else
|
||||
# error "Unknown PIC32MZ family"
|
||||
#endif
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz-osc.h
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz_osc.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mz-memorymap.h"
|
||||
#include "pic32mz_memorymap.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/********************************************************************************************
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz-pps.h
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz_pps.h
|
||||
*
|
||||
* Copyright (C) 2015, 2018 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -50,9 +50,9 @@
|
||||
/* Depends on the peripherals supported by the particular device */
|
||||
|
||||
#if defined(CONFIG_ARCH_CHIP_PIC32MZEC)
|
||||
# include "hardware/pic32mzec-pps.h"
|
||||
# include "hardware/pic32mzec_pps.h"
|
||||
#elif defined(CONFIG_ARCH_CHIP_PIC32MZEF)
|
||||
# include "hardware/pic32mzef-pps.h"
|
||||
# include "hardware/pic32mzef_pps.h"
|
||||
#else
|
||||
# error Unknown PIC32MZ family
|
||||
#endif
|
@ -1,5 +1,5 @@
|
||||
/********************************************************************************************
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz-prefetch.h
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz_prefetch.h
|
||||
*
|
||||
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include "pic32mz-memorymap.h"
|
||||
#include "pic32mz_memorymap.h"
|
||||
|
||||
/********************************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz-spi.h
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz_spi.h
|
||||
*
|
||||
* Copyright (C) 2015, 2019 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
#include <arch/pic32mz/chip.h>
|
||||
|
||||
#include "hardware/pic32mz-memorymap.h"
|
||||
#include "hardware/pic32mz_memorymap.h"
|
||||
|
||||
#if CHIP_NSPI > 0
|
||||
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz-timer.h
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz_timer.h
|
||||
*
|
||||
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <arch/pic32mz/chip.h>
|
||||
#include "pic32mz-memorymap.h"
|
||||
#include "pic32mz_memorymap.h"
|
||||
|
||||
#if CHIP_NTIMERS > 0
|
||||
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz-uart.h
|
||||
* arch/mips/src/pic32mz/hardware/pic32mz_uart.h
|
||||
*
|
||||
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <arch/pic32mz/chip.h>
|
||||
#include "hardware/pic32mz-memorymap.h"
|
||||
#include "hardware/pic32mz_memorymap.h"
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
@ -40,7 +40,7 @@
|
||||
* Included Files
|
||||
********************************************************************************************/
|
||||
|
||||
#include "pic32mz-memorymap.h"
|
||||
#include "pic32mz_memorymap.h"
|
||||
|
||||
/********************************************************************************************
|
||||
* Pre-processor Definitions
|
@ -40,7 +40,7 @@
|
||||
* Included Files
|
||||
********************************************************************************************/
|
||||
|
||||
#include "pic32mz-memorymap.h"
|
||||
#include "pic32mz_memorymap.h"
|
||||
|
||||
/********************************************************************************************
|
||||
* Pre-processor Definitions
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user