source: rtems/c/src/lib/libbsp/arm/raspberrypi/configure.ac @ 78c9fe8

5
Last change on this file since 78c9fe8 was 7aca0fe, checked in by Andre Marques <andre.lousa.marques@…>, on 09/05/15 at 20:53:16

RaspberryPi?: Added I2C and SPI bus support.

Further documentation can be found in

https://devel.rtems.org/wiki/GSoC/2015/RaspberryPi_peripherals_and_SD_card

and test data (including sample user applications, device drivers and wiring schemes) can be found in

https://github.com/asuol/RTEMS_rpi_testing

  • Property mode set to 100644
File size: 1.4 KB
Line 
1##
2#
3# @file
4#
5# @brief Configure script of LibBSP for the Raspberry Pi boards.
6#
7
8AC_PREREQ([2.68])
9AC_INIT([rtems-c-src-lib-libbsp-arm-raspberrypi],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
10AC_CONFIG_SRCDIR([bsp_specs])
11RTEMS_TOP(../../../../../..)
12
13RTEMS_CANONICAL_TARGET_CPU
14AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])
15RTEMS_BSP_CONFIGURE
16
17RTEMS_PROG_CC_FOR_TARGET
18RTEMS_CANONICALIZE_TOOLS
19RTEMS_PROG_CCAS
20
21RTEMS_CHECK_NETWORKING
22AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
23
24RTEMS_BSPOPTS_SET([BSP_START_RESET_VECTOR],[*],[])
25RTEMS_BSPOPTS_HELP([BSP_START_RESET_VECTOR],[reset vector address for BSP start])
26
27RTEMS_BSPOPTS_SET([I2C_IO_MODE],[*],[1])
28RTEMS_BSPOPTS_HELP([I2C_IO_MODE],[Define to 1 to use interrupt-driven I/O with the Raspberry Pi I2C bus. If defined to other value the access will be polled-driven.])
29
30RTEMS_BSPOPTS_SET([SPI_IO_MODE],[*],[1])
31RTEMS_BSPOPTS_HELP([SPI_IO_MODE],[Define to 1 to use interrupt-driven I/O with the Raspberry Pi SPI bus. If defined to other value the access will be polled-driven.])
32
33# Is this a Raspberry Pi 2?
34RTEMS_BSPOPTS_SET([BSP_IS_RPI2],[raspberrypi2],[1])
35RTEMS_BSPOPTS_SET([BSP_IS_RPI2],[*],[0])
36RTEMS_BSPOPTS_HELP([BSP_IS_RPI2],[Set if the BSP variant is Raspberry Pi 2.])
37AM_CONDITIONAL(RTEMS_RPI2,[test "$BSP_IS_RPI2" = "1"])
38
39RTEMS_BSP_CLEANUP_OPTIONS(0, 0)
40RTEMS_BSP_LINKCMDS
41
42AC_CONFIG_FILES([Makefile])
43AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.