24 Commits

Author SHA1 Message Date
bevinduckett
a9e05045da
Add missing cstring includes (#4486)
* Modified the fprime-fpp version for fpp branch

* Fixes for missing includes

* Removed include from Fw/FPrimeBasicTypes.hpp and modified fprime-fpp version

* Fixed files that failed to include cstring header

* Changed string.h to cstring in BufferRepeater.cpp

* Updated formatting in ActivePhaser.cpp & BufferManagerComponentImpl.cpp

* Fixed formatting in FpySequencerStack.cpp & FpySequencerDirectives.cpp
2025-12-02 14:27:10 -08:00
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
Vince Woo
4f381110a1
Fixing LinuxSpiDriver issues; Adding function argument check and completing read-after-write checks (#4137)
* Fixing read-after-write checks for SPI configuration. Adding UT.

* Add assert to validate the read and write buffers are the same size in SpiReadWrite_handler

* Corrected WARNING_LOW -> WARNING_LO

* Fixing event Strings and invalid SpiFrequency

* Reverting changes to LinuxSpiDriverTester

* Removing redundant variable write_clock
2025-09-10 18:26:02 -07: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
M Starch
0659f0940b
Refactored type organization (#3422)
* Refactored type organization

* Creating better configuration/types header hierarchy

* Replace FpConfig type aliases with FPP generated aliases

* Add the aliases to the FPP model

* Config + Type Aliases builds

* Renamed Fw/Types.h,hpp to Fw/FPrimeBasicTypes.h,hpp

* Updating to FPP-a7

* Adding newline

* sp

* Fixing minor nit from review

* Spurious ;

---------

Co-authored-by: Andrei Tumbar <andrei.tumbar@jpl.nasa.gov>
2025-04-03 12:11:36 -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
M Starch
a5c853b9cf
NATIVE_INT_TYPE portNum to FwIndexType portNum (#3236) 2025-02-14 12:25:12 -08:00
M Starch
ad3c2e5fb1
Removing printf from Svc (#3170) 2025-01-29 14:22:22 -08:00
M Starch
5e6d2b37ba
Removing printf family from Ref, Drv, RPI, OS, Utils (#3141)
* Removing printf from Ref compontents

* Removing printf from Drv

* Removing printf from Utils

* Adding Fw::StringUtils::format string format helper

* Using StringUtils::format in SPI driver

* Adding newline to file
2025-01-27 14:23:51 -08:00
M Starch
706fadf966
Removing DEBUG_PRINT like statements. Part of: #1708 (#3140)
* Removing DEBUG_PRINT like statements. Part of: #1708

* Review update: CIRCULAR_DEBUG
2025-01-23 16:11:48 -08:00
Johan Bertrand
7d13cbd8b8
Fix pedantic warnings (#2441)
* Fix macro pedantic warning

* Fixed pedantic warnings
2024-01-04 17:02:36 -08: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
Avi
a9816609ed
Remove unnecessary return; from last line of void function (#1863) 2023-01-25 09:03:51 -08:00
M Starch
14091f63b9
fixing cppcheck detected issues (#1788)
* fixing cppcheck detected issues

* fixing spi casts to use the header type
2022-12-05 09:33:48 -08:00
M Starch
b76d8c9a0c
Update/types refactor as constants (#1623)
* lestarch: adding logical types implementation into Linux/StandardTypes.hpp

* lestarch: removing VxWorks StandardTypes from repository

* updated fprime types for correct compilation with vxworks and baremetal

* lestarch: refactoring types and configuration header w.r.t type design

* lestarch: replacing usages of AssertArg with FwAssertArgType

* lestarch: missspelled configuration

* lestarch: minor compilation fixes

* lestarch: renaming StandardTypes.hpp -> PlatformTypes.hpp

* lestarch: updating PRI tokens

* lestarch: replacing BasicTypes.hpp includes with FpConfig.hpp

* lestarch: UT and compilation fixes for types refactor

* lestarch: sp

* lestarch: fixing RPI issues in PassiveConsoleTextLogger

* lestarch: converting RPI build to debug

* lestarch: removing duplicate config imports

* lestarch: fixing documentation

* lestarch: fixing up multiple definitions and RPI compilation problems

* lestarch: reverting debug build

* lestarch: reverting platform types to class-based constants

* lestarch: reworking basic types

* lestarch: configured types refactor into classes

* lestarch: fixing bugs with static constants in classes

* lestarch: fixing platform types spelling and documentation

* lestarch: adding include guards to types headers

Co-authored-by: Kevin F Ortega <kevin.f.ortega@jpl.nasa.gov>
2022-08-18 13:25:56 -07:00
Joshua Anderson
809d23ac34 Add clang-tidy job to CI 2021-09-21 09:30:05 -07:00
Joshua Anderson
30e43abb9d Various: Convert C style casts to C++ style casts 2021-09-16 15:35:13 -07:00
Joshua Anderson
1b9c785ce6
Remove void from parameterless functions (#811) 2021-07-14 12:54:01 -07:00
M Starch
ec191ae528 mstarch: fixing RPI for new Fw::Buffer 2020-11-12 16:32:30 -08:00
Michael D Starch
136af07edd mstarch: more header cleaning for issue: #189 2019-04-18 14:12:02 -07:00
Timothy Canham
5c6808d2b8 Updated driver open calls 2018-03-15 20:30:05 -07:00
Gene Merewether
5ed2caf80f Add Linux UART, GPIO, SPI drivers 2018-02-26 10:53:14 -08:00