mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-03 05:09:03 +00:00
This application continuously reads the file system of the spislv. Each received message will be written to the user in hexadecimal form, and the same received data will be sent back. In this way, the user can test if their spislv driver and hardware setup are working properly before proceeding further. On a master device, using the SPI tool, when sending the message: spi exch -x 4 deadbeef The slave device will output: Slave: 4 Bytes read Value in hex form from /dev/spislv2: de ad be ef Slave: Writing value back to /dev/spislv2
34 lines
1.3 KiB
Makefile
34 lines
1.3 KiB
Makefile
############################################################################
|
|
# apps/examples/spislv_test/Makefile
|
|
#
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
# this work for additional information regarding copyright ownership. The
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
# "License"); you may not use this file except in compliance with the
|
|
# License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
#
|
|
############################################################################
|
|
|
|
include $(APPDIR)/Make.defs
|
|
|
|
# SPI SLAVE TEST built-in application info
|
|
|
|
PROGNAME = $(CONFIG_EXAMPLES_SPISLV_PROGNAME)
|
|
PRIORITY = $(CONFIG_EXAMPLES_SPISLV_PRIORITY)
|
|
STACKSIZE = $(CONFIG_EXAMPLES_SPISLV_STACKSIZE)
|
|
MODULE = $(CONFIG_EXAMPLES_SPISLV)
|
|
|
|
# SPI SLAVE TEST Example
|
|
|
|
MAINSRC = spislv_test.c
|
|
|
|
include $(APPDIR)/Application.mk
|