RTEMS: bsps/arm/atsam/include/bsp.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
bsp.h
Go to the documentation of this file.
1
7/*
8 * Copyright (c) 2016 embedded brains GmbH. All rights reserved.
9 *
10 * embedded brains GmbH
11 * Dornierstr. 4
12 * 82178 Puchheim
13 * Germany
14 * <rtems@embedded-brains.de>
15 *
16 * The license and distribution terms for this file may be
17 * found in the file LICENSE in this distribution or at
18 * http://www.rtems.org/license/LICENSE.
19 */
20
21#ifndef LIBBSP_ARM_ATSAM_BSP_H
22#define LIBBSP_ARM_ATSAM_BSP_H
23
34#include <bspopts.h>
35#include <bsp/default-initial-extension.h>
36#include <sys/ioccom.h>
37
38#include <rtems.h>
39
40#ifdef __cplusplus
41extern "C" {
42#endif /* __cplusplus */
43
44#define BSP_FEATURE_IRQ_EXTENSION
45
46#define BSP_ARMV7M_IRQ_PRIORITY_DEFAULT (13 << 4)
47
48#define BSP_ARMV7M_SYSTICK_PRIORITY (14 << 4)
49
50uint32_t atsam_systick_frequency(void);
51
52#define BSP_ARMV7M_SYSTICK_FREQUENCY atsam_systick_frequency()
53
54struct rtems_bsdnet_ifconfig;
55
56int if_atsam_attach(struct rtems_bsdnet_ifconfig *config, int attaching);
57
58#define RTEMS_BSP_NETWORK_DRIVER_NAME "atsam0"
59
60#define RTEMS_BSP_NETWORK_DRIVER_ATTACH if_atsam_attach
61
65 typedef struct {
69 uint32_t mdio_retries;
70
76 uint8_t phy_addr;
77} if_atsam_config;
78
79extern char atsam_memory_dtcm_begin[];
80extern char atsam_memory_dtcm_end[];
81extern char atsam_memory_dtcm_size[];
82
83extern char atsam_memory_intflash_begin[];
84extern char atsam_memory_intflash_end[];
85extern char atsam_memory_intflash_size[];
86
87extern char atsam_memory_intsram_begin[];
88extern char atsam_memory_intsram_end[];
89extern char atsam_memory_intsram_size[];
90
91extern char atsam_memory_itcm_begin[];
92extern char atsam_memory_itcm_end[];
93extern char atsam_memory_itcm_size[];
94
95extern char atsam_memory_nocache_begin[];
96extern char atsam_memory_nocache_end[];
97extern char atsam_memory_nocache_size[];
98
99extern char atsam_memory_qspiflash_begin[];
100extern char atsam_memory_qspiflash_end[];
101extern char atsam_memory_qspiflash_size[];
102
103extern char atsam_memory_sdram_begin[];
104extern char atsam_memory_sdram_end[];
105extern char atsam_memory_sdram_size[];
106
107void atsam_rtc_get_time(rtems_time_of_day *tod);
108
109
110
111void bsp_restart( const void *const addr );
112
113/*
114 * This ioctl enables the receive DMA for an UART. The DMA can be usefull if you
115 * loose characters in high interrupt load situations.
116 *
117 * Disabling the DMA again is only possible by closing all file descriptors of
118 * that UART.
119 *
120 * Note that every UART needs one DMA channel and the system has only a limited
121 * amount of DMAs. So only use it if you need it.
122 */
123#define ATSAM_UART_ENABLE_RX_DMA _IO('d', 0)
124
125#ifdef __cplusplus
126}
127#endif /* __cplusplus */
128
131#endif /* LIBBSP_ARM_ATSAM_BSP_H */
default-initial-extension.h
DEFAULT_INITIAL_EXTENSION Support.
rtems.h
config_s
Definition: deflate.c:115
if_atsam_config
Interface driver configuration.
Definition: bsp.h:65
if_atsam_config::phy_addr
uint8_t phy_addr
Address of PHY.
Definition: bsp.h:76
if_atsam_config::mdio_retries
uint32_t mdio_retries
Maximum retries for MDIO communication.
Definition: bsp.h:69
rtems_time_of_day
Data structure to manage and manipulate calendar time.
Definition: types.h:141