Fork of Tangara with customizations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
tangara-fw/test/fixtures/spi_fixture.hpp

16 lines
298 B

/*
* Copyright 2023 jacqueline <me@jacqueline.id.au>
*
* SPDX-License-Identifier: GPL-3.0-only
*/
#pragma once
#include "catch2/catch.hpp"
#include "spi.hpp"
class SpiFixture {
public:
SpiFixture() { REQUIRE(drivers::init_spi() == ESP_OK); }
~SpiFixture() { drivers::deinit_spi(); }
};