Page MenuHomec4science

dma_memory_mapping_sbcp.c
No OneTemporary

File Metadata

Created
Sun, Nov 3, 16:29

dma_memory_mapping_sbcp.c

/*
* dma_memory_mapping_sbcp.c
*
* Copyright (c) Alexandre Tuleu
* EPFL Biorobotics Laboratory (http://biorob.epfl.ch)
* EPFL Ecole Polytechnique Federale de Lausanne (http://www.epfl.ch)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
/**
* \file dma_memory_mapping_sbcp.c
* \author Alexandre Tuleu
* Implementation of the DMA memory mapping for the SBCP protocol, see file
* dma_memory_mapping_sbcp.h for more details.
*
*/
#include "dma_memory_mapping_sbcp.h"
unsigned int dma_sbcp_bus_rx_buffers[512] __attribute__((address(0x4400),space(dma)));
#ifdef SBCP_IS_MASTER
unsigned int dma_usb_rx_buffers[512] __attribute__((space(dma)));
#elif defined(SBCP_IS_SLAVE)
unsigned int dma_sbcp_bus_tx_buffer[DMA_SBCP_MAX_PACKET_SIZE] __attribute__((space(dma)));
unsigned int dma_sbcp_bus_tx_ll_buffer[32] __attribute__((space(dma)));
unsigned int dma_sbcp_bus_tx_ll_error_buffer[7] __attribute__((space(dma)));
#endif

Event Timeline