GlobLib
HAL and API libraries for MCUs and hardware.
stm32f103cb_debug.h
Go to the documentation of this file.
1 #ifndef STM32F103CB_DEBUG_H
2 #define STM32F103CB_DEBUG_H
3 
37 #include <stdint.h>
38 #include <stdlib.h>
44 typedef enum{
45 
51 
60 
67 
70 
73 
74 
80 
84 
87 
90 
93 
96 }mcu_error;
97 
108 void MCU_printError(mcu_error error);
109 
118 void MCU_debugEnable(void (*output_handle)(uint8_t));
119 
125 void MCU_debugDisable(void);
126 
132 uint8_t MCU_debugIsEnabled(void);
133 
134 
137 #endif
Error timer: Pulse too long.
void MCU_debugEnable(void(*output_handle)(uint8_t))
Enables the debug feature.
Error clock: No error.
Error timer: Timer doesn&#39;t exist.
Error clock: Clock speed doesn&#39;t exist.
ERROR GPIO: Port doesn&#39;t exist.
ERROR I2C: Port doesn&#39;t exist.
Error IWDG: Period too long.
void MCU_printError(mcu_error error)
Print a given error number as a character stream.
Error SPI: No error.
ERROR I2C: No Error.
uint8_t MCU_debugIsEnabled(void)
Checks if debug is enabled.
Error FLASH: Page number out of bounds.
Error RTC: Invalid period specified.
ERROR GPIO: Pin doesn&#39;t exist.
Error RTC: No error.
Error USART: Baud rate not available.
ERROR GPIO: ISR EXTI line in use.
Error FLASH: No error.
ERROR I2C: Timeout during get()
Error SPI: Port doesn&#39;t exist.
ERROR I2C: Timeout during stop()
Error USART: Port doesn&#39;t exist.
Error ADC: Port doesn&#39;t exist with ADC.
ERROR I2C: Timeout during start()
ERROR I2C: Timeout during put()
Error USART: Parity option not available.
Error ADC: No ADC on pin.
Error ADC: No error.
ERROR MCU: Unknown error code.
ERROR GPIO: ISR trigger doesn&#39;t exist.
Error systick: No error.
Error USART: Interrupt option doesn&#39;t exist.
Error timer: Period too long / frequency too high.
Error systick: Timeout value is too short.
void MCU_debugDisable(void)
Disables the debug feature.
ERROR GPIO: No Error.
Error USART: Stop bits don&#39;t exist.
Error timer: No error.
Error timer: Channel doesn&#39;t exist.
Error IWDG: No error.
Error USART: Data frame not available.
Error USART: No Error.
mcu_error
Error enumerators for the Debug peripheral.