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

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
bsp.h
Go to the documentation of this file.
1
9/*
10 * Copyright (c) 2008-2014 embedded brains GmbH. All rights reserved.
11 *
12 * embedded brains GmbH
13 * Dornierstr. 4
14 * 82178 Puchheim
15 * Germany
16 * <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.org/license/LICENSE.
21 */
22
23#ifndef LIBBSP_ARM_LPC24XX_BSP_H
24#define LIBBSP_ARM_LPC24XX_BSP_H
25
36#include <bspopts.h>
37
38#define BSP_FEATURE_IRQ_EXTENSION
39
40#define LPC24XX_PCLK (LPC24XX_CCLK / LPC24XX_PCLKDIV)
41
42#define LPC24XX_EMCCLK (LPC24XX_CCLK / LPC24XX_EMCCLKDIV)
43
44#define LPC24XX_MPU_REGION_COUNT 8
45
46#define BSP_ARMV7M_IRQ_PRIORITY_DEFAULT (29 << 3)
47
48#define BSP_ARMV7M_SYSTICK_PRIORITY (30 << 3)
49
50#define BSP_ARMV7M_SYSTICK_FREQUENCY LPC24XX_CCLK
51
52#ifndef ASM
53
54#include <rtems.h>
55
56#include <bsp/default-initial-extension.h>
57
58#ifdef __cplusplus
59extern "C" {
60#endif /* __cplusplus */
61
62struct rtems_bsdnet_ifconfig;
63
64struct rtems_termios_device_context;
65
69int lpc_eth_attach_detach(
70 struct rtems_bsdnet_ifconfig *config,
71 int attaching
72);
73
77#define RTEMS_BSP_NETWORK_DRIVER_ATTACH lpc_eth_attach_detach
78
82#define RTEMS_BSP_NETWORK_DRIVER_NAME "eth0"
83
104void *bsp_idle_thread(uintptr_t ignored);
105
106#ifdef ARM_MULTILIB_ARCH_V4
107 #define BSP_CONSOLE_UART_BASE 0xe000c000
108#else
109 #define BSP_CONSOLE_UART_BASE 0x4000c000
110#endif
111
112void bsp_restart(void *addr);
113
114bool lpc24xx_uart_probe_1(struct rtems_termios_device_context *context);
115
116bool lpc24xx_uart_probe_2(struct rtems_termios_device_context *context);
117
118bool lpc24xx_uart_probe_3(struct rtems_termios_device_context *context);
119
120#ifdef __cplusplus
121}
122#endif /* __cplusplus */
123
124#endif /* ASM */
125
128#endif /* LIBBSP_ARM_LPC24XX_BSP_H */
default-initial-extension.h
DEFAULT_INITIAL_EXTENSION Support.
bsp_idle_thread
void * bsp_idle_thread(uintptr_t ignored)
Optimized idle task.
Definition: bspidle.c:26
lpc_eth_attach_detach
int lpc_eth_attach_detach(struct rtems_bsdnet_ifconfig *config, int attaching)
Network driver attach and detach function.
Definition: lpc-ethernet.c:1827
rtems.h
config_s
Definition: deflate.c:115
rtems_termios_device_context
Termios device context.
Definition: termiostypes.h:75