RTEMS  5.0.0
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 
57 
58 #ifdef __cplusplus
59 extern "C" {
60 #endif /* __cplusplus */
61 
62 struct rtems_bsdnet_ifconfig;
63 
65 
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 
104 void *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 
112 void bsp_restart(void *addr);
113 
114 bool lpc24xx_uart_probe_1(struct rtems_termios_device_context *context);
115 
116 bool lpc24xx_uart_probe_2(struct rtems_termios_device_context *context);
117 
118 bool 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 */
Definition: deflate.c:115
Termios device context.
Definition: termiostypes.h:75
int lpc_eth_attach_detach(struct rtems_bsdnet_ifconfig *config, int attaching)
Network driver attach and detach function.
Definition: lpc-ethernet.c:1827
DEFAULT_INITIAL_EXTENSION Support.
void * bsp_idle_thread(uintptr_t ignored)
Optimized idle task.
Definition: bspidle.c:26
unsigned context
Definition: tlb.h:108
void bsp_restart(const void *addr)
Restarts the bsp with "addr" address.
Definition: restart.c:25