Skip to content

Commit

Permalink
Added module folder and updated CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
noxuz committed Apr 7, 2020
1 parent 97c95d8 commit 408beca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions S32K/src/canfd.cpp → S32K/module/canfd.cpp
Expand Up @@ -24,9 +24,7 @@
/* STL queue for the intermediate ISR buffer */
#include <deque>

/* libuavcan core header files */
#include "libuavcan/media/can.hpp"
#include "libuavcan/media/interfaces.hpp"
/* libuavcan core header file for static pool allocator */
#include "libuavcan/platform/memory.hpp"

/* CMSIS Core for __REV macro use */
Expand Down Expand Up @@ -97,7 +95,7 @@ static std::deque<InterfaceGroup::FrameType,
g_frame_ISRbuffer[CANFD_Count];

/* Intermediate array for harvesting the received frame's payload in the ISR */
volatile static std::uint32_t data_ISR_word[InterfaceGroup::FrameType::MTUBytes >> 2u];
volatile static std::uint32_t data_ISR_word[InterfaceGroup::FrameType::MTUBytes / 4u];

/* Counter for the number of discarded messages due to the RX FIFO being full */
volatile static std::uint32_t g_discarded_frames_count[CANFD_Count] = {DISCARD_COUNT_ARRAY};
Expand Down
Expand Up @@ -7,7 +7,7 @@
/**
* @file
* Header driver file for the media layer of Libuavcan v1 targeting
* the NXP S32K14 family of automotive grade MCU's running
* the NXP S32K14 family of automotive grade MCU's, running
* CAN-FD at 4Mbit/s data phase and 1Mbit/s in nominal phase.
*/

Expand Down
4 changes: 2 additions & 2 deletions S32K/test/CMakeLists.txt
Expand Up @@ -25,7 +25,7 @@ endif()

include_directories(
.
../S32K
../S32K/module
${CMAKE_CURRENT_BINARY_DIR}/libuavcan-src/libuavcan/include
)

Expand Down Expand Up @@ -73,5 +73,5 @@ set(CMAKE_C_FLAGS
)


add_executable(test_sanity test_sanity.cpp ../S32K/s32k_libuavcan.cpp)
add_executable(test_sanity test_sanity.cpp ../S32K/module/canfd.cpp)
add_test(NAME run_test_sanity COMMAND test_sanity)

0 comments on commit 408beca

Please sign in to comment.