Crate nrf52840dk

source ·
Expand description

Tock kernel for the Nordic Semiconductor nRF52840 development kit (DK).

It is based on nRF52840 SoC (Cortex M4 core with a BLE transceiver) with many exported I/O and peripherals.

§Pin Configuration

§GPIO

#PinIxHeaderArduino
0P1.0133P3 1D0
1P1.0234P3 2D1
2P1.0335P3 3D2
3P1.0436P3 4D3
4P1.0537P3 5D4
5P1.0638P3 6D5
6P1.0739P3 7D6
7P1.0840P3 8D7
8P1.1042P4 1D8
9P1.1143P4 2D9
10P1.1244P4 3D10
11P1.1345P4 4D11
12P1.1446P4 5D12
13P1.1547P4 6D13
14P0.2626P4 9D14
15P0.2727P4 10D15

§GPIO / Analog Inputs

#PinHeaderArduino
16P0.03 AIN1P2 1A0
17P0.04 AIN2P2 2A1
18P0.28 AIN4P2 3A2
19P0.29 AIN5P2 4A3
20P0.30 AIN6P2 5A4
21P0.31 AIN7P2 6A5
22P0.02 AIN0P4 8AVDD

§Onboard Functions

PinHeaderFunction
P0.05P6 3UART RTS
P0.06P6 4UART TXD
P0.07P6 5UART CTS
P0.08P6 6UART RXT
P0.11P24 1Button 1
P0.12P24 2Button 2
P0.13P24 3LED 1
P0.14P24 4LED 2
P0.15P24 5LED 3
P0.16P24 6LED 4
P0.18P24 8Reset
P0.19P24 9SPI CLK
P0.20P24 10SPI MOSI
P0.21P24 11SPI MISO
P0.22P24 12SPI CS
P0.24P24 14Button 3
P0.25P24 15Button 4
P0.26P24 16I2C SDA
P0.27P24 17I2C SCL

Modules§

  • Debug Writer

Structs§

  • Supported drivers by the platform

Constants§

Statics§

Functions§

  • main
    Main function called after RAM initialized.
  • This is in a separate, inline(never) function so that its stack frame is removed when this function returns. Otherwise, the stack space used for these static_inits is wasted.

Type Aliases§