Prusa MINI Firmware overview
|
Go to the documentation of this file.
6 #define DIAG_OK 0 // all OK
7 #define DIAG_ERR_CHECKSUM 1 // flash checksum error
8 #define DIAG_ERR_I2CEEPROM 2 // i2c eeprom st25dv64k communication error
9 #define DIAG_ERR_SPIFLASH 3 // spi flash communication error
10 #define DIAG_ERR_USBA 4 // USB host error
11 #define DIAG_ERR_TMC_X 5 // tmc2209 X-axis communication error
12 #define DIAG_ERR_TMC_Y 6 // tmc2209 Y-axis communication error
13 #define DIAG_ERR_TMC_Z 7 // tmc2209 Z-axis communication error
14 #define DIAG_ERR_TMC_E 8 // tmc2209 E-axis communication error
16 #define DIAG_ERR_NOLOCK 10 // board not locked
17 #define DIAG_ERR_MACADDR 11 // MAC address not set or invalid
18 #define DIAG_ERR_BOARDREV 12 // board revision not set or invalid
19 #define DIAG_ERR_TIMESTAMP 13 // timestamp not set or invalid
20 #define DIAG_ERR_SERIAL 14 // serial not set
void diag_check_fastboot(void)
Definition: diag.c:23
: Header for usb_host.c file.
void st25dv64k_init(void)
Definition: st25dv64k.c:73
uint8_t i
Definition: screen_test_graph.c:72
#define DIAG_ERR_SPIFLASH
Definition: diag.h:9
int diag_fastboot
Definition: diag.c:11
void diag_delay(int delay)
Definition: diag.c:17
void st25dv64k_user_write(uint16_t address, uint8_t data)
Definition: st25dv64k.c:103
#define PC7
Definition: variant.h:73
void diag_test(void)
Definition: diag.c:49
#define GPIO_PULLUP
Definition: stm32f4xx_hal_gpio.h:171
static int gpio_get(uint8_t pin8)
Definition: gpio.h:94
void diag_test(void)
Definition: diag.c:49
ApplicationTypeDef
Definition: usb_host.h:85
Definition: usb_host.h:88
static void gpio_init(uint8_t pin8, uint32_t mode, uint32_t pull, uint32_t speed)
Definition: gpio.h:102
#define otp_lock_sector0
Definition: otp.h:29
#define GPIO_SPEED_FREQ_VERY_HIGH
Definition: stm32f4xx_hal_gpio.h:161
int diag_fastboot
Definition: diag.c:11
void delay(uint32_t ms)
Definition: wiring_time.c:42
#define __HAL_RCC_GPIOC_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:416
ApplicationTypeDef Appli_state
Definition: usb_host.c:75
This file contains all the functions prototypes for the HAL module driver.
#define DIAG_ERR_USBA
Definition: diag.h:10
#define DIAG_ERR_I2CEEPROM
Definition: diag.h:8
int diag_eeprom()
Definition: diag.c:39
int diag_error
Definition: diag.c:13
#define GPIO_MODE_INPUT
Definition: stm32f4xx_hal_gpio.h:135
void diag_check_fastboot(void)
Definition: diag.c:23
uint8_t st25dv64k_user_read(uint16_t address)
Definition: st25dv64k.c:93
int diag_error
Definition: diag.c:13
int8_t w25x_init(void)
Definition: w25x.c:57