Skip to content

Commit

Permalink
Fixed issues with dsPIC and RISCV
Browse files Browse the repository at this point in the history
  • Loading branch information
StrahinjaJacimovic committed Jun 17, 2024
1 parent f7685d2 commit 2323298
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 22 deletions.
2 changes: 1 addition & 1 deletion RISCV/gcc_clang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ install(
${CMAKE_BINARY_DIR}/core_header.h

interrupts/include/interrupts.h
interrupts/include/interrupts_mcu/gd32vf103xx/interrupts_mcu.h
interrupts/include/interrupts_mcu/${MCU_NAME_LOWER}/interrupts_mcu.h
DESTINATION
${CMAKE_INSTALL_PREFIX}/include/core
)
Expand Down
13 changes: 0 additions & 13 deletions dsPIC/mikroC/cmake/coreUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,3 @@ macro(create_core_library)
preinit_support(lib_core)

endmacro()

#############################################################################
## Macro to set MCU specific variables
#############################################################################
macro(set_file_list)
if(${MCU_NAME} MATCHES "^dsPIC33(.+)$|^PIC24(.+)$")
if(${MCU_NAME} MATCHES "^dsPIC33E[VP](.+)$|^PIC24E[VP](.+)$")
set(DELAY_SOURCE "delay/dspic_ep/__lib_delays.c")
else()
set(DELAY_SOURCE "delay/dspic/__lib_delays.c")
endif()
endif()
endmacro()
5 changes: 1 addition & 4 deletions dsPIC/mikroC/cmake/dspic/dspic33.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
include(coreUtils)

set_file_list()

if(${MCU_NAME} MATCHES "^dsPIC33(.+)$")
set(SYSTEM_LIB_SOURCE "system/src/__Lib_System.c")
set(DELAY_SOURCE "delay/dspic/__lib_delays.c")
set(SYSTEM_LIB_INCLUDE_DIR "")
set(MATH_LIB_SOURCE "math/__Lib_math.c")
set(MATH_DOUBLE_SOURCE "math_double/__Lib_MathDouble.c")
Expand Down
7 changes: 7 additions & 0 deletions dsPIC/mikroC/cmake/dspic/dspic33e.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if(${MCU_NAME} MATCHES "^dsPIC33(.+)$")
set(SYSTEM_LIB_SOURCE "system/src/__Lib_System.c")
set(DELAY_SOURCE "delay/dspic_ep/__lib_delays.c")
set(SYSTEM_LIB_INCLUDE_DIR "")
set(MATH_LIB_SOURCE "math/__Lib_math.c")
set(MATH_DOUBLE_SOURCE "math_double/__Lib_MathDouble.c")
endif()
5 changes: 1 addition & 4 deletions dsPIC/mikroC/cmake/dspic/pic24.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
include(coreUtils)

set_file_list()

if(${MCU_NAME} MATCHES "^PIC24(.+)$")
set(SYSTEM_LIB_SOURCE "system/src/__Lib_System.c")
set(DELAY_SOURCE "delay/dspic/__lib_delays.c")
set(SYSTEM_LIB_INCLUDE_DIR "")
set(MATH_LIB_SOURCE "math/__Lib_math.c")
set(MATH_DOUBLE_SOURCE "math_double/__Lib_MathDouble.c")
Expand Down
7 changes: 7 additions & 0 deletions dsPIC/mikroC/cmake/dspic/pic24e.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if(${MCU_NAME} MATCHES "^PIC24(.+)$")
set(SYSTEM_LIB_SOURCE "system/src/__Lib_System.c")
set(DELAY_SOURCE "delay/dspic_ep/__lib_delays.c")
set(SYSTEM_LIB_INCLUDE_DIR "")
set(MATH_LIB_SOURCE "math/__Lib_math.c")
set(MATH_DOUBLE_SOURCE "math_double/__Lib_MathDouble.c")
endif()

0 comments on commit 2323298

Please sign in to comment.