Files
SDK_STM32F302x/kernel/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/test/unit-test/cmock/project.yml
gaoyang3513 a345df017b [修改] 增加freeRTOS
1. 版本FreeRTOSv202212.01,命名为kernel;
2023-05-06 16:43:01 +00:00

35 lines
907 B
YAML

# Taken from amazon-freertos repository
:cmock:
:mock_prefix: mock_
:when_no_prototypes: :warn
:enforce_strict_ordering: TRUE
:plugins:
- :ignore
- :ignore_arg
- :expect_any_args
- :array
- :callback
- :return_thru_ptr
:callback_include_count: true # include a count arg when calling the callback
:callback_after_arg_check: false # check arguments before calling the callback
:treat_as:
uint8: HEX8
uint16: HEX16
uint32: UINT32
int8: INT8
bool: UINT8
:includes: # This will add these includes to each mock.
- <stdbool.h>
- <stdint.h>
- <fcntl.h>
- <unity.h>
- FreeRTOS.h
- FreeRTOS_IP.h
:treat_externs: :exclude # Now the extern-ed functions will be mocked.
:weak: __attribute__((weak))
:treat_externs: :include
:strippables:
- PRIVILEGED_FUNCTION
- portDONT_DISCARD
- portINLINE