File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/rtos Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,8 @@ extern cy_rtos_error_t cy_rtos_last_error();
167
167
* @param[in] entry_function Function pointer which points to the main function for the new thread
168
168
* @param[in] name String thread name used for a debugger
169
169
* @param[in] stack The buffer to use for the thread stack. This must be aligned to
170
- CY_RTOS_ALIGNMENT with a size of at least CY_RTOS_MIN_STACK_SIZE
170
+ * CY_RTOS_ALIGNMENT with a size of at least CY_RTOS_MIN_STACK_SIZE.
171
+ * If stack is null, cy_rtos_create_thread will allocate a stack from the heap.
171
172
* @param[in] stack_size The size of the thread stack in bytes
172
173
* @param[in] priority The priority of the thread. Values are operating system specific, but some
173
174
* common priority levels are defined:
Original file line number Diff line number Diff line change @@ -803,7 +803,7 @@ cy_rslt_t cy_rtos_get_time(cy_time_t *tval)
803
803
804
804
/* Convert ticks count to time in milliseconds */
805
805
if (tick_freq != 0 )
806
- * tval = (( osKernelGetTickCount () * 1000 ) / tick_freq );
806
+ * tval = (cy_time_t )(( osKernelGetTickCount () * 1000LL ) / tick_freq );
807
807
else
808
808
status = CY_RTOS_GENERAL_ERROR ;
809
809
}
You can’t perform that action at this time.
0 commit comments