Last clean-up; removed config.hpp

This commit is contained in:
dario 2023-08-20 17:55:40 +02:00
parent 3259a98f11
commit 34c92626a1
5 changed files with 10 additions and 19 deletions

View File

@ -26,9 +26,9 @@ namespace sta
private:
I2C * intf_;
int address_; /**< device address */
int master_;
int blocking_;
int address_; /**< device address */
int master_; /**< is the mcu the master? */
int blocking_; /**< blocking or non-blocking transmits / receives */
};
} // namespace sta

View File

@ -24,8 +24,9 @@ namespace sta
/**
* @brief Specify the mode of communication via the bus.
*
* @param master
* @param blocking
* @param address The peripheral's address to communicate with.
* @param master Whether the mcu is a master or slave.
* @param blocking Whether to use blocking or non-blocking transmits / receives.
*/
void setSettings(uint16_t address, bool master, bool blocking);

View File

@ -5,8 +5,6 @@
namespace sta
{
enum class UARTMode
{
RX,

View File

@ -9,6 +9,10 @@ namespace sta
class UART : public Interface
{
public:
/**
* @param settings %UART bus settings
* @param mutex Mutex object for managing shared access. Pass nullptr for no access control
*/
UART(UARTSettings & settings, Mutex * mutex=nullptr);
/**

View File

@ -1,12 +0,0 @@
#ifndef STA_CONFIG_HPP
#define STA_CONFIG_HPP
// #include <sta/devices/stm32/mcu/STM32F411xE.hpp>
#include <sta/devices/raspi/mcu/common.hpp>
#define STA_DEBUGGING_ENABLED
#define STA_PRINTF_USE_STDLIB
// #define STA_ASSERT_FORCE
#endif // STA_CONFIG_HPP