Skip to content

Commit

Permalink
Merge branch 'nasa:devel' into fix/enum_representation_types
Browse files Browse the repository at this point in the history
  • Loading branch information
JackNWhite authored Jan 8, 2024
2 parents 3dca853 + 7d13cbd commit a90d406
Show file tree
Hide file tree
Showing 59 changed files with 391 additions and 563 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ on:
jobs:
macOS-Framework:
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: "Checkout F´ Repository"
uses: actions/checkout@v4
Expand All @@ -29,6 +30,9 @@ jobs:
- uses: ./.github/actions/setup
- name: F prime CI step
run: ./ci/tests/Framework.bash
env:
# Limit to 2 jobs to avoid resource exhaustion (https://github.com/nasa/fprime/issues/2462)
JOBS: 2
# Archive the outputs
- name: 'Archive Logs'
uses: actions/upload-artifact@v3
Expand All @@ -40,6 +44,7 @@ jobs:

macOS-Ref:
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: "Checkout F´ Repository"
uses: actions/checkout@v4
Expand All @@ -49,6 +54,8 @@ jobs:
- uses: ./.github/actions/setup
- name: F prime CI step
run: ./ci/tests/Ref.bash
env:
JOBS: 2
# Archive the outputs
- name: 'Archive Logs'
uses: actions/upload-artifact@v3
Expand All @@ -60,6 +67,7 @@ jobs:

macOS-Integration:
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: "Checkout F´ Repository"
uses: actions/checkout@v4
Expand All @@ -71,6 +79,8 @@ jobs:
run: brew install coreutils
- name: F prime CI step
run: ./ci/tests/30-ints.bash
env:
JOBS: 2
# Archive the outputs
- name: 'Archive Logs'
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pip-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runner: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion Autocoders/Python/src/fprime_ac/utils/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import subprocess

FALLBACK_VERSION = "v3.4.0" # Keep up-to-date on release tag
FALLBACK_VERSION = "v3.4.1" # Keep up-to-date on release tag


def get_version_str(working_dir, fallback=FALLBACK_VERSION):
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ add_compile_options(
-Wall
-Wextra
-Werror
# -pedantic
$<$<COMPILE_LANGUAGE:CXX>:-Wold-style-cast>
-Wno-unused-parameter
)
Expand Down
2 changes: 1 addition & 1 deletion Drv/Interfaces/ByteStreamDriverInterface.fppi
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
output port $recv: Drv.ByteStreamRecv

@ Port invoked to send data out the driver
guarded input port send: Drv.ByteStreamSend
guarded input port $send: Drv.ByteStreamSend
2 changes: 1 addition & 1 deletion Drv/Ip/SocketReadTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ void SocketReadTask::readTask(void* pointer) {
(status == SOCK_SUCCESS || status == SOCK_INTERRUPTED_TRY_AGAIN || self->m_reconnect));
self->getSocketHandler().shutdown(); // Shutdown the port entirely
}
}; // namespace Drv
} // namespace Drv
2 changes: 1 addition & 1 deletion Drv/Ip/SocketReadTask.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,5 @@ class SocketReadTask {
bool m_stop; //!< Stops the task when set to true

};
};
}
#endif // DRV_SOCKETREADTASK_HPP
6 changes: 3 additions & 3 deletions Drv/LinuxGpioDriver/LinuxGpioDriverComponentImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#include <fcntl.h>
#include <poll.h>

//#define DEBUG_PRINT(x,...) printf(x,##__VA_ARGS__); fflush(stdout)
#define DEBUG_PRINT(x,...)
//#define DEBUG_PRINT(...) printf(##__VA_ARGS__); fflush(stdout)
#define DEBUG_PRINT(...)

namespace Drv {

Expand Down Expand Up @@ -375,7 +375,7 @@ namespace Drv {
// Read is only taking 22 usecs each time, so it is not blocking for long
if (fdset[0].revents & POLLPRI) {

char *buf[MAX_BUF];
char buf[MAX_BUF];
(void) lseek(fdset[0].fd, 0, SEEK_SET); // Must seek back to the starting
if(read(fdset[0].fd, buf, MAX_BUF) > 0) {
DEBUG_PRINT("\npoll() GPIO interrupt occurred w/ value: %c\n", buf[0]);
Expand Down
36 changes: 17 additions & 19 deletions Drv/LinuxI2cDriver/LinuxI2cDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,25 +174,23 @@ namespace Drv {
Fw::Logger::logMsg("I2c addr: 0x%02X\n",addr);
#endif

struct i2c_msg rdwr_msgs[2] = {
{ // Start address
.addr = static_cast<U16>(addr),
.flags = 0, // write
.len = static_cast<U16>(writeBuffer.getSize()),
.buf = writeBuffer.getData()
},
{ // Read buffer
.addr = static_cast<U16>(addr),
.flags = I2C_M_RD, // read
.len = static_cast<U16>(readBuffer.getSize()),
.buf = readBuffer.getData()
}
};

struct i2c_rdwr_ioctl_data rdwr_data = {
.msgs = rdwr_msgs,
.nmsgs = 2
};
struct i2c_msg rdwr_msgs[2];

// Start address
rdwr_msgs[0].addr = static_cast<U16>(addr);
rdwr_msgs[0].flags = 0; // write
rdwr_msgs[0].len = static_cast<U16>(writeBuffer.getSize());
rdwr_msgs[0].buf = writeBuffer.getData();

// Read buffer
rdwr_msgs[1].addr = static_cast<U16>(addr);
rdwr_msgs[1].flags = I2C_M_RD; // read
rdwr_msgs[1].len = static_cast<U16>(readBuffer.getSize());
rdwr_msgs[1].buf = readBuffer.getData();

struct i2c_rdwr_ioctl_data rdwr_data;
rdwr_data.msgs = rdwr_msgs;
rdwr_data.nmsgs = 2;

//Use ioctl to perform the combined write/read transaction
NATIVE_INT_TYPE stat = ioctl(this->m_fd, I2C_RDWR, &rdwr_data);
Expand Down
4 changes: 2 additions & 2 deletions Drv/LinuxSpiDriver/LinuxSpiDriverComponentImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include <linux/spi/spidev.h>
#include <cerrno>

//#define DEBUG_PRINT(x,...) printf(x,##__VA_ARGS__); fflush(stdout)
#define DEBUG_PRINT(x,...)
//#define DEBUG_PRINT(...) printf(##__VA_ARGS__); fflush(stdout)
#define DEBUG_PRINT(...)

namespace Drv {

Expand Down
4 changes: 2 additions & 2 deletions Drv/LinuxUartDriver/LinuxUartDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

//#include <cstdlib>
//#include <cstdio>
//#define DEBUG_PRINT(x,...) printf(x,##__VA_ARGS__); fflush(stdout)
#define DEBUG_PRINT(x, ...)
//#define DEBUG_PRINT(...) printf(##__VA_ARGS__); fflush(stdout)
#define DEBUG_PRINT(...)

namespace Drv {

Expand Down
4 changes: 2 additions & 2 deletions Fw/Comp/ActiveComponentBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <Os/TaskString.hpp>
#include <cstdio>

//#define DEBUG_PRINT(x,...) printf(x,##__VA_ARGS__); fflush(stdout)
#define DEBUG_PRINT(x,...)
//#define DEBUG_PRINT(...) printf(##__VA_ARGS__); fflush(stdout)
#define DEBUG_PRINT(...)

namespace Fw {

Expand Down
3 changes: 1 addition & 2 deletions Fw/Logger/Logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ namespace Fw {
Logger::~Logger() {
}

};
//End namespace Fw
} //End namespace Fw
Loading

0 comments on commit a90d406

Please sign in to comment.