Last change
on this file was
eb36d11,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/25/18 at 13:06:08
|
bsps: Move documentation, etc. files to bsps
This patch is a part of the BSP source reorganization.
Update #3285.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | Overview |
---|
2 | -------- |
---|
3 | Evaluation board for this BSP: |
---|
4 | - Cyclone V SoC FPGA Development Kit |
---|
5 | - DK-DEV-5CSXC6N/ES-0L |
---|
6 | |
---|
7 | RTC |
---|
8 | --- |
---|
9 | The evaluation board contains a DS1339C RTC connected to I2C0. To use it you |
---|
10 | have to set the following options: |
---|
11 | |
---|
12 | #define CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER |
---|
13 | #define CONFIGURE_BSP_PREREQUISITE_DRIVERS I2C_DRIVER_TABLE_ENTRY |
---|
14 | |
---|
15 | Additional there has to be one free file descriptor to access the i2c. Set the |
---|
16 | CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS accordingly. |
---|
17 | |
---|
18 | Network |
---|
19 | ------- |
---|
20 | The default PHY address can be overwritten by the application. To do this, the |
---|
21 | drv_ctrl pointer of the rtems_bsdnet_ifconfig structure should point to a |
---|
22 | dwmac_ifconfig_drv_ctrl object with the appropriate settings before the |
---|
23 | rtems_bsdnet_initialize_network() is called. E.g.: |
---|
24 | |
---|
25 | #include <libchip/dwmac.h> |
---|
26 | #include <bsp.h> |
---|
27 | |
---|
28 | static dwmac_ifconfig_drv_ctrl drv_ctrl = { |
---|
29 | .phy_addr = 1 |
---|
30 | }; |
---|
31 | |
---|
32 | ... |
---|
33 | |
---|
34 | static struct rtems_bsdnet_ifconfig some_ifconfig = { |
---|
35 | .name = RTEMS_BSP_NETWORK_DRIVER_NAME, |
---|
36 | .attach = RTEMS_BSP_NETWORK_DRIVER_ATTACH, |
---|
37 | .drv_ctrl = &drv_ctrl |
---|
38 | }; |
---|
39 | |
---|
40 | ... |
---|
41 | |
---|
42 | rtems_bsdnet_initialize_network(); |
---|
43 | |
---|
44 | If drv_ctrl is the NULL pointer, default values will be used instead. |
---|
Note: See
TracBrowser
for help on using the repository browser.