Prusa MINI Firmware overview
|
Go to the documentation of this file.
8 #ifndef _THREAD_MEASUREMENT_H
9 #define _THREAD_MEASUREMENT_H
21 #endif //_THREAD_MEASUREMENT_H
#define SPI_BAUDRATEPRESCALER_2
Definition: stm32f4xx_hal_spi.h:236
Definition: stm32f4xx_hal_def.h:57
void sys_spi_set_prescaler(int prescaler_num)
Definition: sys.cpp:230
RCC System, AHB and APB busses clock configuration structure definition.
Definition: stm32f4xx_hal_rcc.h:93
void sys_reset(void)
Definition: sys.cpp:20
#define SPI_BAUDRATEPRESCALER_16
Definition: stm32f4xx_hal_spi.h:239
HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
uint32_t SYSCLKSource
Definition: stm32f4xx_hal_rcc.h:98
SPI handle Structure definition.
Definition: stm32f4xx_hal_spi.h:120
#define SPI_BAUDRATEPRESCALER_256
Definition: stm32f4xx_hal_spi.h:243
#define HSE_VALUE
Adjust the value of External High Speed oscillator (HSE) used in your application....
Definition: stm32f4xx_hal_conf.h:108
#define FLASH_FLAG_EOP
Definition: stm32f4xx_hal_flash.h:132
#define VOLTAGE_RANGE_3
Definition: stm32_hal_legacy.h:317
HAL_StatusTypeDef HAL_FLASH_Unlock(void)
#define _dbg0
Definition: dbg.h:31
void sys_fw_update_on_restart_enable(void)
Definition: sys.cpp:257
#define pd
Definition: screen_filebrowser.cpp:39
void StartMeasurementTask(void const *argument)
Definition: thread_measurement.c:7
volatile data_exchange_t ram_data_exchange
SPI_HandleTypeDef hspi2
Definition: main.c:81
int sys_fw_validate(void)
Definition: sys.cpp:281
uint8_t i
Definition: screen_test_graph.c:72
int sys_fw_update_on_restart_is_enabled(void)
Definition: sys.cpp:253
#define SPI_BAUDRATEPRESCALER_32
Definition: stm32f4xx_hal_spi.h:240
void fs_init_on_level()
Definition: filament_sensor.c:128
void sys_fw_update_on_restart_disable(void)
Definition: sys.cpp:261
void marlin_client_loop(void)
Definition: marlin_client.c:118
int sys_pll_is_enabled(void)
Definition: sys.cpp:48
void st25dv64k_user_write(uint16_t address, uint8_t data)
Definition: st25dv64k.c:103
volatile uint8_t * psys_fw_valid
Definition: sys.cpp:18
#define FLASH_TYPEPROGRAM_BYTE
Definition: stm32f4xx_hal_flash.h:120
osStatus osDelay(uint32_t millisec)
Wait for Timeout (Time Delay)
Definition: cmsis_os.c:365
#define RCC_SYSCLKSOURCE_HSE
Definition: stm32f4xx_hal_rcc.h:220
#define FLASH_FLAG_PGSERR
Definition: stm32f4xx_hal_flash.h:137
HAL_StatusTypeDef
HAL Status structures definition.
Definition: stm32f4xx_hal_def.h:55
#define RCC_PLL_ON
Definition: stm32f4xx_hal_rcc.h:178
void sys_fw_update_disable(void)
Definition: sys.cpp:249
void sys_dfu_boot(void)
Definition: sys.cpp:31
int sys_flash_write(void *dst, void *src, int size)
Definition: sys.cpp:293
void sys_sscg_enable(void)
Definition: sys.cpp:140
void sys_pll_enable(void)
Definition: sys.cpp:78
#define FLASH_FLAG_BSY
Definition: stm32f4xx_hal_flash.h:141
HAL_StatusTypeDef HAL_FLASH_Lock(void)
marlin_vars_t * marlin_client_init(void)
Definition: marlin_client.c:84
#define SPI_BAUDRATEPRESCALER_4
Definition: stm32f4xx_hal_spi.h:237
#define SPI_BAUDRATEPRESCALER_64
Definition: stm32f4xx_hal_spi.h:241
RCC_PLLInitTypeDef PLL
Definition: stm32f4xx_hal_rcc.h:87
#define SPI_BAUDRATEPRESCALER_128
Definition: stm32f4xx_hal_spi.h:242
int sys_fw_is_valid(void)
Definition: sys.cpp:266
#define FLASH_FLAG_PGAERR
Definition: stm32f4xx_hal_flash.h:135
#define RCC_PLL_OFF
Definition: stm32f4xx_hal_rcc.h:177
HAL_StatusTypeDef HAL_SPI_DeInit(SPI_HandleTypeDef *hspi)
uint32_t PLLState
Definition: stm32f4xx_hal_rcc_ex.h:65
void FLASH_Erase_Sector(uint32_t Sector, uint8_t VoltageRange)
#define FW_UPDATE_ENABLE
Definition: shared_config.h:11
HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint64_t Data)
HAL_StatusTypeDef HAL_SPI_Init(SPI_HandleTypeDef *hspi)
void sys_fw_update_enable(void)
Definition: sys.cpp:245
#define __HAL_FLASH_CLEAR_FLAG(__FLAG__)
Clear the specified FLASH flags.
Definition: stm32f4xx_hal_flash.h:307
#define FLASH_FLAG_PGPERR
Definition: stm32f4xx_hal_flash.h:136
void sys_sscg_set_config(int freq, int depth)
Definition: sys.cpp:159
int sys_flash_is_empty(void *ptr, int size)
Definition: sys.cpp:285
void HAL_RCC_GetOscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
const uint8_t[]
Definition: 404_html.c:3
int sys_fw_invalidate(void)
Definition: sys.cpp:271
uint32_t _spi_prescaler(int prescaler_num)
Definition: sys.cpp:208
void sys_sscg_disable(void)
Definition: sys.cpp:125
#define FLASH_FLAG_OPERR
Definition: stm32f4xx_hal_flash.h:133
int sys_fw_update_is_enabled(void)
Definition: sys.cpp:241
SPI_InitTypeDef Init
Definition: stm32f4xx_hal_spi.h:124
void sys_pll_disable(void)
Definition: sys.cpp:57
int sys_calc_flash_latency(int freq)
Definition: sys.cpp:34
int sys_flash_erase_sector(unsigned int sector)
Definition: sys.cpp:323
This file contains all the functions prototypes for the HAL module driver.
static status_t status
Definition: filament_sensor.c:37
uint8_t fw_update_flag
Definition: shared_config.h:20
#define RCC_SYSCLKSOURCE_PLLCLK
Definition: stm32f4xx_hal_rcc.h:221
uint32_t BaudRatePrescaler
Definition: stm32f4xx_hal_spi.h:84
void StartMeasurementTask(void const *argument)
Definition: thread_measurement.c:7
HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
int sys_sscg_get_config(float *pfreq, float *pdepth)
Definition: sys.cpp:204
version_t & boot_version
Definition: sys.cpp:16
#define FW_UPDATE_FLAG_ADDRESS
Definition: new_eeprom.h:20
RCC Internal/External Oscillator (HSE, HSI, LSE and LSI) configuration structure definition.
Definition: stm32f4xx_hal_rcc.h:67
#define SPI_BAUDRATEPRESCALER_8
Definition: stm32f4xx_hal_spi.h:238
volatile data_exchange_t ram_data_exchange __attribute__((section(".boot_fw_data_exchange")))
Definition: shared_config.h:38
uint8_t st25dv64k_user_read(uint16_t address)
Definition: st25dv64k.c:93
void fs_cycle()
Definition: filament_sensor.c:185
uint32_t PLLN
Definition: stm32f4xx_hal_rcc_ex.h:74
Definition: shared_config.h:19
int sys_sscg_is_enabled(void)
Definition: sys.cpp:121
void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
Header of cmsis_os.c A new set of APIs are added in addition to existing ones, these APIs are specifi...
#define FLASH_FLAG_WRPERR
Definition: stm32f4xx_hal_flash.h:134
#define BOOTLOADER_VERSION_ADDRESS
Definition: shared_config.h:8
int sys_pll_freq
Definition: sys.cpp:12
#define FW_UPDATE_DISABLE
Definition: shared_config.h:12
static png_bytep size_t size
Definition: pngwrite.c:2170