Private
Public Access
2
0

de10-nano: minor readme update and added to types.hpp

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Mihai Tudor Panu
2017-03-23 16:02:16 -07:00
committed by Brendan Le Foll
parent d2bbfe376d
commit 48fe5cebbb
3 changed files with 21 additions and 12 deletions

View File

@@ -55,7 +55,7 @@ typedef enum {
MRAA_INTEL_GT_TUCHUCK = MRAA_INTEL_JOULE_EXPANSION, // deprecated MRAA_INTEL_GT_TUCHUCK = MRAA_INTEL_JOULE_EXPANSION, // deprecated
#endif #endif
MRAA_PHYBOARD_WEGA = 14, /**< The phyBOARD-Wega */ MRAA_PHYBOARD_WEGA = 14, /**< The phyBOARD-Wega */
MRAA_ALTERA_SOCFPGA = 15, /** < Terasic DE-Nano-SoC Board */ MRAA_ALTERA_SOCFPGA = 15, /**< Terasic DE-Nano-SoC Board */
// USB platform extenders start at 256 // USB platform extenders start at 256
MRAA_FTDI_FT4222 = 256, /**< FTDI FT4222 USB to i2c bridge */ MRAA_FTDI_FT4222 = 256, /**< FTDI FT4222 USB to i2c bridge */

View File

@@ -53,6 +53,7 @@ typedef enum {
INTEL_UP = 12, /**< The UP Board */ INTEL_UP = 12, /**< The UP Board */
INTEL_JOULE_EXPANSION = 13, /**< The Intel Joule Expansion Board */ INTEL_JOULE_EXPANSION = 13, /**< The Intel Joule Expansion Board */
PHYBOARD_WEGA = 14, /**< The phyBOARD-Wega */ PHYBOARD_WEGA = 14, /**< The phyBOARD-Wega */
MRAA_ALTERA_SOCFPGA = 15, /**< Terasic DE-Nano-SoC Board */
FTDI_FT4222 = 256, /**< FTDI FT4222 USB to i2c bridge */ FTDI_FT4222 = 256, /**< FTDI FT4222 USB to i2c bridge */

View File

@@ -14,18 +14,18 @@ applications.
Board Support Board Support
------------- -------------
Terasic DE10-Nano * Terasic DE10-Nano
Terasic DE0-Nano-SoC * Terasic DE0-Nano-SoC
Protocol Notes Protocol Notes
--------------- ---------------
**GPIO** Fully supported through sysfs (both FPGA + HPC). Mmap not yet supported. Static map. * **GPIO** Fully supported through sysfs (both FPGA + HPC). Mmap not yet supported. Static map.
**PWM** Currently not supported. * **PWM** Currently not supported.
**I2C** Fully supported with i2cdev. Default bus 2 is exposed on Arduino header, 3 buses total. * **I2C** Fully supported with i2cdev. Default bus 2 is exposed on Arduino header, 3 buses total.
**SPI** Supported with spidev on Arduino header. * **SPI** Supported with spidev on Arduino header.
**UART** Working, default bus is on Arduino header. Console also accessible as `ttyS0` in raw mode. * **UART** Working, default bus is on Arduino header. Console also accessible as `ttyS0` in raw mode.
**ADC** Currently not supported. * **ADC** Currently not supported.
No muxes available for multi-function pins yet (e.g. you won't be able to use D0 & D1 on Arduino No muxes available for multi-function pins yet (e.g. you won't be able to use D0 & D1 on Arduino
header as GPIOs). header as GPIOs).
@@ -70,7 +70,7 @@ Pin Mapping
| 30 | A4 | JP6-5 | AIO | | 30 | A4 | JP6-5 | AIO |
| 31 | A5 | JP6-6 | AIO | | 31 | A5 | JP6-6 | AIO |
** GPIO0 (JP1) Side Header ** **GPIO0 (JP1) Side Header**
| MRAA Number | Board Pin | Function | | MRAA Number | Board Pin | Function |
|-------------|-----------|----------| |-------------|-----------|----------|
@@ -88,7 +88,7 @@ Pin Mapping
| ... | ... | GPIO | | ... | ... | GPIO |
| 71 | JP1-40 | GPIO | | 71 | JP1-40 | GPIO |
** GPIO1 (JP7) Side Header ** **GPIO1 (JP7) Side Header**
| MRAA Number | Board Pin | Function | | MRAA Number | Board Pin | Function |
|-------------|-----------|----------| |-------------|-----------|----------|
@@ -106,7 +106,7 @@ Pin Mapping
| ... | ... | GPIO | | ... | ... | GPIO |
| 111 | JP7-40 | GPIO | | 111 | JP7-40 | GPIO |
** Switches, Buttons, LEDs ** **Switches, Buttons, LEDs**
These are already in use by kernel drivers with the default image, except for KEY0 and KEY1. These are already in use by kernel drivers with the default image, except for KEY0 and KEY1.
To use them with MRAA remove them from the device tree. To use them with MRAA remove them from the device tree.
@@ -143,3 +143,11 @@ echo ff203000.gpio >/sys/bus/platform/drivers/altera_gpio/bind
| 125 | HPS_KEY | GPIO | | 125 | HPS_KEY | GPIO |
| 126 | KEY0 | GPIO | | 126 | KEY0 | GPIO |
| 127 | KEY1 | GPIO | | 127 | KEY1 | GPIO |
**Built-in ADXL345**
Exposed on I2C bus 0. To use you will have to unbind the device driver first:
```sh
echo 0-0053 > /sys/bus/i2c/drivers/adxl34x/unbind
```