zephyr/samples/subsys/ipc/ipm_mcux
Tomasz Bursztyka e18fcbba5a device: Const-ify all device driver instance pointers
Now that device_api attribute is unmodified at runtime, as well as all
the other attributes, it is possible to switch all device driver
instance to be constant.

A coccinelle rule is used for this:

@r_const_dev_1
  disable optional_qualifier
@
@@
-struct device *
+const struct device *

@r_const_dev_2
 disable optional_qualifier
@
@@
-struct device * const
+const struct device *

Fixes #27399

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2020-09-02 13:48:13 +02:00
..
remote device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
src device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
CMakeLists.txt build: Fix usage of hardcoded zephyr.{elf,bin,hex} 2020-08-14 13:33:49 +02:00
prj.conf build: Fix usage of hardcoded zephyr.{elf,bin,hex} 2020-08-14 13:33:49 +02:00
README.rst sample: Add MCUX IPM sample application 2018-05-17 15:07:48 -05:00
sample.yaml sanitycheck: inclusive language 2020-08-27 07:04:07 -04:00

.. _ipm-mcux-sample:

Sample mailbox application
##########################

Overview
********

The :ref:`lpcxpresso54114` board has two core processors (Cortex-M4F
and Cortex-M0+). This sample application uses a mailbox to send messages
from one processor core to the other.

Requirements
************

- :ref:`lpcxpresso54114` board

Building and Running
********************

.. zephyr-app-commands::
   :zephyr-app: samples/subsys/ipc/ipm_mcux
   :board: lpcxpresso54114_m4
   :goals: debug

Open a serial terminal (minicom, putty, etc.) and connect the board with the
following settings:

- Speed: 115200
- Data: 8 bits
- Parity: None
- Stop bits: 1

Reset the board and the following message will appear on the corresponding
serial port:

.. code-block:: console

   ***** Booting Zephyr OS v1.11.0-764-g4e3007a *****
   Hello World from MASTER! arm
   Received: 1
   ...
   Received: 99