18 Commits

Author SHA1 Message Date
djbyrne17
9fbf5800ab
Update Spi component to return a status on device access (#4452)
* Update Spi component to return a status on device access

* Format LinuxSpiDriver files and update comments from TODO to DEPRECATED

* Add assertions to LinuxSpiDriver

* Add assertions to LinuxSpiDriver

---------

Co-authored-by: djbyrne <djbyrne@jpl.nasa.gov>
2025-12-02 10:42:06 -08:00
Thomas Boyer-Chammard
e17d42a9ff
Format Drv module (#3960)
* Format Drv module

* Add Drv to format CI check

* Fix double // in include path
2025-07-31 15:49:45 -07:00
Thomas Boyer-Chammard
0a9c057013
Switch Fw::Buffer size to FwSizeType instead of U32 (#3802)
* Switch Fw::Buffer size to FwSizeType instead of U32

* Fix LinuxUartDriver

* Fix bufferRepeater size usage

* Add Linux Drv static casts and checks

* Address review comments

* Ahhh !!!! C++ formatting ! It's starting...
2025-06-26 09:37:54 -07:00
M Starch
292476b0c0
Purge PlatformIntType and PlatformUIntType (#3719)
* Purging PlatformIntType and PlatformUIntType

* CI fixes

* Fixing review requirements

* Fix CI error

* Fix CI cmake test regression

* Fix RHEL8 regression
2025-06-16 17:44:24 -07:00
Mishaal
e05067ac43
PRIVATE->private and PROTECTED->protected updates in Drv (#3446) (#3658) 2025-05-27 19:58:02 -07:00
M Starch
6ddf665cfe
Fixes #3204 by removing NATIVE_ and POINTER_CAST from Drv (#3380)
* Fixes #3204 by removing NATIVE_ and POINTER_CAST from Drv

* Fix CI checks
2025-03-14 16:56:16 -07:00
Justine West
e13d0303b1
Add final to component impl classes (#3292) 2025-02-28 15:05:15 -08:00
M Starch
a5c853b9cf
NATIVE_INT_TYPE portNum to FwIndexType portNum (#3236) 2025-02-14 12:25:12 -08:00
M Starch
a049743e07
Removing component init() functions where unneeded (#2893)
* Removing component init() functions where unneeded

* Removing spurious assert
2024-09-23 18:39:00 -07:00
mohitsingh999
be4088dfa2
Add SPI Mode Enum to LinuxSpiDriver (#2097)
* Add SPI Mode Enum to LinuxSpiDriver

SPI Modes specify the clock polarity for each transaction. The default Fprime LinuxSpiDriver assumed SPI Mode 0. This should be generalized to account for SPI devices with different clock polarity and phases.

* Add default spiMode parameter value, assert check to ensure SPI Mode is in range

* Use switch statement to set SPI Mode when opening SPI Device

* Force-fail assert and print SPI Mode for invalid SPI modes

* Redefined SpiMode enum variables, added missing break statements

* Update SpiMode enum comments for each variable
2023-07-10 11:54:11 -07:00
Joshua Anderson
1b9c785ce6
Remove void from parameterless functions (#811) 2021-07-14 12:54:01 -07:00
Joshua Anderson
3cccd731d9
Refactor FW_OBJECT_NAMES switches and fix building without object names
Instead of adding the name argument to a constructor when FW_OBJECT_NAMES
is enabled, always supply a name argument.

Add a marco that conditionally sets the name to "" if FW_OBJECT_NAMES is not set.
This cleans up a lot of the conditional compilation switches that weren't being tested
and would silently break, while still stripping the strings from the binary.
2020-10-07 17:19:05 -07:00
Michael D Starch
136af07edd mstarch: more header cleaning for issue: #189 2019-04-18 14:12:02 -07:00
Timothy Canham
a041a15991 More NASA merge fixes 2018-08-10 21:08:35 -07:00
Timothy Canham
f57d0cf315 Merge with NASA repo 2018-08-10 20:53:04 -07:00
Timothy Canham
5c6808d2b8 Updated driver open calls 2018-03-15 20:30:05 -07:00
Gene Merewether
9be5862744 Add Linux device drivers 2018-02-26 08:56:31 -08:00
Gene Merewether
5ed2caf80f Add Linux UART, GPIO, SPI drivers 2018-02-26 10:53:14 -08:00