Cloned AVR32 code now compiles
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2965 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
c33096dab8
commit
89583327a8
@ -56,7 +56,7 @@
|
||||
|
||||
/* Total number of IRQ numbers */
|
||||
|
||||
#define NR_IRQS
|
||||
#define NR_IRQS 1
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
|
@ -50,9 +50,11 @@
|
||||
* Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* Indices the register state save array */
|
||||
/* Register state save array indices */
|
||||
|
||||
#defin XCPTCONTEXT_REGS 1
|
||||
/* Size of the register state save array */
|
||||
|
||||
#define XCPTCONTEXT_REGS 1
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
@ -87,6 +89,7 @@ struct xcptcontext
|
||||
|
||||
static inline irqstate_t irqsave(void)
|
||||
{
|
||||
# warning "Not implemented"
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -94,6 +97,7 @@ static inline irqstate_t irqsave(void)
|
||||
|
||||
static inline void irqrestore(irqstate_t flags)
|
||||
{
|
||||
# warning "Not implemented"
|
||||
}
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
|
62
arch/avr/src/at91uc3/at91uc3_internal.h
Executable file
62
arch/avr/src/at91uc3/at91uc3_internal.h
Executable file
@ -0,0 +1,62 @@
|
||||
/************************************************************************************
|
||||
* arch/avr/src/at91uc3b/at91uc3_internal.h
|
||||
*
|
||||
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
* 3. Neither the name NuttX nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
#ifndef __ARCH_AVR_SRC_AVR32_AT91UC3_INTERNAL_H
|
||||
#define __ARCH_AVR_SRC_AVR32_AT91UC3_INTERNAL_H
|
||||
|
||||
/************************************************************************************
|
||||
* Included Files
|
||||
************************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
* Public Types
|
||||
************************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
* Public Data
|
||||
************************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
* Public Functions
|
||||
************************************************************************************/
|
||||
|
||||
#endif /* __ARCH_AVR_SRC_AVR32_AT91UC3_INTERNAL_H */
|
||||
|
@ -48,7 +48,7 @@
|
||||
|
||||
/* Get customizations for each supported chip */
|
||||
|
||||
#if 0
|
||||
#if CONFIG_ARCH_CHIP_AT91UC3B0256
|
||||
#else
|
||||
# error "Unsupported AVR32 chip"
|
||||
#endif
|
||||
@ -57,7 +57,7 @@
|
||||
* file for the proper setup
|
||||
*/
|
||||
|
||||
#include "atuc3_memorymap.h"
|
||||
#include "at91uc3_memorymap.h"
|
||||
|
||||
/************************************************************************************
|
||||
* Public Types
|
||||
|
@ -45,7 +45,6 @@
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
|
||||
#include "psr.h"
|
||||
#include "os_internal.h"
|
||||
#include "up_internal.h"
|
||||
#include "up_arch.h"
|
||||
|
@ -112,16 +112,15 @@ void up_sigdeliver(void)
|
||||
|
||||
/* Then restore the task interrupt state */
|
||||
|
||||
irqrestore((uint16_t)regs[REG_PRIMASK]);
|
||||
#warning "Not Implemented"
|
||||
|
||||
/* Deliver the signals */
|
||||
|
||||
sigdeliver(rtcb);
|
||||
|
||||
/* Output any debug messaged BEFORE restoreing errno
|
||||
* (becuase they may alter errno), then restore the
|
||||
* original errno that is needed by the user logic
|
||||
* (it is probably EINTR).
|
||||
/* Output any debug messaged BEFORE restoring errno (becuase they may
|
||||
* alter errno), then restore the original errno that is needed by
|
||||
* the user logic (it is probably EINTR).
|
||||
*/
|
||||
|
||||
sdbg("Resuming\n");
|
||||
|
Loading…
Reference in New Issue
Block a user