Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge pull request from dev_firmware #158

Merged
merged 106 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
b19ee6f
firmware: drivers: si446x: Adding delay during configuration to avoid…
miguelboing Jan 16, 2024
ab7ad7d
firmware: devices: radio: Fixing radio_available function description…
miguelboing Jan 16, 2024
1be2e2f
firmware: app: tasks: Adding initial uplink manager task #145
miguelboing Jan 16, 2024
30e109e
firmware: config: Adding switching variable and vhf radio_configurati…
miguelboing Jan 30, 2024
a279d6f
firmware: si446x: Adding switch logic to si446x file #146
miguelboing Jan 30, 2024
656b74b
firmware: tests: drivers: Updating si446x test, resolves #146
miguelboing Jan 30, 2024
38c2749
firmware: app: tasks: Removing debug lines, resolves #149
miguelboing Feb 28, 2024
159ce6b
firmware: devices: radio: Changing last rx packet bytes to variable t…
miguelboing Feb 28, 2024
1ba4611
firmware: devices: obdh: Updating variable last rx packet bytes tye #150
miguelboing Feb 28, 2024
0054a46
firmware: app: structs: Improvements for packet handling #150
miguelboing Feb 28, 2024
b437a72
firmware: app: tasks: Starting last rx packet as zero #150
miguelboing Feb 28, 2024
c6fc637
firmware: drivers: si446x: Adding si446x mutex implementation #134
miguelboing Feb 28, 2024
bdb9a18
firmware: devices: radio: Using si446x mutex on radio functions, reso…
miguelboing Feb 28, 2024
f0dea35
firmware: drivers: spi_slave: DMA transfer size generalization #151
miguelboing Mar 6, 2024
f8da277
firmware: drivers: spi_slave: Change tranfer size functionality #151
miguelboing Mar 11, 2024
03d6863
firmware: devices: obdh: Read parameter and packet updated #151
miguelboing Mar 11, 2024
ad010ef
firmware: app: tasks: Fixing syncronization read parameter and packet…
miguelboing Mar 11, 2024
d26172c
firmware: drivers: spi_slave: Removing unused position variables #151
miguelboing Mar 12, 2024
73d3f42
firmware: devices: obdh: Updating write packet implementation #151
miguelboing Mar 12, 2024
6cea47a
firmware: app: tasks: Improvements for obdh_server task #151
miguelboing Mar 12, 2024
258afee
firmware: drivers: spi_slave: Incresing dma buffer size #151
miguelboing Mar 13, 2024
403466c
firmware: devices: obdh: Updating transmit command #151
miguelboing Mar 13, 2024
91d1742
firmware: app: structs: Fixing last packet number of bytes logic #151
miguelboing Mar 13, 2024
fd7ae56
firmware: app: tasks: Updating bytes numbers from transmit command #151
miguelboing Mar 13, 2024
81c2e5c
firmware: app: tasks: Fixing logic for tx enable #151
miguelboing Mar 26, 2024
5d25ca7
firmware: app: tasks: Task escalation improvements
miguelboing Mar 26, 2024
578e3eb
firmware: drivers: spi_slave: Compliance with misra-c, closes #151
miguelboing Apr 20, 2024
7158bc0
firmware: obdh: Compliance with misra-c, closes #150, closes #149
miguelboing Apr 20, 2024
93a8db8
firmware: app: tasks: Fixing system reset delay
miguelboing Apr 20, 2024
4cb3e26
firwmare: tests: mockups: drivers: Updating spi_slave and si446x mockups
miguelboing Apr 20, 2024
77f8bd4
firmware: tests: devices: Updating Makefile wraps #151
miguelboing Apr 20, 2024
fdfe40e
firmware: tests: devices: Updating obdh unitary test #151
miguelboing Apr 20, 2024
c3369e4
firmware: devices: obdh: Adding stddef reference #151
miguelboing Apr 20, 2024
219e6e7
firmware: Updating version number for modified files
miguelboing Apr 22, 2024
5d2b1e3
firmware: drivers: si446x: Adding stddef header file #152
miguelboing Apr 25, 2024
277a700
firmware: tests: freertos_sim: Adding semphr mockup functions for si4…
miguelboing Apr 25, 2024
41d6575
firmware: tests: drivers: Including semphr and mutex files to si446x …
miguelboing Apr 25, 2024
05ae892
firmware: tests: radio: Adding mutex implementation to radio test #152
miguelboing Apr 25, 2024
2ab2ce6
firmware: app: tasks: Uplink manager changes for misra-c compliance #152
miguelboing Apr 25, 2024
28209e8
Merge pull request #152 from spacelab-ufsc/radio_rx_feature
miguelboing Apr 25, 2024
14511ea
firmware: Updating the firmware version
mgm8 Apr 25, 2024
d1d2e99
firware: app: tasks: Fixing device id struct value #146
miguelboing May 16, 2024
0518235
firmware: app: libs: Porting rsclib1.0 #136
miguelboing Jun 3, 2024
0378667
firmware: app: libs: Updating ngham library with decoder implementati…
miguelboing Jun 3, 2024
90f97c9
firmware: Updating paths to ngham and rsc libs #136
miguelboing Jun 3, 2024
d5232f9
firmware: drivers: si446x: Adding error directive to force select tar…
miguelboing Jun 4, 2024
b542172
firmware: config: Enabling tasks and removing module target #146
miguelboing Jun 4, 2024
3548bbe
firmware: app: tasks: Including ngham header to downlink #136
miguelboing Jun 4, 2024
44f0b20
firmware: app: tasks: Decoding ngham packet #136
miguelboing Jun 4, 2024
cd02df8
firmware: app: tasks: Removing packet logs from EPS server #118
miguelboing Jun 6, 2024
e55450e
firmware: app: tasks: Importing system reset solution from OBDH
miguelboing Jun 7, 2024
418277f
firmware: devices: obdh: Adding preamble syncronization feature #151
miguelboing Jun 7, 2024
772d60d
firmware: app: tasks: Checking for failed obdh requests #151
miguelboing Jun 7, 2024
06d1187
firmware: config: Removing the EPS task from module 0 #122
miguelboing Jun 7, 2024
814a4eb
firmware: app: tasks: Changing internal temperature reading to kelvin
miguelboing Aug 8, 2024
69ba830
firmware: drivers: Fixing FIFO configuration size, closes #145
miguelboing Aug 8, 2024
745bc1a
firmware: config: Changing radio config file names #146
miguelboing Aug 8, 2024
ed2c715
firmware: devices: temp_sensor: Fixing if statement for celsius conve…
miguelboing Aug 8, 2024
1ddd858
firmware: drivers: flash: Changes for misra-c compliance
miguelboing Aug 8, 2024
c7d0631
firmware: devices: temp_sensor: Correcting TEMP_SENSOR_ADC_PORT macro
miguelboing Aug 8, 2024
9a77841
firmware: devices: Adding fixes from obdh
miguelboing Aug 8, 2024
b924c96
firmware: app: tasks: Fixing time_control task
miguelboing Aug 8, 2024
9bfc2dc
firmware: tests : devices: Updating obdh test #124
miguelboing Aug 9, 2024
50664a9
firmware: tests: devices: Adding eps and obdh to script
miguelboing Aug 9, 2024
49f2523
firmware: tests: devices: Changing temp_sensor adc port
miguelboing Aug 9, 2024
d0cdf0d
firmware: drivers: si446x: Adding debug flag #76
miguelboing Aug 9, 2024
1946bf1
firmware: tests: drivers: Fixing radio includes #76
miguelboing Aug 9, 2024
146939c
firmware: tests: drivers: Adding tps382x to test script
miguelboing Aug 9, 2024
aaed35e
firmware: app: tasks: Removing unused beacon tasks
miguelboing Aug 9, 2024
878c482
firmware: devices: media: Removing unused parameter for media_erase
miguelboing Aug 14, 2024
55d78a0
firmware: app: tasks: Updating media_erase parameters
miguelboing Aug 14, 2024
d9d0c81
workflows: Updating ngham/rsclib version numbers
miguelboing Aug 15, 2024
eed9c3c
firmware: app: libs: rsclib: tests: Importing rsclib updated test
miguelboing Aug 15, 2024
4ac613f
firmware: app: tasks: Fixing time_control task
miguelboing Aug 17, 2024
08639bf
firmware: app: tasks: Improving debug messages for upĺink/downlink ma…
miguelboing Aug 17, 2024
214c415
firmware: devices: radio: Adding log messages for recv #145
miguelboing Aug 17, 2024
fd1cfb6
firmware: devices: obdh: Improving obdh log messages #124
miguelboing Aug 17, 2024
55edc75
firmware: config: Adding updated radio config files
miguelboing Aug 20, 2024
a2e7d2e
firmware: config: Adding radio configuration model
miguelboing Aug 20, 2024
63b9c7f
firmware: app: libs: Adding rsclib as subdirectory for ngham #136, #57
miguelboing Aug 26, 2024
ab9730f
firmware: app: libs: Updating ngham to version 1.0 #136, #57
miguelboing Aug 26, 2024
c7f747d
firmware: Updating include path for rsclib #136
miguelboing Aug 26, 2024
1c13bba
workflows: Updating ngham and rsclib tests #57
miguelboing Aug 26, 2024
4308869
firmware: app: libs: ngham: Updating CMake config file #57
miguelboing Aug 27, 2024
889bd20
workflows: Fixing lib paths on static analysis
miguelboing Aug 27, 2024
560e852
workflows: Removing fsp and fsat_pkt static tests
miguelboing Aug 27, 2024
3f742ea
workflows: Updating test branch rules
miguelboing Aug 27, 2024
58945e6
Merge pull request #153 from spacelab-ufsc/ngham_decoder_feature
miguelboing Aug 29, 2024
5288e4e
firmware: devices: media: Adding sector parameter #155
miguelboing Aug 29, 2024
047ce37
firmware: app: tasks: Updating time control media
miguelboing Aug 29, 2024
cd2bf3c
firmware: system: Implementing reset param_id #155
miguelboing Aug 29, 2024
5c61134
firmware: app: tasks: Implementing reset param #155
miguelboing Aug 29, 2024
96c3755
firmware: drivers: flash: Mutex implementation
miguelboing Aug 29, 2024
502b526
firmware: devices: media: Implementing flash mutex
miguelboing Aug 29, 2024
9ba76fb
firmware: system: Implementing system reset counter #156
miguelboing Sep 6, 2024
6dfe045
firmware: app: tasks: Updating startup task with module and reset cou…
miguelboing Sep 6, 2024
01024e8
firmware: devices: leds: Adding firmware fix for #113
miguelboing Sep 6, 2024
abd7580
firmware: tests: devices: Updating obdh with reset_device #156
miguelboing Sep 6, 2024
aa36fda
firmware: tests: mockups: drivers: Adding mockup mutex functions #156
miguelboing Sep 6, 2024
0b9a3b9
firmware: tests: devices: Updating Makefile #156
miguelboing Sep 6, 2024
7a07b9f
firmware: tests: devices: Fixing leds gpio pins
miguelboing Sep 6, 2024
a43c28b
firmware: tests: devices: Implementing media test #156
miguelboing Sep 6, 2024
ef5ace7
firmware: Updating the version of the modified files
mgm8 Sep 7, 2024
8fa7297
Merge pull request #157 from spacelab-ufsc/reset_param_feature
miguelboing Sep 8, 2024
717ef02
firmware: Updating the version of the modified files
miguelboing Sep 9, 2024
6d79654
firmware: Release v1.0 #159
miguelboing Sep 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ jobs:
run: cppcheck --std=c99 --error-exitcode=-1 --inline-suppr --addon=misra.py firmware/system/ --suppress=misra-c2012-19.2

- name: Execute CppCheck on libraries files
run: cppcheck --std=c99 --error-exitcode=-1 --inline-suppr --addon=misra.py firmware/libs/
run: |
cppcheck --std=c99 --error-exitcode=-1 --addon=misra.py -I$PWD/firmware/app/libs/ngham-1.0/rsclib/include/ $PWD/firmware/app/libs/ngham-1.0/rsclib/src/*
cppcheck --std=c99 --error-exitcode=-1 --addon=misra.py --inline-suppr -I$PWD/firmware/app/libs/ngham-1.0/include/ngham/ -I$PWD/firmware/app/libs/ngham-1.0/include/ $PWD/firmware/app/libs/ngham-1.0/src/* --suppress=misra-c2012-8.4

- name: Execute CppCheck on main files
run: cppcheck --std=c99 --error-exitcode=-1 --addon=misra.py firmware/main.c firmware/version.h
48 changes: 24 additions & 24 deletions .github/workflows/unit-test-ngham.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
#
# unit-test-ngham.yml
# test.yml
#
# Copyright The TTC 2.0 Contributors.
# Copyright The RSCLib Contributors.
#
# This file is part of TTC 2.0.
# This file is part of RSCLib.
#
# TTC 2.0 is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# RSCLib is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# TTC 2.0 is distributed in the hope that it will be useful,
# RSCLib is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with TTC 2.0. If not, see <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU Lesser General Public License
# along with RSCLib. If not, see <http://www.gnu.org/licenses/>.
#
#

name: NGHam unit tests
name: NGHam Unit test

on:
push:
branches: [dev_firmware]
branches: [ dev_firmware ]
pull_request:
branches: [master, dev, dev_firmware]
branches: [ master, dev, dev_firmware]


# 'workflow_dispatch' allows manual execution of this workflow under the repository's 'Actions' tab
workflow_dispatch:

jobs:

unit-tests:
name: NGHam unit tests
name: Unit tests
runs-on: ubuntu-latest

strategy:
fail-fast: false

steps:
- uses: actions/checkout@v3
with:
submodules: true


- name: Install dependencies
run: |
sudo apt install -y cmake libcmocka0 libcmocka-dev
git clone https://github.com/mgm8/rsclib.git
cd rsclib
mkdir build
cd build
cmake ..
make
sudo make install
mkdir firmware/app/libs/ngham-1.0/tests/build_tests
cd firmware/app/libs/ngham-1.0/tests/build_tests
cmake ../

- name: Compile the test
run: |
cd firmware/app/libs/ngham-0.1/tests
make
cd firmware/app/libs/ngham-1.0/tests/build_tests
cmake --build .

- name: Execute the test
run: ./firmware/app/libs/ngham-0.1/tests/ngham_unit_test
run: ./firmware/app/libs/ngham-1.0/tests/build_tests/ngham_test
33 changes: 17 additions & 16 deletions .github/workflows/unit-test-rsclib.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,41 @@
#
# unit-test-rsclib.yml
# test.yml
#
# Copyright The TTC 2.0 Contributors.
# Copyright The RSCLib Contributors.
#
# This file is part of TTC 2.0.
# This file is part of RSCLib.
#
# TTC 2.0 is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# RSCLib is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# TTC 2.0 is distributed in the hope that it will be useful,
# RSCLib is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with TTC 2.0. If not, see <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU Lesser General Public License
# along with RSCLib. If not, see <http://www.gnu.org/licenses/>.
#
#

name: RSCLib unit tests
name: RSCLib Unit tests

on:
push:
branches: [dev_firmware]
branches: [ dev_firmware ]
pull_request:
branches: [master, dev, dev_firmware]
branches: [ master, dev, dev_firmware]


# 'workflow_dispatch' allows manual execution of this workflow under the repository's 'Actions' tab
workflow_dispatch:

jobs:

unit-tests:
name: RSCLib unit tests
name: Unit tests
runs-on: ubuntu-latest

strategy:
Expand All @@ -48,9 +49,9 @@ jobs:

- name: Compile the test
run: |
cd firmware/app/libs/rsclib-0.1/tests
cd firmware/app/libs/ngham-1.0/rsclib/tests
cmake .
make

- name: Execute the test
run: ./firmware/app/libs/rsclib-0.1/tests/rsc_test
run: ./firmware/app/libs/ngham-1.0/rsclib/tests/rsc_test
Loading
Loading