Prusa MINI Firmware overview
|
Go to the documentation of this file.
14 #else //(DBG_LEVEL >= 3)
16 #endif //(DBG_LEVEL >= 3)
20 #else //(DBG_LEVEL >= 2)
22 #endif //(DBG_LEVEL >= 2)
26 #else //(DBG_LEVEL >= 1)
28 #endif //(DBG_LEVEL >= 1)
32 #else //(DBG_LEVEL >= 0)
34 #endif //(DBG_LEVEL >= 0)
40 #if defined(DBG_SWO) // trace to SWO
41 extern void _dbg_swo(
const char *fmt, ...);
43 #elif defined(DBG_UART) // trace to UART
44 extern void _dbg_uart(
const char *fmt, ...);
45 #define _dbg _dbg_uart
46 #elif defined(DBG_CDC) // trace to CDC
47 extern void _dbg_cdc(
const char *fmt, ...);
49 #else // trace disabled
#define osSemaphore(name)
Definition: cmsis_os.h:709
int32_t osSemaphoreWait(osSemaphoreId semaphore_id, uint32_t millisec)
Wait until a Semaphore token becomes available.
Definition: cmsis_os.c:822
#define _dbg_delay
Definition: dbg.c:34
#define _dbg_lock()
Definition: dbg.c:30
uint8_t i
Definition: screen_test_graph.c:72
#define _dbg_unlock()
Definition: dbg.c:32
uint32_t _microseconds(void)
Definition: dbg.c:113
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
Definition: stm32f4xx_hal.c:339
HAL_StatusTypeDef
HAL Status structures definition.
Definition: stm32f4xx_hal_def.h:55
SemaphoreHandle_t osSemaphoreId
Definition: cmsis_os.h:295
osSemaphoreId osSemaphoreCreate(const osSemaphoreDef_t *semaphore_def, int32_t count)
Create and Initialize a Semaphore object used for managing resources.
Definition: cmsis_os.c:755
#define osSemaphoreDef(name)
Definition: cmsis_os.h:700
#define osWaitForever
wait forever timeout value
Definition: cmsis_os.h:230
const uint8_t[]
Definition: 404_html.c:3
uint32_t _microseconds(void)
Definition: dbg.c:113
uint8_t CDC_Transmit_FS(uint8_t *Buf, uint16_t Len)
CDC_Transmit_FS Data to send over USB IN endpoint are sent over CDC interface through this function.
Definition: usbd_cdc_if.c:317
: Header for usbd_cdc_if.c file.
This file contains all the functions prototypes for the HAL module driver.
#define DBG_MAXLINE
Definition: dbg.c:7
#define HAL_MAX_DELAY
Definition: stm32f4xx_hal_def.h:76
UART handle Structure definition.
Definition: stm32f4xx_hal_uart.h:158
Header of cmsis_os.c A new set of APIs are added in addition to existing ones, these APIs are specifi...
Definition: usbd_def.h:195
osStatus osSemaphoreRelease(osSemaphoreId semaphore_id)
Release a Semaphore token.
Definition: cmsis_os.c:862
HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout)