summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/altera-cyclone-v/README
blob: 658fe772554d07fff691a7acb46b14a1f52121c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Overview
--------
Evaluation board for this BSP: 
- Cyclone V SoC FPGA Development Kit
- DK-DEV-5CSXC6N/ES-0L

RTC
---
The evaluation board contains a DS1339C RTC connected to I2C0. To use it you
have to set the following options:

  #define CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER
  #define CONFIGURE_BSP_PREREQUISITE_DRIVERS I2C_DRIVER_TABLE_ENTRY

Additional there has to be one free file descriptor to access the i2c. Set the
CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS accordingly.

Network
-------
The default PHY address can be overwritten by the application. To do this, the
drv_ctrl pointer of the rtems_bsdnet_ifconfig structure should point to a
dwmac_ifconfig_drv_ctrl object with the appropriate settings before the
rtems_bsdnet_initialize_network() is called. E.g.:

  #include <libchip/dwmac.h>
  #include <bsp.h>

  static dwmac_ifconfig_drv_ctrl drv_ctrl = {
    .phy_addr = 1
  };

  ...

  static struct rtems_bsdnet_ifconfig some_ifconfig = {
    .name = RTEMS_BSP_NETWORK_DRIVER_NAME,
    .attach = RTEMS_BSP_NETWORK_DRIVER_ATTACH,
    .drv_ctrl = &drv_ctrl
  };

  ...

  rtems_bsdnet_initialize_network();

If drv_ctrl is the NULL pointer, default values will be used instead.