Skip to content

Commit

Permalink
Merge branch 'feat/add_freertos_port_layer_mocks' into 'master'
Browse files Browse the repository at this point in the history
feat(freertos): Add FreeRTOS port layer mocks for CMock tests

See merge request espressif/esp-idf!34021
  • Loading branch information
sudeep-mohanty committed Oct 11, 2024
2 parents 6a29351 + 0e5adc1 commit eeafd12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ extern void vPortEnableInterrupts( void );
extern BaseType_t xPortSetInterruptMask( void );
extern void vPortClearInterruptMask( BaseType_t xMask );

extern void vPortEnterCritical( void );
extern void vPortExitCritical( void );
void vPortEnterCritical( void );
void vPortExitCritical( void );
#define portSET_INTERRUPT_MASK_FROM_ISR() xPortSetInterruptMask()
#define portCLEAR_INTERRUPT_MASK_FROM_ISR(x) vPortClearInterruptMask(x)
#define portDISABLE_INTERRUPTS() portSET_INTERRUPT_MASK()
Expand Down
3 changes: 2 additions & 1 deletion tools/mocks/freertos/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ idf_component_mock(INCLUDE_DIRS ${include_dirs}
${original_freertos_dir}/esp_additions/include/freertos/idf_additions.h
${original_freertos_dir}/FreeRTOS-Kernel/include/freertos/task.h
${original_freertos_dir}/FreeRTOS-Kernel/include/freertos/event_groups.h
${original_freertos_dir}/FreeRTOS-Kernel/include/freertos/queue.h)
${original_freertos_dir}/FreeRTOS-Kernel/include/freertos/queue.h
${original_freertos_dir}/FreeRTOS-Kernel/portable/linux/include/freertos/portmacro.h)

idf_component_get_property(freertos_lib freertos COMPONENT_LIB)
target_compile_definitions(${freertos_lib} PUBLIC "projCOVERAGE_TEST=0")

0 comments on commit eeafd12

Please sign in to comment.