devboard/

directory
v0.13.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2025 License: BSD-3-Clause

README

Support for STM32 development boards

Supported boards

az3166

MXCHIP Azure IoT DevKit: EMW3166 (STM32F412RG + BCM43362 + 2MB QSPI Flash)

AZ3166

devebox-h743

DevEBox STM32H743: (STM32H743VIT6 + 8MB QSPI Flash W25Q64JVSIQ)

DevEBox STM32H743

emw3162

MXCHIP EMW3162: (STM32F205RGT6 + BCM43362)

EMW3162

f4-discovery

ST STM32F4-Discovery

STM32F4-Discovery

minipro-f405

STM32_MiNi_Pro: (STM32F405RGT6 + 2MB SPI Flash W25Q16JVSIQ + USB to UART/RESET/BOOT0 CH340C)

minipro-f405

nucleo-l476rg

ST NUCLEO-L476RG

NUCLEO-L476RG

nucleo-l496zg

ST NUCLEO-L496ZG

NUCLEO-L496ZG

Directory structure

Every supported board has its directory here. Each of them contains three subdirectories:

board

The board directory contains Go packages that provide the interface to the peripherals available on the board such as buttons, LEDs, etc. There is also an init package that imported configures the whole system for typical usage. Usually you don't need to import it explicitly because any other package in the board directory imports init itself to ensure proper operation.

doc

The doc directory may contain documentation, diagrams, photos and other useful resources.

examples

The examples directory contains simple programs that demonstrate how to use the available Go packages to work with the board and various external peripherals connected to it.

Directories

Path Synopsis
az3166
examples/blinky command
This example shows the basic usage of available LEDs.
This example shows the basic usage of available LEDs.
devebox-h743
examples/blinky command
examples/dma command
examples/fputest command
This program tests the thread scheduler according to saving/restoring a floating-point context.
This program tests the thread scheduler according to saving/restoring a floating-point context.
examples/usart command
emw3162
examples/blinky command
This example shows the basic usage of available LEDs.
This example shows the basic usage of available LEDs.
examples/dma command
This example tests different ways of coping memory.
This example tests different ways of coping memory.
examples/spi command
SPI loop test: wire PB14 and PB15 together.
SPI loop test: wire PB14 and PB15 together.
f4-discovery
examples/accel command
examples/blinky command
This example shows the basic usage of available LEDs and button.
This example shows the basic usage of available LEDs and button.
examples/display command
Display draws on the connected display.
Display draws on the connected display.
examples/dma command
This example tests different ways of coping memory.
This example tests different ways of coping memory.
examples/espat command
Espat is an ESP-AT based TCP echo server.
Espat is an ESP-AT based TCP echo server.
examples/espnet command
Espnet is an ESP-AT based TCP echo server.
Espnet is an ESP-AT based TCP echo server.
examples/gctest command
This example forces the garbage collector to work hard and periodically prints statistics of the memory allocator.
This example forces the garbage collector to work hard and periodically prints statistics of the memory allocator.
examples/guncon command
Guncon reads the state of PS1 Namco GunCon (G-Con).
Guncon reads the state of PS1 Namco GunCon (G-Con).
examples/irqbtn command
This example shows how to handle the push-button with interrupts and with the software debouncing done right.
This example shows how to handle the push-button with interrupts and with the software debouncing done right.
examples/onewire command
Onewire uses broadcast addressing mode to efficiently start the temperature conversion on all DS18x2x sensors on the 1-Wire bus simultaneously.
Onewire uses broadcast addressing mode to efficiently start the temperature conversion on all DS18x2x sensors on the 1-Wire bus simultaneously.
examples/spi command
SPI loop test: wire PB14 and PB15 together.
SPI loop test: wire PB14 and PB15 together.
examples/usart command
minipro-f405
examples/blinky command
This example shows the basic usage of available LEDs and button.
This example shows the basic usage of available LEDs and button.
examples/helloworld command
The helloworld program prints text in a loop to the standard output.
The helloworld program prints text in a loop to the standard output.
examples/relay command
nucleo-l476rg
examples/blinky command
This example shows the basic usage of the available LED and button.
This example shows the basic usage of the available LED and button.
examples/dma command
Dma tests different ways of coping memory.
Dma tests different ways of coping memory.
examples/espat command
Espat is an ESP-AT based TCP echo server.
Espat is an ESP-AT based TCP echo server.
examples/espn command
Espn is ESP-AT based TCP echo server.
Espn is ESP-AT based TCP echo server.
examples/generator command
Generator implements a square wave generator using an STM32 timer.
Generator implements a square wave generator using an STM32 timer.
examples/goroutines command
This example runs two goroutines that set on/off the user LED concurently.
This example runs two goroutines that set on/off the user LED concurently.
examples/irqbtn command
This example shows how to handle the push-button with interrupts and with the software debouncing done right.
This example shows how to handle the push-button with interrupts and with the software debouncing done right.
examples/pwm command
PWM uses timer to implement PWM blinking of the onboard LED.
PWM uses timer to implement PWM blinking of the onboard LED.
examples/reboot command
Reboot shows the way to perform unsafe reboot of the ST32L746 MCU.
Reboot shows the way to perform unsafe reboot of the ST32L746 MCU.
examples/rtc command
examples/shell command
Shell shows how to use the Embedded Go virtual filesystem.
Shell shows how to use the Embedded Go virtual filesystem.
examples/spi command
SPI loop test: wire PA6 and PA7 together.
SPI loop test: wire PA6 and PA7 together.
examples/upsexti command
Upsexti uses EXTI to detect changes in the button state.
Upsexti uses EXTI to detect changes in the button state.
examples/upstim command
Upstime uses a timer to detect changes in the button state.
Upstime uses a timer to detect changes in the button state.
examples/usart command
This example tests the USART1 interface.
This example tests the USART1 interface.
nucleo-l496zg
examples/blinky command
This example shows the basic usage of available LEDs and button.
This example shows the basic usage of available LEDs and button.
examples/dma command
This example tests different ways of coping memory.
This example tests different ways of coping memory.
examples/gctest command
This example forces the garbage collector to work hard and periodically prints statistics of the memory allocator.
This example forces the garbage collector to work hard and periodically prints statistics of the memory allocator.
examples/irqbtn command
This example shows how to handle the push-button with interrupts and with the software debouncing done right.
This example shows how to handle the push-button with interrupts and with the software debouncing done right.
examples/spi command
SPI loop test: wire PA6 and PA7 together.
SPI loop test: wire PA6 and PA7 together.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL