Stub HAL port for host-side unit testing. More...
#include "spp/hal/hal.h"#include "spp/core/returnTypes.h"#include "spp/core/types.h"#include <stdint.h>#include <sys/time.h>Go to the source code of this file.
Variables | |
| const SPP_HalPort_t | g_stubHalPort |
Stub HAL port for host-side unit testing.
All SPI, GPIO, UART, and storage functions return K_SPP_OK without doing any real hardware access. This allows the full SPP service layer to be exercised on a development machine without an attached MCU.
Definition in file halStub.c.
|
static |
Definition at line 21 of file halStub.c.
References K_SPP_OK, and SPP_PORTS_HAL_STUB_spiBusInit().
Referenced by SPP_PORTS_HAL_STUB_spiBusInit().
|
static |
Definition at line 22 of file halStub.c.
References SPP_PORTS_HAL_STUB_spiGetHandle().
Referenced by SPP_PORTS_HAL_STUB_spiGetHandle().
|
static |
Definition at line 23 of file halStub.c.
References K_SPP_OK, and SPP_PORTS_HAL_STUB_spiDeviceInit().
Referenced by SPP_PORTS_HAL_STUB_spiDeviceInit().
|
static |
Definition at line 24 of file halStub.c.
References K_SPP_OK, and SPP_PORTS_HAL_STUB_spiTransmit().
Referenced by SPP_PORTS_HAL_STUB_spiTransmit().
|
static |
Definition at line 29 of file halStub.c.
References K_SPP_OK, and SPP_PORTS_HAL_STUB_spiDeviceSetSpeed().
Referenced by SPP_PORTS_HAL_STUB_spiDeviceSetSpeed().
|
static |
Definition at line 35 of file halStub.c.
References K_SPP_OK, and SPP_PORTS_HAL_STUB_gpioConfigInterrupt().
Referenced by SPP_PORTS_HAL_STUB_gpioConfigInterrupt().
|
static |
Definition at line 40 of file halStub.c.
References K_SPP_OK, and SPP_PORTS_HAL_STUB_gpioRegisterIsr().
Referenced by SPP_PORTS_HAL_STUB_gpioRegisterIsr().
|
static |
Definition at line 42 of file halStub.c.
References K_SPP_OK, and SPP_PORTS_HAL_STUB_storageInit().
Referenced by SPP_PORTS_HAL_STUB_storageInit().
|
static |
Definition at line 43 of file halStub.c.
References K_SPP_OK, and SPP_PORTS_HAL_STUB_storageWrite().
Referenced by SPP_PORTS_HAL_STUB_storageWrite().
|
static |
Definition at line 49 of file halStub.c.
References SPP_PORTS_HAL_STUB_getTimeMs().
Referenced by SPP_PORTS_HAL_STUB_getTimeMs().
|
static |
Definition at line 56 of file halStub.c.
References SPP_PORTS_HAL_STUB_delayMs().
Referenced by SPP_PORTS_HAL_STUB_delayMs().
|
static |
Definition at line 58 of file halStub.c.
References K_SPP_OK, and SPP_PORTS_HAL_STUB_uartPortInit().
Referenced by SPP_PORTS_HAL_STUB_uartPortInit().
|
static |
Definition at line 59 of file halStub.c.
References K_SPP_OK, and SPP_PORTS_HAL_STUB_uartTransmit().
Referenced by SPP_PORTS_HAL_STUB_uartTransmit().
|
static |
Definition at line 60 of file halStub.c.
References K_SPP_OK, and SPP_PORTS_HAL_STUB_uartRead().
Referenced by SPP_PORTS_HAL_STUB_uartRead().
| const SPP_HalPort_t g_stubHalPort |