4.115
Last change
on this file since 2174c66 was
dbb3211a,
checked in by Sebastian Huber <sebastian.huber@…>, on 12/22/10 at 14:21:03
|
2010-12-22 Sebastian Huber <sebastian.huber@…>
- configure.ac: Added I2C options. Fixed eMIOS prescaler. Use
standard linker command file support.
- include/bsp.h: Declare I2C initialization function.
- i2c/i2c_init.c: Implementation.
- make/custom/gwlcfm.cfg, make/custom/mpc5566evb.cfg,
make/custom/mpc55xx.inc: Use standard linker command file support.
- startup/bspstart.c: More board specific settings.
- Makefile.am, preinstall.am: Reflect changes above.
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup mpc55xx |
---|
5 | * |
---|
6 | * @brief Global BSP variables and functions |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Copyright (c) 2008 |
---|
11 | * Embedded Brains GmbH |
---|
12 | * Obere Lagerstr. 30 |
---|
13 | * D-82178 Puchheim |
---|
14 | * Germany |
---|
15 | * rtems@embedded-brains.de |
---|
16 | * |
---|
17 | * The license and distribution terms for this file may be found in the file |
---|
18 | * LICENSE in this distribution or at http://www.rtems.com/license/LICENSE. |
---|
19 | */ |
---|
20 | |
---|
21 | #ifndef LIBBSP_POWERPC_MPC55XXEVB_BSP_H |
---|
22 | #define LIBBSP_POWERPC_MPC55XXEVB_BSP_H |
---|
23 | |
---|
24 | #include <stdint.h> |
---|
25 | |
---|
26 | #include <rtems.h> |
---|
27 | #include <rtems/console.h> |
---|
28 | #include <rtems/clockdrv.h> |
---|
29 | |
---|
30 | #include <bspopts.h> |
---|
31 | |
---|
32 | #include <bsp/tictac.h> |
---|
33 | |
---|
34 | #ifdef __cplusplus |
---|
35 | extern "C" { |
---|
36 | #endif /* __cplusplus */ |
---|
37 | |
---|
38 | #define BSP_SMALL_MEMORY 1 |
---|
39 | |
---|
40 | #ifndef ASM |
---|
41 | |
---|
42 | /** @brief System clock frequency */ |
---|
43 | extern unsigned int bsp_clock_speed; |
---|
44 | |
---|
45 | /** @brief Time base clicks per micro second */ |
---|
46 | extern uint32_t bsp_clicks_per_usec; |
---|
47 | |
---|
48 | /** @brief Convert Decrementer ticks to microseconds */ |
---|
49 | #define BSP_Convert_decrementer( _value ) \ |
---|
50 | (((unsigned long long) (_value)) / ((unsigned long long)bsp_clicks_per_usec)) |
---|
51 | |
---|
52 | rtems_status_code mpc55xx_sd_card_init( bool mount); |
---|
53 | |
---|
54 | /* Network driver configuration */ |
---|
55 | |
---|
56 | struct rtems_bsdnet_ifconfig; |
---|
57 | |
---|
58 | int smsc9218i_attach_detach( |
---|
59 | struct rtems_bsdnet_ifconfig *config, |
---|
60 | int attaching |
---|
61 | ); |
---|
62 | |
---|
63 | #define RTEMS_BSP_NETWORK_DRIVER_ATTACH smsc9218i_attach_detach |
---|
64 | |
---|
65 | #define RTEMS_BSP_NETWORK_DRIVER_NAME "eth0" |
---|
66 | |
---|
67 | rtems_status_code bsp_register_i2c(void); |
---|
68 | |
---|
69 | #endif /* ASM */ |
---|
70 | |
---|
71 | #ifdef __cplusplus |
---|
72 | } |
---|
73 | #endif /* __cplusplus */ |
---|
74 | |
---|
75 | #endif /* LIBBSP_POWERPC_MPC55XXEVB_BSP_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.