spismoketest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

README

'spi-testboard' smoke test

Verifies that a EEPROM can be accessed on the SPI port. Typically used with the periph-tester board.

Requires a gpio pin to be tied to the EEPROM's write protect (active low write protect).

Example output running on an Odroid-C1:

# ./periph-smoketest -v spi-testboard -wp 83
20:12:14.447484 Using drivers:
20:12:14.447557 - sysfs-led
20:12:14.447633 - sysfs-thermal
20:12:14.447718 - sysfs-spi
20:12:14.447792 - sysfs-i2c
20:12:14.447862 - sysfs-gpio
20:12:14.447913 Drivers skipped:
20:12:14.447982 - allwinner-gpio: Allwinner CPU not detected
20:12:14.448052 - bcm283x-gpio: bcm283x CPU not detected
20:12:14.448121 - allwinner-gpio-pl: dependency not loaded: "allwinner-gpio"
20:12:14.448191 - chip: dependency not loaded: "allwinner-gpio"
20:12:14.448273 - rpi: dependency not loaded: "bcm283x-gpio"
20:12:14.448342 - pine64: dependency not loaded: "allwinner-gpio-pl"
20:12:14.448771 spi-smoke: random number seed 1479960734448658003
20:12:14.454665 spi-smoke writing&reading EEPROM byte 0xee
20:12:14.468726 spi-smoke writing&reading EEPROM page 0x00c0

Documentation

Overview

Package spismoketest is leveraged by periph-smoketest to verify that an EEPROM device can be accessed on a SPI port.

This assumes the presence of the periph-tester board, which includes these two devices. See https://github.com/tve/periph-tester

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SmokeTest

type SmokeTest struct {
}

SmokeTest is imported by periph-smoketest.

func (*SmokeTest) Description

func (s *SmokeTest) Description() string

Description implements the SmokeTest interface.

func (*SmokeTest) Name

func (s *SmokeTest) Name() string

Name implements the SmokeTest interface.

func (*SmokeTest) Run

func (s *SmokeTest) Run(args []string) error

Run implements the SmokeTest interface.

func (*SmokeTest) String

func (s *SmokeTest) String() string

Jump to

Keyboard shortcuts

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