Changeset c354fac in rtems


Ignore:
Timestamp:
Jan 14, 2016, 2:48:44 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
f2e0f8e
Parents:
e1eeb883
git-author:
Sebastian Huber <sebastian.huber@…> (01/14/16 14:48:44)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/19/16 07:36:20)
Message:

bsp/atsam: Port SAM Software Package to RTEMS

Update #2529.

Location:
c/src/lib/libbsp/arm/atsam/libraries
Files:
1 added
42 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/atsam/libraries/libboard/board.h

    re1eeb883 rc354fac  
    3131#define _BOARD_H_
    3232
     33#ifdef __rtems__
     34#include <bspopts.h>
     35#endif /* __rtems__ */
    3336#if defined(BOARD_SAMV71_XULT)
    3437        #include "board_v71_xult.h"
  • c/src/lib/libbsp/arm/atsam/libraries/libboard/board_v71_xult.h

    re1eeb883 rc354fac  
    111111#include "include/iso7816_4.h"
    112112
     113#ifndef __rtems__
    113114#if defined (__GNUC__)
    114115        #include "include/syscalls.h"
    115116#endif
     117#endif /* __rtems__ */
    116118/*----------------------------------------------------------------------------
    117119 *        Definitions
     
    130132#define BOARD_NAME "SAM V71 Xplained Ultra"
    131133#define NO_PUSHBUTTON
     134#ifndef __rtems__
    132135/*----------------------------------------------------------------------------*/
    133136/**
     
    151154        #define BOARD_MCK    150000000
    152155#endif
     156#endif /* __rtems__ */
    153157
    154158#if (BOARD_MCK==123000000)
  • c/src/lib/libbsp/arm/atsam/libraries/libboard/resources_v71/system_samv71.c

    re1eeb883 rc354fac  
    2828/* ---------------------------------------------------------------------------- */
    2929
     30#ifndef __rtems__
    3031#include "samv71.h"
     32#else /* __rtems__ */
     33#include <chip.h>
     34#endif /* __rtems__ */
    3135
    3236/* @cond 0 */
     
    4246        /* Clock Settings (300MHz HCLK, 150MHz MCK)=> PRESC = 2, MDIV = 2 */
    4347#define SYS_BOARD_OSCOUNT   (CKGR_MOR_MOSCXTST(0x8U))
    44 #ifdef MCK_123MHZ
     48#if BOARD_MCK == 123000000
    4549        /* For example usb_video, PLLA/HCLK/MCK clock is set to 492/246/123MHz to achieve
    4650           the maximum performance, for other examples the clock is set to 300/300/150MHz */
     
    5155        #define SYS_BOARD_MCKR      (PMC_MCKR_PRES_CLK_2 | PMC_MCKR_CSS_PLLA_CLK \
    5256                                                                 | SYS_BOARD_MCKR_MDIV)
    53 #else
     57#elif BOARD_MCK == 150000000
    5458        #define SYS_BOARD_PLLAR     (CKGR_PLLAR_ONE | CKGR_PLLAR_MULA(0x18U) | \
    5559                                                                 CKGR_PLLAR_PLLACOUNT(0x3fU) | CKGR_PLLAR_DIVA(0x1U))
     
    5862        #define SYS_BOARD_MCKR      (PMC_MCKR_PRES_CLK_1 | PMC_MCKR_CSS_PLLA_CLK \
    5963                                                                 | SYS_BOARD_MCKR_MDIV)
     64#else
     65        #error "unexpected Main Clock (MCK) frequency"
    6066#endif
    6167
     68#ifndef __rtems__
    6269        uint32_t SystemCoreClock = CHIP_FREQ_MAINCK_RC_4MHZ;
     70#endif /* __rtems__ */
    6371#define USBCLK_DIV          10
    6472
     
    132140        }
    133141
     142#ifndef __rtems__
    134143        SystemCoreClock = CHIP_FREQ_CPU_MAX;
    135 }
    136 
     144#endif /* __rtems__ */
     145}
     146
     147#ifndef __rtems__
    137148void SystemCoreClockUpdate(void)
    138149{
     
    214225                SystemCoreClock >>= ((PMC->PMC_MCKR & PMC_MCKR_PRES_Msk) >> PMC_MCKR_PRES_Pos);
    215226}
     227#endif /* __rtems__ */
    216228/**
    217229 * Initialize flash.
  • c/src/lib/libbsp/arm/atsam/libraries/libboard/source/board_lowlevel.c

    re1eeb883 rc354fac  
    3838 *----------------------------------------------------------------------------*/
    3939
     40#ifndef __rtems__
    4041#include "board.h"
     42#else /* __rtems__ */
     43#include <chip.h>
     44#include <include/board_lowlevel.h>
     45#endif /* __rtems__ */
    4146
    4247
  • c/src/lib/libbsp/arm/atsam/libraries/libboard/source/board_memories.c

    re1eeb883 rc354fac  
    3838 *        Headers
    3939 *----------------------------------------------------------------------------*/
     40#ifndef __rtems__
    4041#include "board.h"
     42#else /* __rtems__ */
     43#include <chip.h>
     44#include <include/board_memories.h>
     45#endif /* __rtems__ */
    4146
    4247/*----------------------------------------------------------------------------
     
    4853
    4954
     55#ifndef __rtems__
    5056uint32_t BOARD_SdramValidation(uint32_t baseAddr, uint32_t size)
    5157{
     
    136142        return ret;
    137143}
     144#endif /* __rtems__ */
    138145
    139146
     
    145152void BOARD_ConfigureSdram(void)
    146153{
     154#ifndef __rtems__
    147155        const Pin pinsSdram[] = {BOARD_SDRAM_PINS};
     156#endif /* __rtems__ */
    148157        volatile uint32_t i;
    149158        volatile uint8_t *pSdram = (uint8_t *) SDRAM_CS_ADDR;
    150159
    151160        /* Configure PIO */
     161#ifndef __rtems__
    152162        PIO_Configure(pinsSdram, PIO_LISTSIZE(pinsSdram));
     163#endif /* __rtems__ */
    153164        PMC_EnablePeripheral(ID_SDRAMC);
    154165        MATRIX->CCFG_SMCNFCS = CCFG_SMCNFCS_SDRAMEN;
  • c/src/lib/libbsp/arm/atsam/libraries/libboard/source/dbg_console.c

    re1eeb883 rc354fac  
    3939 *----------------------------------------------------------------------------*/
    4040
     41#ifndef __rtems__
    4142#include "board.h"
     43#else /* __rtems__ */
     44#include <chip.h>
     45#include <include/dbg_console.h>
     46#endif /* __rtems__ */
    4247
    4348#include <stdio.h>
     
    5156
    5257
     58#ifndef __rtems__
    5359#define CONSOLE_BAUDRATE    115200
    5460
     
    103109#define CONSOLE_ID        ID_USART1
    104110#endif
     111#else /* __rtems__ */
     112#define CONSOLE_BAUDRATE ATSAM_CONSOLE_BAUD
     113#if ATSAM_CONSOLE_DEVICE_TYPE == 1
     114  #define CONSOLE_ON_UART
     115  #if ATSAM_CONSOLE_DEVICE_INDEX == 4
     116    #define CONSOLE_UART UART4
     117    #define CONSOLE_ID ID_UART4
     118  #elif ATSAM_CONSOLE_DEVICE_INDEX == 3
     119    #define CONSOLE_UART UART3
     120    #define CONSOLE_ID ID_UART3
     121  #elif ATSAM_CONSOLE_DEVICE_INDEX == 2
     122    #define CONSOLE_UART UART2
     123    #define CONSOLE_ID ID_UART2
     124  #elif ATSAM_CONSOLE_DEVICE_INDEX == 1
     125    #define CONSOLE_UART UART1
     126    #define CONSOLE_ID ID_UART1
     127  #else
     128    #define CONSOLE_UART UART0
     129    #define CONSOLE_ID ID_UART0
     130  #endif
     131#else
     132  #define CONSOLE_ON_USART
     133  #if ATSAM_CONSOLE_DEVICE_INDEX == 4
     134    #define CONSOLE_Usart USART4
     135    #define CONSOLE_ID ID_USART4
     136  #elif ATSAM_CONSOLE_DEVICE_INDEX == 3
     137    #define CONSOLE_Usart USART3
     138    #define CONSOLE_ID ID_USART3
     139  #elif ATSAM_CONSOLE_DEVICE_INDEX == 2
     140    #define CONSOLE_Usart USART2
     141    #define CONSOLE_ID ID_USART2
     142  #elif ATSAM_CONSOLE_DEVICE_INDEX == 1
     143    #define CONSOLE_Usart USART1
     144    #define CONSOLE_ID ID_USART1
     145  #else
     146    #define CONSOLE_Usart USART0
     147    #define CONSOLE_ID ID_USART0
     148  #endif
     149#endif
     150#endif /* __rtems__ */
    105151
    106152
     
    109155 *----------------------------------------------------------------------------*/
    110156
     157#ifndef __rtems__
    111158/** Is Console Initialized. */
    112159static uint8_t _ucIsConsoleInitialized = 0;
     160#else /* __rtems__ */
     161#define _ucIsConsoleInitialized 1
     162#endif /* __rtems__ */
    113163
    114164/**
     
    121171{
    122172
     173#ifndef __rtems__
    123174        const Pin pPins[] = CONSOLE_PINS;
     175#endif /* __rtems__ */
    124176#if defined CONSOLE_ON_UART
    125177        Uart *pUart = CONSOLE_UART;
    126178        /* Configure PIO */
     179#ifndef __rtems__
    127180        PIO_Configure(pPins, PIO_LISTSIZE(pPins));
     181#endif /* __rtems__ */
    128182
    129183        // Reset & disable receiver and transmitter, disable interrupts
     
    143197        Usart *pUsart = CONSOLE_Usart;
    144198        // Disable the MATRIX registers write protection
     199#ifndef __rtems__
    145200        MATRIX->MATRIX_WPMR  = MATRIX_WPMR_WPKEY_PASSWD;
    146201        MATRIX->CCFG_SYSIO |= CCFG_SYSIO_SYSIO4;
    147202
    148203        PIO_Configure(pPins, PIO_LISTSIZE(pPins));
     204#endif /* __rtems__ */
    149205
    150206        // Reset & disable receiver and transmitter, disable interrupts
     
    162218        pUsart->US_CR = US_CR_RXEN | US_CR_TXEN;
    163219#endif
     220#ifndef __rtems__
    164221        _ucIsConsoleInitialized = 1;
    165222
     
    168225        setvbuf(stdout, (char *)NULL, _IONBF, 0);
    169226#endif
     227#endif /* __rtems__ */
    170228}
    171229
     
    270328}
    271329
     330#ifndef __rtems__
    272331/**
    273332 *  Displays the content of the given frame on the UART0.
     
    503562
    504563
     564#endif /* __rtems__ */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/compiler.h

    re1eeb883 rc354fac  
    3131#define _COMPILER_H_
    3232
     33#ifdef __rtems__
     34#include <bspopts.h>
     35#endif /* __rtems__ */
    3336/*
    3437 * Peripherals registers definitions
    3538 */
    36 #if defined(__SAMV71Q21__)
     39#if defined __SAMV71J19__ \
     40        || defined __SAMV71J20__ \
     41        || defined __SAMV71J21__ \
     42        || defined __SAMV71N19__ \
     43        || defined __SAMV71N20__ \
     44        || defined __SAMV71N21__ \
     45        || defined __SAMV71Q19__ \
     46        || defined __SAMV71Q20__ \
     47        || defined __SAMV71Q21__
    3748        #include "include/samv71/samv71.h"
    38 #elif defined(__SAME70Q21__)
     49#elif defined __SAMS70J19__ \
     50        || defined __SAMS70J20__ \
     51        || defined __SAMS70J21__ \
     52        || defined __SAMS70N19__ \
     53        || defined __SAMS70N20__ \
     54        || defined __SAMS70N21__ \
     55        || defined __SAMS70Q19__ \
     56        || defined __SAMS70Q20__ \
     57        || defined __SAMS70Q21__
     58        #include "include/sams70/sams70.h"
     59#elif defined __SAME70J19__ \
     60        || defined __SAME70J20__ \
     61        || defined __SAME70J21__ \
     62        || defined __SAME70N19__ \
     63        || defined __SAME70N20__ \
     64        || defined __SAME70N21__ \
     65        || defined __SAME70Q19__ \
     66        || defined __SAME70Q20__ \
     67        || defined __SAME70Q21__
    3968        #include "include/same70/same70.h"
    4069#else
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/qspi_dma.h

    re1eeb883 rc354fac  
    4343
    4444#include "chip.h"
     45#ifndef __rtems__
    4546#include "../../../../utils/utility.h"
     47#endif /* __rtems__ */
    4648
    4749/*----------------------------------------------------------------------------
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/same70/same70j19.h

    re1eeb883 rc354fac  
    334334/*@}*/
    335335
     336#ifndef __rtems__
    336337/* ************************************************************************** */
    337338/*   REGISTER ACCESS DEFINITIONS FOR SAME70J19 */
     
    387388#include "instance/instance_uart4.h"
    388389/*@}*/
     390#endif /* __rtems__ */
    389391
    390392/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/same70/same70j20.h

    re1eeb883 rc354fac  
    337337/*@}*/
    338338
     339#ifndef __rtems__
    339340/* ************************************************************************** */
    340341/*   REGISTER ACCESS DEFINITIONS FOR SAME70J20 */
     
    391392#include "instance/instance_uart4.h"
    392393/*@}*/
     394#endif /* __rtems__ */
    393395
    394396/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/same70/same70j21.h

    re1eeb883 rc354fac  
    337337/*@}*/
    338338
     339#ifndef __rtems__
    339340/* ************************************************************************** */
    340341/*   REGISTER ACCESS DEFINITIONS FOR SAME70J21 */
     
    391392#include "instance/instance_uart4.h"
    392393/*@}*/
     394#endif /* __rtems__ */
    393395
    394396/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/same70/same70n19.h

    re1eeb883 rc354fac  
    339339/*@}*/
    340340
     341#ifndef __rtems__
    341342/* ************************************************************************** */
    342343/*   REGISTER ACCESS DEFINITIONS FOR SAME70N19 */
     
    394395#include "instance/instance_uart4.h"
    395396/*@}*/
     397#endif /* __rtems__ */
    396398
    397399/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/same70/same70n20.h

    re1eeb883 rc354fac  
    339339/*@}*/
    340340
     341#ifndef __rtems__
    341342/* ************************************************************************** */
    342343/*   REGISTER ACCESS DEFINITIONS FOR SAME70N20 */
     
    394395#include "instance/instance_uart4.h"
    395396/*@}*/
     397#endif /* __rtems__ */
    396398
    397399/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/same70/same70n21.h

    re1eeb883 rc354fac  
    339339/*@}*/
    340340
     341#ifndef __rtems__
    341342/* ************************************************************************** */
    342343/*   REGISTER ACCESS DEFINITIONS FOR SAME70N21 */
     
    394395#include "instance/instance_uart4.h"
    395396/*@}*/
     397#endif /* __rtems__ */
    396398
    397399/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/same70/same70q19.h

    re1eeb883 rc354fac  
    359359/*@}*/
    360360
     361#ifndef __rtems__
    361362/* ************************************************************************** */
    362363/*   REGISTER ACCESS DEFINITIONS FOR SAME70Q19 */
     
    420421#include "instance/instance_uart4.h"
    421422/*@}*/
     423#endif /* __rtems__ */
    422424
    423425/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/same70/same70q20.h

    re1eeb883 rc354fac  
    359359/*@}*/
    360360
     361#ifndef __rtems__
    361362/* ************************************************************************** */
    362363/*   REGISTER ACCESS DEFINITIONS FOR SAME70Q20 */
     
    420421#include "instance/instance_uart4.h"
    421422/*@}*/
     423#endif /* __rtems__ */
    422424
    423425/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/same70/same70q21.h

    re1eeb883 rc354fac  
    363363/*@}*/
    364364
     365#ifndef __rtems__
    365366/* ************************************************************************** */
    366367/*   REGISTER ACCESS DEFINITIONS FOR SAME70Q21 */
     
    424425#include "instance/instance_uart4.h"
    425426/*@}*/
     427#endif /* __rtems__ */
    426428
    427429/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/sams70/sams70j19.h

    re1eeb883 rc354fac  
    329329/*@}*/
    330330
     331#ifndef __rtems__
    331332/* ************************************************************************** */
    332333/*   REGISTER ACCESS DEFINITIONS FOR SAMS70J19 */
     
    380381#include "instance/instance_uart4.h"
    381382/*@}*/
     383#endif /* __rtems__ */
    382384
    383385/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/sams70/sams70j20.h

    re1eeb883 rc354fac  
    329329/*@}*/
    330330
     331#ifndef __rtems__
    331332/* ************************************************************************** */
    332333/*   REGISTER ACCESS DEFINITIONS FOR SAMS70J20 */
     
    380381#include "instance/instance_uart4.h"
    381382/*@}*/
     383#endif /* __rtems__ */
    382384
    383385/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/sams70/sams70j21.h

    re1eeb883 rc354fac  
    329329/*@}*/
    330330
     331#ifndef __rtems__
    331332/* ************************************************************************** */
    332333/*   REGISTER ACCESS DEFINITIONS FOR SAMS70J21 */
     
    380381#include "instance/instance_uart4.h"
    381382/*@}*/
     383#endif /* __rtems__ */
    382384
    383385/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/sams70/sams70n19.h

    re1eeb883 rc354fac  
    331331/*@}*/
    332332
     333#ifndef __rtems__
    333334/* ************************************************************************** */
    334335/*   REGISTER ACCESS DEFINITIONS FOR SAMS70N19 */
     
    383384#include "instance/instance_uart4.h"
    384385/*@}*/
     386#endif /* __rtems__ */
    385387
    386388/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/sams70/sams70n20.h

    re1eeb883 rc354fac  
    331331/*@}*/
    332332
     333#ifndef __rtems__
    333334/* ************************************************************************** */
    334335/*   REGISTER ACCESS DEFINITIONS FOR SAMS70N20 */
     
    383384#include "instance/instance_uart4.h"
    384385/*@}*/
     386#endif /* __rtems__ */
    385387
    386388/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/sams70/sams70n21.h

    re1eeb883 rc354fac  
    331331/*@}*/
    332332
     333#ifndef __rtems__
    333334/* ************************************************************************** */
    334335/*   REGISTER ACCESS DEFINITIONS FOR SAMS70N21 */
     
    383384#include "instance/instance_uart4.h"
    384385/*@}*/
     386#endif /* __rtems__ */
    385387
    386388/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/sams70/sams70q19.h

    re1eeb883 rc354fac  
    351351/*@}*/
    352352
     353#ifndef __rtems__
    353354/* ************************************************************************** */
    354355/*   REGISTER ACCESS DEFINITIONS FOR SAMS70Q19 */
     
    409410#include "instance/instance_uart4.h"
    410411/*@}*/
     412#endif /* __rtems__ */
    411413
    412414/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/sams70/sams70q20.h

    re1eeb883 rc354fac  
    351351/*@}*/
    352352
     353#ifndef __rtems__
    353354/* ************************************************************************** */
    354355/*   REGISTER ACCESS DEFINITIONS FOR SAMS70Q20 */
     
    409410#include "instance/instance_uart4.h"
    410411/*@}*/
     412#endif /* __rtems__ */
    411413
    412414/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/sams70/sams70q21.h

    re1eeb883 rc354fac  
    351351/*@}*/
    352352
     353#ifndef __rtems__
    353354/* ************************************************************************** */
    354355/*   REGISTER ACCESS DEFINITIONS FOR SAMS70Q21 */
     
    409410#include "instance/instance_uart4.h"
    410411/*@}*/
     412#endif /* __rtems__ */
    411413
    412414/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/samv71/samv71.h

    re1eeb883 rc354fac  
    3131#define _SAMV71_
    3232
     33#ifdef __rtems__
     34#include <bspopts.h>
     35#endif /* __rtems__ */
    3336#if defined __SAMV71J19__
    3437  #include "samv71j19.h"
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/samv71/samv71j19.h

    re1eeb883 rc354fac  
    340340/*@}*/
    341341
     342#ifndef __rtems__
    342343/* ************************************************************************** */
    343344/*   REGISTER ACCESS DEFINITIONS FOR SAMV71J19 */
     
    395396#include "instance/instance_uart4.h"
    396397/*@}*/
     398#endif /* __rtems__ */
    397399
    398400/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/samv71/samv71j20.h

    re1eeb883 rc354fac  
    340340/*@}*/
    341341
     342#ifndef __rtems__
    342343/* ************************************************************************** */
    343344/*   REGISTER ACCESS DEFINITIONS FOR SAMV71J20 */
     
    395396#include "instance/instance_uart4.h"
    396397/*@}*/
     398#endif /* __rtems__ */
    397399
    398400/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/samv71/samv71j21.h

    re1eeb883 rc354fac  
    340340/*@}*/
    341341
     342#ifndef __rtems__
    342343/* ************************************************************************** */
    343344/*   REGISTER ACCESS DEFINITIONS FOR SAMV71J21 */
     
    395396#include "instance/instance_uart4.h"
    396397/*@}*/
     398#endif /* __rtems__ */
    397399
    398400/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/samv71/samv71n19.h

    re1eeb883 rc354fac  
    342342/*@}*/
    343343
     344#ifndef __rtems__
    344345/* ************************************************************************** */
    345346/*   REGISTER ACCESS DEFINITIONS FOR SAMV71N19 */
     
    398399#include "instance/instance_uart4.h"
    399400/*@}*/
     401#endif /* __rtems__ */
    400402
    401403/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/samv71/samv71n20.h

    re1eeb883 rc354fac  
    342342/*@}*/
    343343
     344#ifndef __rtems__
    344345/* ************************************************************************** */
    345346/*   REGISTER ACCESS DEFINITIONS FOR SAMV71N20 */
     
    398399#include "instance/instance_uart4.h"
    399400/*@}*/
     401#endif /* __rtems__ */
    400402
    401403/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/samv71/samv71n21.h

    re1eeb883 rc354fac  
    342342/*@}*/
    343343
     344#ifndef __rtems__
    344345/* ************************************************************************** */
    345346/*   REGISTER ACCESS DEFINITIONS FOR SAMV71N21 */
     
    398399#include "instance/instance_uart4.h"
    399400/*@}*/
     401#endif /* __rtems__ */
    400402
    401403/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/samv71/samv71q19.h

    re1eeb883 rc354fac  
    362362/*@}*/
    363363
     364#ifndef __rtems__
    364365/* ************************************************************************** */
    365366/*   REGISTER ACCESS DEFINITIONS FOR SAMV71Q19 */
     
    424425#include "instance/instance_uart4.h"
    425426/*@}*/
     427#endif /* __rtems__ */
    426428
    427429/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/samv71/samv71q20.h

    re1eeb883 rc354fac  
    362362/*@}*/
    363363
     364#ifndef __rtems__
    364365/* ************************************************************************** */
    365366/*   REGISTER ACCESS DEFINITIONS FOR SAMV71Q20 */
     
    424425#include "instance/instance_uart4.h"
    425426/*@}*/
     427#endif /* __rtems__ */
    426428
    427429/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/samv71/samv71q21.h

    re1eeb883 rc354fac  
    366366/*@}*/
    367367
     368#ifndef __rtems__
    368369/* ************************************************************************** */
    369370/*   REGISTER ACCESS DEFINITIONS FOR SAMV71Q21 */
     
    428429#include "instance/instance_uart4.h"
    429430/*@}*/
     431#endif /* __rtems__ */
    430432
    431433/* ************************************************************************** */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/include/xdmac.h

    re1eeb883 rc354fac  
    7575#include "chip.h"
    7676
     77#ifndef __rtems__
    7778#include <../../../../utils/utility.h>
     79#endif /* __rtems__ */
    7880#include <stdint.h>
    7981
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/source/mcan.c

    re1eeb883 rc354fac  
    3939 *        Headers
    4040 *----------------------------------------------------------------------------*/
     41#ifndef __rtems__
    4142#include "board.h"
     43#endif /* __rtems__ */
    4244#include "chip.h"
    4345#include "mcan_config.h"
     
    423425 *---------------------------------------------------------------------------*/
    424426
     427#ifndef __rtems__
    425428static const Pin pinsMcan0[] =  {PIN_MCAN0_TXD, PIN_MCAN0_RXD };
    426429static const Pin pinsMcan1[] =  {PIN_MCAN1_TXD, PIN_MCAN1_RXD };
     430#endif /* __rtems__ */
    427431
    428432static uint32_t can0MsgRam[MCAN0_STD_FLTS_WRDS +
     
    549553
    550554        if (MCAN0 ==  mcan) {
     555#ifndef __rtems__
    551556                PIO_Configure(pinsMcan0, PIO_LISTSIZE(pinsMcan0));
     557#endif /* __rtems__ */
    552558                // Enable MCAN peripheral clock
    553559                PMC_EnablePeripheral(ID_MCAN0);
     
    558564                mCanLine0Irq = MCAN0_IRQn;
    559565        } else if (MCAN1 ==  mcan) {
     566#ifndef __rtems__
    560567                PIO_Configure(pinsMcan1, PIO_LISTSIZE(pinsMcan1));
     568#endif /* __rtems__ */
    561569                // Enable MCAN peripheral clock
    562570                PMC_EnablePeripheral(ID_MCAN1);
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/source/qspi_dma.c

    re1eeb883 rc354fac  
    4848
    4949#include "chip.h"
     50#ifdef __rtems__
     51#include "../../../utils/utility.h"
     52#endif /* __rtems__ */
    5053
    5154/*----------------------------------------------------------------------------
     
    556559                chanNum =  pQspidma->TxChNum;
    557560                SCB_CleanDCache_by_Addr((uint32_t *)pBuffer->pDataTx, pBuffer->TxDataSize);
    558         } else if (ReadWrite == ReadAccess)
     561        } else {
     562                if (ReadWrite != ReadAccess)
     563                        TRACE_ERROR("%s QSPI Access Error\n\r", __FUNCTION__);
    559564                chanNum =  pQspidma->RxChNum;
    560         else
    561                 TRACE_ERROR("%s QSPI Access Error\n\r", __FUNCTION__);
     565        }
    562566
    563567        /* Start DMA 0(RX) && 1(TX) */
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/source/tc.c

    re1eeb883 rc354fac  
    7171 *-----------------------------------------------------------------------------*/
    7272
     73#ifndef __rtems__
    7374#include "board.h"
     75#else /* __rtems__ */
     76#include <chip.h>
     77#endif /* __rtems__ */
    7478
    7579#include <assert.h>
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/source/usart.c

    re1eeb883 rc354fac  
    6969        BaudError = 10;
    7070        OverSamp = 0;
     71#ifdef __rtems__
     72        CD = 0;
     73        FP = 0;
     74#endif /* __rtems__ */
    7175
    7276        /*Asynchronous*/
  • c/src/lib/libbsp/arm/atsam/libraries/libchip/source/xdmad.c

    re1eeb883 rc354fac  
    6363
    6464#include "chip.h"
     65#ifdef __rtems__
     66#include "../../../utils/utility.h"
     67#endif /* __rtems__ */
    6568#include <assert.h>
    6669static uint8_t xDmad_Initialized = 0;
Note: See TracChangeset for help on using the changeset viewer.