mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-05 18:21:54 +00:00
Merge branch 'raspi-support' of ssh://git.intern.spaceteamaachen.de:22222/ALPAKA/sta-core into raspi-support
This commit is contained in:
@@ -75,7 +75,7 @@ namespace sta
|
||||
/**
|
||||
* @returns true if the interface has been aquired.
|
||||
*/
|
||||
bool isAquired();
|
||||
bool isAcquired();
|
||||
private:
|
||||
Mutex * mutex_;
|
||||
bool acquired_ = false;
|
||||
|
@@ -8,4 +8,4 @@
|
||||
|
||||
// #define STA_ASSERT_FORCE
|
||||
|
||||
#endif // STA_CONFIG_HPP
|
||||
#endif // STA_CONFIG_HPP
|
||||
|
@@ -3,8 +3,13 @@
|
||||
|
||||
#include <sta/config.hpp>
|
||||
#ifdef STA_PLATFORM_STM32
|
||||
# include <sta/devices/stm32/hal.hpp>
|
||||
# ifdef HAL_ADC_MODULE_ENABLED
|
||||
# define STA_STM32_ADC_ENABLED
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include <sta/devices/stm32/hal.hpp>
|
||||
#if defined(STA_STM32_ADC_ENABLED) || defined(DOXYGEN)
|
||||
|
||||
namespace sta
|
||||
{
|
||||
@@ -34,6 +39,6 @@ namespace sta
|
||||
};
|
||||
} // namespace sta
|
||||
|
||||
#endif // STA_PLATFORM_STM32
|
||||
#endif // STA_STM32_ADC_ENABLED
|
||||
|
||||
#endif // STA_CORE_STM32_ADC_HPP
|
||||
|
@@ -30,7 +30,7 @@ namespace sta
|
||||
void fill(uint8_t value, size_t count) override;
|
||||
private:
|
||||
I2C_HandleTypeDef * handle_;
|
||||
const uint32_t timeout_ = HAL_MAX_DELAY;
|
||||
const uint32_t timeout_ = 1000;
|
||||
};
|
||||
|
||||
class STM32I2CDevice : public I2CDevice
|
||||
|
Reference in New Issue
Block a user