Commit Graph

145 Commits

Author SHA1 Message Date
Robin Müller 5ddac36314
GPIO update 2022-03-07 16:07:01 +01:00
Robin Müller d6c1041133
Merge remote-tracking branch 'upstream/development' into eive/develop 2022-03-07 15:34:11 +01:00
Steffen Gaisser 7db11588b4 Merge branch 'development' into gaisser_compiler_flags 2022-03-07 14:39:01 +01:00
Robin Müller ac036b2a70
Merge remote-tracking branch 'origin/eive/develop' into mueller/gpio-hal-updates 2022-02-28 15:49:11 +01:00
Robin Müller 2fed161eff
Merge branch 'eive/develop' into mueller/gpio-hal-updates 2022-02-28 15:34:48 +01:00
Steffen Gaisser 68ca6fd122 Merge branch 'development' into gaisser_compiler_flags 2022-02-28 15:29:57 +01:00
Robin Müller 27267b7cb0
Merge remote-tracking branch 'upstream/development' into mueller/gpio-hal-updates 2022-02-28 15:21:39 +01:00
Robin Müller 68225586d2 some fixes 2022-02-28 15:16:43 +01:00
Robin Müller cf45eca100
Merge remote-tracking branch 'upstream/development' into mueller/dev-printout-runtime-configurable 2022-02-28 15:00:38 +01:00
Robin Müller 331aa9442d
some updates 2022-02-28 14:56:37 +01:00
Robin Müller afd3a942e2
use enum class 2022-02-28 14:46:12 +01:00
Steffen Gaisser f6357b4531 WIP compiler Flags and new unit tests for fixes 2022-02-23 18:23:22 +01:00
Robin Müller 2e230daa14 additional comment 2022-02-22 18:59:50 +01:00
Robin Müller e909c6b6f7 Merge branch 'mueller/spi-update-clock-polarity' into mueller/master 2022-02-22 18:59:06 +01:00
Robin Müller d88d7c938f update spi clock polarity
- Perform an empty SPI transfer after setting speed and mode
2022-02-22 18:58:20 +01:00
Robin Müller aebd4817b8
periodic printouts are runtime configurable now 2022-02-22 11:33:41 +01:00
Robin Müller 6739890d53
add i2c wiretapping option 2022-02-22 11:19:49 +01:00
Robin Müller 1e982ec00b
updated for windows compatibility 2022-02-22 11:00:39 +01:00
Robin Müller 701135e2a6
applied clang format 2022-02-22 10:17:56 +01:00
Robin Müller c4a055986c
Merge remote-tracking branch 'origin/eive/develop' into mueller/master 2022-02-21 10:37:53 +01:00
Robin Müller d74a373f1d
make periodic printout run time configurable 2022-02-19 16:41:30 +01:00
Robin Müller 0d6d44f72f Merge remote-tracking branch 'upstream/development' into mueller/master 2022-02-15 17:08:29 +01:00
Ulrich Mohr 9e958e752e applied clang format 2022-02-14 14:54:20 +01:00
Jakob Meier 120750f22a removed one fclose 2022-02-14 08:51:53 +01:00
Jakob Meier 9897f51307 added flose and changed warning message to error message 2022-02-14 08:43:10 +01:00
Jakob Meier 018d814f29 adapt to develop 2022-02-05 17:12:42 +01:00
Jakob Meier c0648a789b merged develop 2022-02-05 17:07:06 +01:00
Jakob Meier 9579e94a71 option to exclude libgpiod from build 2022-02-05 16:09:23 +01:00
Jakob Meier 235fd79dfb added missing baudrates 2022-02-05 16:08:28 +01:00
Robin Müller 1b41153ee6
add uio subdirectory 2022-02-04 10:16:37 +01:00
Robin Müller b3aee76d91
fixes for event definitoons for parser 2022-02-03 17:06:18 +01:00
Robin Müller b3151a0ba0
added i2c wiretapping 2022-02-03 13:37:28 +01:00
Robin Müller 8f95b03e6a
fixes warning for good 2022-02-03 11:13:26 +01:00
Jakob Meier f08d291e3e fix to remove compiler warning 2022-02-03 11:07:51 +01:00
Jakob Meier 348274c145 merged develop 2022-02-03 10:31:15 +01:00
Jakob Meier 40329a33b2 prepared for proper pr 2022-02-03 10:19:33 +01:00
Jakob Meier 2d52042ed6 add uio subdir 2022-02-03 10:16:06 +01:00
Jakob Meier 79936a3335 uio mapper 2022-02-03 10:14:47 +01:00
Robin Müller 22cd38fffd
this should work for c++11 2022-02-02 20:05:46 +01:00
Robin Müller 8030d9ac1b
this fixes the warning 2022-02-02 19:47:58 +01:00
Robin Müller 992c05df56
added cpp printout preprocessor guards 2022-02-02 17:52:09 +01:00
Robin Müller 33386550cf
add uio subdir 2022-02-02 12:17:42 +01:00
Robin Müller 3a65c0db91
use C++ casts 2022-02-02 12:13:42 +01:00
Robin Müller 783176848a
include fixes 2022-02-02 12:10:39 +01:00
Robin Müller d8c5bd125e
All EIVE changes 2022-02-02 12:02:58 +01:00
Robin Müller ddcac2bbac
reapply clang format 2022-02-02 10:29:30 +01:00
Robin Müller 371ff931bf
Linux CommandExecutor
The CommandExecutor helper class can execute shell commands in blocking and non-blocking mode
This class is able to execute processes by using the Linux popen call. It also has the capability of writing
the read output of a process into a provided ring buffer.

The executor works by first loading the command which should be executed and specifying whether
it should be executed blocking or non-blocking. After that, execution can be started with the execute call.

Using non-blocking mode allows to execute commands which might take a longer time in the background,
and allowing the user thread to check completion status with the check function

Moved to HAL like requested in code review and unit tested with failing commands as well.
Also, Linux HAL components are compiled by default now unless explicitely disabled.
2022-01-26 12:11:52 +01:00
Robin Müller 6d5eb5b387
Op Divider and bitutility updates
- Added unittests for `PeriodicOperationDivider` and the `bitutil` helpers
- Some API changes: Removed redundant bit part, because these functions are already in a namespace
- Some bugfixes for `PeriodicOperationDivider`
2021-11-10 18:48:02 +01:00
Robin Müller 7c855592d0 more cleaning up 2021-10-27 18:12:56 +02:00
Robin Müller cb7399b999 msp init improvements 2021-10-27 18:12:46 +02:00
Robin Müller d675621b73 grouping CS gpio definition 2021-10-27 17:32:21 +02:00
Robin Müller 3448a8c01b SPI ComIF updates
1. Make setting a chip select pin optional
2. Make ComIF member functions public
2021-10-27 17:32:13 +02:00
Ulrich Mohr 5d31a54fba Merge pull request 'small bugfix for LIS3 handler' (#504) from eive/fsfw:mueller/lis3-small-bugfix into development
Reviewed-on: fsfw/fsfw#504
2021-10-15 17:20:55 +02:00
Robin Müller cae3feb5da
Add feature to open GPIO by line name
This features was provided by Jakob Meier as part of
#19 .

It adds the feature to open GPIOs supplying their line names.
2021-10-11 19:55:37 +02:00
Robin Müller c46bde417e
small bugfix for LIS3 handler 2021-10-11 19:37:23 +02:00
Robin Müller 358ee0fbf2 removed C++14 featue 2021-09-28 15:47:12 +02:00
Robin Müller 4f08b2d342 removed include 2021-09-28 15:47:01 +02:00
Ulrich Mohr 6e88f8f400 Merge pull request 'Added missing devicehandlers' (#482) from eive/fsfw:mueller/added-missing-devicehandlers into development
Reviewed-on: fsfw/fsfw#482
2021-09-27 15:27:27 +02:00
Ulrich Mohr 01762ad222 Merge pull request 'SPI Updates for Linux' (#480) from eive/fsfw:mueller/spi-fix into development
Reviewed-on: fsfw/fsfw#480
2021-09-27 15:21:15 +02:00
Robin Müller 4c96db847d Merge branch 'development' into mueller/gpio-update 2021-09-27 09:54:10 +02:00
Robin Müller 0246dccbe9 Merge remote-tracking branch 'upstream/development' into mueller/spi-fix 2021-09-27 09:52:49 +02:00
Robin Müller 423f7c8281
missing include and printer compatbility fixes 2021-09-26 22:45:32 +02:00
Robin Müller a84e60a37a
Added missing devicehandlers
These devicehandlers were missing from the last PR
2021-09-26 22:22:55 +02:00
Robin Müller a37b6184fc
fix dataset sizes 2021-09-25 16:40:22 +02:00
Jakob Meier f6b03dee6a removed unused variable switchId from GyroL3GD20Handler class 2021-09-24 12:11:12 +02:00
Robin Müller f2bc374f0f
Device handler updates 2021-09-23 18:12:59 +02:00
Robin Müller bfae25ff2d
Updates for SPI
1. Better names for functions
2. Reply size is set to 0
2021-09-23 18:06:04 +02:00
Robin Müller ea3812fbbd Merge branch 'development' into mueller/gpio-update 2021-09-23 18:00:31 +02:00
Robin Müller f40f783cb4
GPIO code update
Adds capability to define GPIO by label and by chip
for Linux systems
2021-09-23 17:58:44 +02:00
Robin Müller 7c21980ece Merge branch 'development' into mueller/hal-spi-improvement 2021-09-16 11:05:14 +02:00
Robin Müller a6e4eb9ad4 improvements for L3GD20H device handler 2021-09-15 17:18:47 +02:00
Robin Müller e5db64cbb9 set transfer size to 0, better name 2021-09-15 17:15:18 +02:00
Robin Müller 0e0989db95 Merge branch 'development' into mueller/unix-file-guard-fix 2021-09-13 14:54:09 +02:00
Robin Müller c42eb59d2e
UART bugfixes and improvements 2021-09-08 16:10:18 +02:00
Robin Müller 98e3ed897c
small tweak 2021-08-19 17:17:19 +02:00
Robin Müller b6aebb3061
format adapted 2021-08-19 17:08:35 +02:00
Robin Müller 845c00044e
printout fixes for UnixFileGuard 2021-08-18 11:27:39 +02:00
Robin Müller 62873c3118
UartComIF check iter validity 2021-08-09 15:37:12 +02:00
Robin Müller 90a1571707
Linux HAL updates
1. The type correction was merged as part of
   #7 in the
   EIVE project. Quotation of PR

definition of getSpiParameters is `void getSpiParameters(spi::SpiModes& spiMode, uint32_t& spiSpeed, UncommonParameters* parameters = nullptr) const;`.

Here, size_t spiSpeed is passed, which implicitely gets converted to a temporary, which can not be bound to uint32_t& and, at least in gcc 9.3.0, leads to a compiler error.

2. Allow flushing the UART buffers
2021-08-06 11:23:31 +02:00
Robin Müller c3fbe04fc6
all include corrections 2021-08-02 20:58:56 +02:00
Robin Müller f1f167c2d1
using _ instead of - now 2021-08-02 20:55:03 +02:00
Robin Müller dee063e259 Merge branch 'mueller/master' of https://egit.irs.uni-stuttgart.de/fsfw/fsfw into mueller/master 2021-08-02 15:47:49 +02:00
Robin Müller aabc729e77
include changes 2021-08-02 15:47:12 +02:00
Robin Müller c0591c3d24
renamed some folders 2021-08-02 15:31:13 +02:00
Robin Müller e1f92b3da4
various fixes and improvements 2021-07-30 13:47:29 +02:00
Robin Müller d47906e833
trying to fuse header / inc 2021-07-19 16:25:51 +02:00
Robin Müller a65a184083
not an ideal solution but works for now 2021-07-16 12:22:14 +02:00
Robin Müller aafccd191e
correction in dma.cpp 2021-07-15 19:27:13 +02:00
Robin Müller 1db5c950b8
stm32h7 include corrections 2021-07-15 19:23:12 +02:00
Robin Müller d11e54dc0a
some more fixes 2021-07-15 19:06:40 +02:00
Robin Müller 3c364604ac
target name replaced 2021-07-15 18:59:47 +02:00
Robin Müller e2da68795b
hal integration done 2021-07-15 18:53:59 +02:00
Robin Müller 243cf42dc4
added hal subfolder 2021-07-15 18:43:16 +02:00
Robin Müller 936d0e9f0c
a lot of internal include replacements 2021-07-13 20:22:54 +02:00
Robin Müller ca297a7dcd
added hal folder 2021-07-13 19:19:25 +02:00