} skip_test_t;
static skip_test_t skip_test_list[] = {
+ {"test_peripheral_io_spi_peripheral_spi_set_bit_order_p2", "rpi4"},
{"test_peripheral_io_spi_peripheral_spi_set_bit_order_p2", "rpi3"}
};
{
g_feature = feature;
- if (strcmp(model, "rpi3") != 0 && strcmp(model, "artik") != 0)
+ if (strcmp(model, "rpi3") != 0 && strcmp(model, "rpi4") != 0 && strcmp(model, "artik") != 0)
return PERIPHERAL_ERROR_NO_DEVICE;
bus = __find_stub_driver();
{
g_feature = feature;
- if ((!strcmp(model, "rpi3")) || (!strcmp(model, "artik"))) {
+ if (!strcmp(model, "rpi3") || !strcmp(model, "rpi4") || !strcmp(model, "artik")) {
chip = PWM_CHIP;
pin = PWM_PIN;
} else {
#include "test_peripheral_spi.h"
#define SPI_BUS_RPI3 0
+#define SPI_BUS_RPI4 0
#define SPI_BUS_ARTIK530 2
#define SPI_BUS_INVALID -99
#define SPI_CS 0
if (!strcmp(model, "rpi3"))
bus = SPI_BUS_RPI3;
+ else if (!strcmp(model, "rpi4"))
+ bus = SPI_BUS_RPI4;
else if (!strcmp(model, "artik"))
bus = SPI_BUS_ARTIK530;
else
#include "test_peripheral_uart.h"
#define UART_PORT_RPI3 0
+#define UART_PORT_RPI4 0
#define UART_PORT_ARTIK530 4
#define UART_PORT_INVALID -99
#define UART_BUFFER_LEN 10
if (!strcmp(model, "rpi3"))
port = UART_PORT_RPI3;
+ else if (!strcmp(model, "rpi4"))
+ port = UART_PORT_RPI4;
else if (!strcmp(model, "artik"))
port = UART_PORT_ARTIK530;
else