mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-12 01:25:59 +00:00
Last clean-up; removed config.hpp
This commit is contained in:
parent
3259a98f11
commit
34c92626a1
@ -26,9 +26,9 @@ namespace sta
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
I2C * intf_;
|
I2C * intf_;
|
||||||
int address_; /**< device address */
|
int address_; /**< device address */
|
||||||
int master_;
|
int master_; /**< is the mcu the master? */
|
||||||
int blocking_;
|
int blocking_; /**< blocking or non-blocking transmits / receives */
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace sta
|
} // namespace sta
|
||||||
|
@ -24,8 +24,9 @@ namespace sta
|
|||||||
/**
|
/**
|
||||||
* @brief Specify the mode of communication via the bus.
|
* @brief Specify the mode of communication via the bus.
|
||||||
*
|
*
|
||||||
* @param master
|
* @param address The peripheral's address to communicate with.
|
||||||
* @param blocking
|
* @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);
|
void setSettings(uint16_t address, bool master, bool blocking);
|
||||||
|
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
|
|
||||||
namespace sta
|
namespace sta
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
enum class UARTMode
|
enum class UARTMode
|
||||||
{
|
{
|
||||||
RX,
|
RX,
|
||||||
|
@ -9,6 +9,10 @@ namespace sta
|
|||||||
class UART : public Interface
|
class UART : public Interface
|
||||||
{
|
{
|
||||||
public:
|
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);
|
UART(UARTSettings & settings, Mutex * mutex=nullptr);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user