RTEMS  5.0.0
sc16is752.h
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_SC16IS752_H
16 #define LIBBSP_ARM_ATSAM_SC16IS752_H
17 
18 #include <libchip/chip.h>
19 
20 #include <dev/serial/sc16is752.h>
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif /* __cplusplus */
25 
26 typedef struct {
28  Pin irq_pin;
30 
53 int atsam_sc16is752_spi_create(
55  const char *device_path,
56  sc16is752_mode mode,
57  uint32_t input_frequency,
58  const char *spi_path,
59  uint8_t spi_chip_select,
60  uint32_t spi_speed_hz,
61  const Pin *irq_pin
62 );
63 
64 #ifdef __cplusplus
65 }
66 #endif /* __cplusplus */
67 
68 #endif /* LIBBSP_ARM_ATSAM_SC16IS752_H */
Definition: pio.h:172
SC16IS752 SPI context.
Definition: sc16is752.h:170
Definition: sc16is752.h:26