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/src/drivers/include/spi.hpp

18 lines
303 B

/*
* Copyright 2023 jacqueline <me@jacqueline.id.au>
*
* SPDX-License-Identifier: GPL-3.0-only
*/
#pragma once
#include <mutex>
#include "esp_err.h"
namespace drivers {
esp_err_t init_spi(void);
esp_err_t deinit_spi(void);
std::lock_guard<std::mutex> acquire_spi(void);
} // namespace drivers