mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-10 16:55:58 +00:00
Last clean-up; removed config.hpp
This commit is contained in:
parent
3259a98f11
commit
34c92626a1
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
@ -5,8 +5,6 @@
|
||||
|
||||
namespace sta
|
||||
{
|
||||
|
||||
|
||||
enum class UARTMode
|
||||
{
|
||||
RX,
|
||||
|
@ -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);
|
||||
|
||||
/**
|
||||
|
@ -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