RTEMS
5.0.0-m2006-2
bsps
arm
atsam
include
bsp
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 <
rtems/irq-extension.h
>
19
#include <libchip/chip.h>
20
21
#include <dev/serial/sc16is752.h>
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
/* __cplusplus */
26
27
typedef
struct
{
28
sc16is752_spi_context
base;
29
Pin
irq_pin;
30
rtems_interrupt_server_entry
irqs_entry;
/* Internal. Don't touch. */
31
rtems_interrupt_server_action
irqs_action;
/* Internal. Don't touch. */
32
}
atsam_sc16is752_spi_context
;
33
56
int
atsam_sc16is752_spi_create(
57
atsam_sc16is752_spi_context
*ctx,
58
const
char
*device_path,
59
sc16is752_mode mode,
60
uint32_t input_frequency,
61
const
char
*spi_path,
62
uint8_t spi_chip_select,
63
uint32_t spi_speed_hz,
64
const
Pin
*irq_pin
65
);
66
67
#ifdef __cplusplus
68
}
69
#endif
/* __cplusplus */
70
71
#endif
/* LIBBSP_ARM_ATSAM_SC16IS752_H */
rtems_interrupt_server_entry
An interrupt server entry.
Definition:
irq-extension.h:273
_Pin
Definition:
pio.h:172
sc16is752_spi_context
SC16IS752 SPI context.
Definition:
sc16is752.h:181
irq-extension.h
Header file for the Interrupt Manager Extension.
atsam_sc16is752_spi_context
Definition:
sc16is752.h:27
rtems_interrupt_server_action
An interrupt server action.
Definition:
irq-extension.h:251
Generated by
1.8.15