mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Fix freertos_kernel cmake property, Posix Port (#640)
* Fix freertos_kernel cmake property, Posix Port * Moves the `set_property()` call below the target definition in top level CMakeLists file * Corrects billion value from `ULL` suffix (not C90 compliant) to `UL` suffix with cast to uint64_t * Add blank line to CMakeLists.txt
This commit is contained in:
parent
7b26ea6263
commit
309a18a03a
|
@ -228,10 +228,6 @@ elseif((FREERTOS_PORT STREQUAL "A_CUSTOM_PORT") AND (NOT TARGET freertos_kernel_
|
||||||
" freertos_kernel)")
|
" freertos_kernel)")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
########################################################################
|
|
||||||
# Requirements
|
|
||||||
set_property(TARGET freertos_kernel PROPERTY C_STANDARD 90)
|
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# Overall Compile Options
|
# Overall Compile Options
|
||||||
# Note the compile option strategy is to error on everything and then
|
# Note the compile option strategy is to error on everything and then
|
||||||
|
@ -294,3 +290,7 @@ target_link_libraries(freertos_kernel
|
||||||
$<$<TARGET_EXISTS:freertos_config>:freertos_config>
|
$<$<TARGET_EXISTS:freertos_config>:freertos_config>
|
||||||
freertos_kernel_port
|
freertos_kernel_port
|
||||||
)
|
)
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
# Requirements
|
||||||
|
set_property(TARGET freertos_kernel PROPERTY C_STANDARD 90)
|
||||||
|
|
2
portable/ThirdParty/GCC/Posix/port.c
vendored
2
portable/ThirdParty/GCC/Posix/port.c
vendored
|
@ -343,7 +343,7 @@ static uint64_t prvGetTimeNs( void )
|
||||||
|
|
||||||
clock_gettime( CLOCK_MONOTONIC, &t );
|
clock_gettime( CLOCK_MONOTONIC, &t );
|
||||||
|
|
||||||
return ( uint64_t )t.tv_sec * 1000000000ULL + ( uint64_t )t.tv_nsec;
|
return ( uint64_t )t.tv_sec * ( uint64_t )1000000000UL + ( uint64_t )t.tv_nsec;
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint64_t prvStartTimeNs;
|
static uint64_t prvStartTimeNs;
|
||||||
|
|
Loading…
Reference in a new issue