Beta Draft: 2016-07-12
To access any device from the preconfigured peripheral list, the following permission is required:
jdk.dio.DeviceMgmtPermission(%Name%:%ID%);
You can find the names and IDs for specific devices in the tables that follow in this appendix. You must also specify an action. An empty string means open
.
The tables use the following legend:
Device ID: an integer identifier that can be used to open the device with the methods of the DeviceManager
class.
Device Name: the string name of a device that can be used to open it by name with the methods of the DeviceManager class
.
Mapped: all hardware-related information regarding a peripheral, such as physical location, mapping, or port. This information enables the user to determine the peripheral's location on a target board.
Configuration: properties that are passed to the specific DeviceConfig
constructor to open the peripheral by ID or name. The configuration can be used to open the peripheral using the DeviceManager
with the appropriate configuration.
The following GPIO pins are preconfigured.
Devicel ID | Device Name | Mapped | Configuration |
---|---|---|---|
1 |
USER_BUTTON GPIO8.11 GPIO0 |
A blue user button marked as B1 on the board |
|
2 |
LED_1 GPIO8.1 GPIO1 |
A green user LED marked as LD1 on the board |
|
Consider the following implementation notes concerning GPIO on the STM 32F746GDISCOVERYboard.
Port | Pin | Arduino Connector Pin |
---|---|---|
0 |
8 |
ARD_D5 |
0 |
15 |
ARD_D3 |
1 |
4 |
ARD_D3 |
6 |
6 |
ARD_D2 |
6 |
7 |
ARD_D4 |
7 |
6 |
ARD_D6 |
8 |
1 |
ARD_D13 or USER GREEN LED |
8 |
2 |
ARD_D8 |
8 |
3 |
ARD_D7 |
8 |
11 |
USER BUTTON |
Device shared mode is not supported.
Unassigned controllerNumber
is treated as 6.
Unassigned pinNumber
is treated as 6.
Unassigned driveMode
is PULL_DOWN
for input pins and OPEN_DRAIN
for output pins.
Device ID | Device Name | Mapped | Configuration |
---|---|---|---|
1100 |
WDG WATCHDOG0 |
WatchdogTimer |
Please note the following items about ADC on the STM 32F746GDISCOVERY.
The board supports sampling intervals (in µs):
1.1
2.0
3.0
5.0
7.1
9.2
11.6
36.4
SPI is supported on the STM 32F746GDISCOVERY. No SPI devices are preconfigured because there are no on-board SPI devices.
Consider the following implementation notes concerning SPI on the STM 32F746GDISCOVERY board.
Only one SPI bus is supported with controllerNumber = 2
or DeviceConfig.UNASSIGNED
.
SPI pins are mapped as follows.
SPI Line | Hardware Pins |
---|---|
MOSI | ARD_D11 or PB15 |
MISO | ARD_D12 or PB14 |
SCK | ARD_D13 or PI1 |
SS, CS, or NSS | ARD_D5 |
Only address 0 is supported.
clockFrequency.UNASSIGNED
is treated as 10MHz.
Supported wordLength
are only 8bit and 16bit. wordLength.UNASSIGNED
is treated as 8.
Only BIG_ENDIAN
and LITTLE_ENDIAN
ordering are supported. UNASSIGNED
bit ordering is treated as BIG_ENDIAN
.
Device ID | Device Name | Mapped | Configuration |
---|---|---|---|
200 |
ARD_UNO_I2C I2C1.29 I2C0 |
I2C pins on Arduino UNO connector or D14 and D15 pins on STM32F746G-DISCOSTM 32F746GDISCOVERY board |
|
Please note the following items about I2C on the STM 32F746GDISCOVERY.
Only one I2C bus is supported. It is SDA and SCL pins that are present in Arduino UNO connector on a board.
The controllerNumber
can be set to 1. If DeviceConfig.UNASSIGNED
is set to controllerNumber
, it is treated as 1.
Both address sizes I2CDeviceConfig.ADDR_SIZE_7
and I2CDeviceConfig.ADDR_SIZE_10
are supported. DeviceConfig.UNASSIGNED
is treated as I2CDeviceConfig.ADDR_SIZE_7
.
The value of DeviceConfig.DEFAULT
when applied to the addressSize
is 7.
The clockFrequency
can be set to 100 000 and 400 000. DeviceConfig.UNASSIGNED
is treated as 100 000.
The following UART devices are preconfigured:
Device ID | Device Name | Mapped | Configuration |
---|---|---|---|
100 |
USART6 UART0 |
USART pins mapped to ARD_D0 and ARD_D1 pins |
|
Please note the following items about UART on the STM 32F746GDISCOVERY.
Only two UART controllers are supported on the STM 32F746GDISCOVERY device.
UART with controller name USART6 is mapped to ARD_D0 and ARD_D1 pins on the Arduino connector.
UART with controller name USART1 is connected to ST-LINK embedded dongle and visible on host computer after connecting the board and installing ST-LINKv2 device drivers. This port can also be used for the device logging and can not be opened by application in such case.
PARITY_MARK
and PARITY_SPACE
are not supported.
Software and hardware flow control types are not supported.