source: rtems/c/src/lib/libbsp/arm/atsam/include/atsam-spi.h @ 62e1e0ff

5
Last change on this file since 62e1e0ff was 62e1e0ff, checked in by Sebastian Huber <sebastian.huber@…>, on 12/14/16 at 06:37:49

bsp/atsam: Simplify SPI initialization

  • Property mode set to 100644
File size: 746 bytes
Line 
1/*
2 * Copyright (c) 2016 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <info@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#ifndef LIBBSP_ARM_ATSAM_ATSAM_SPI_H
16#define LIBBSP_ARM_ATSAM_ATSAM_SPI_H
17
18#include <libchip/chip.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif /* __cplusplus */
23
24int spi_bus_register_atsam(
25  const char *bus_path,
26  uint8_t     spi_peripheral_id,
27  Spi        *spi_regs,
28  const Pin  *pins,
29  size_t      pin_count
30);
31
32#ifdef __cplusplus
33}
34#endif /* __cplusplus */
35
36#endif /* LIBBSP_ARM_ATSAM_ATSAM_SPI_H */
Note: See TracBrowser for help on using the repository browser.