Prusa MINI Firmware overview
|
void st25dv64k_user_write(uint16_t address, uint8_t data)
Definition: st25dv64k.c:103
void st25dv64k_user_read_bytes(uint16_t address, void *pdata, uint8_t size)
Definition: st25dv64k.c:111
#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 ADDR_READ
Definition: st25dv64k.c:31
#define BLOCK_DELAY
Definition: st25dv64k.c:35
uint8_t st25dv64k_rd_cfg(uint16_t address)
Definition: st25dv64k.c:140
void st25dv64k_init(void)
Definition: st25dv64k.c:73
#define DELAY
Definition: st25dv64k.c:38
uint8_t data[8]
Definition: masstorage.h:49
uint8_t st25dv64k_user_read(uint16_t address)
Definition: st25dv64k.c:93
void st25dv64k_user_write(uint16_t address, uint8_t data)
Definition: st25dv64k.c:103
void st25dv64k_wr_cfg(uint16_t address, uint8_t data)
Definition: st25dv64k.c:150
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 REG_ENDA3
Definition: st25dv64k.c:21
#define osSemaphoreDef(name)
Definition: cmsis_os.h:700
void st25dv64k_present_pwd(uint8_t *pwd)
Definition: st25dv64k.c:158
pwd
Definition: auto_build.py:78
static void st25dv64k_unlock(void)
Definition: st25dv64k.c:57
void st25dv64k_user_write_bytes(uint16_t address, void *pdata, uint8_t size)
Definition: st25dv64k.c:119
#define REG_ENDA1
Definition: st25dv64k.c:17
osSemaphoreId st25dv64k_sema
Definition: st25dv64k.c:47
void st25dv64k_user_write_bytes(uint16_t address, void *pdata, uint8_t size)
Definition: st25dv64k.c:119
static void st25dv64k_lock(void)
Definition: st25dv64k.c:49
void st25dv64k_init(void)
Definition: st25dv64k.c:73
#define osWaitForever
wait forever timeout value
Definition: cmsis_os.h:230
#define ADDR_READ_SYS
Definition: st25dv64k.c:33
const uint8_t[]
Definition: 404_html.c:3
UsbDeviceAddress address
Definition: address.h:202
HAL_StatusTypeDef HAL_I2C_Master_Transmit(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout)
void st25dv64k_present_pwd(uint8_t *pwd)
Definition: st25dv64k.c:158
uint8_t st25dv64k_initialised
Definition: st25dv64k.c:42
I2C_HandleTypeDef hi2c1
Definition: main.c:77
#define BLOCK_BYTES
Definition: st25dv64k.c:36
void st25dv64k_user_read_bytes(uint16_t address, void *pdata, uint8_t size)
Definition: st25dv64k.c:111
This file contains all the functions prototypes for the HAL module driver.
uint8_t st25dv64k_rd_cfg(uint16_t address)
Definition: st25dv64k.c:140
void st25dv64k_wr_cfg(uint16_t address, uint8_t data)
Definition: st25dv64k.c:150
#define ADDR_WRITE_SYS
Definition: st25dv64k.c:32
HAL_StatusTypeDef HAL_I2C_Master_Receive(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout)
#define REG_ENDA2
Definition: st25dv64k.c:19
#define HAL_MAX_DELAY
Definition: stm32f4xx_hal_def.h:76
uint8_t st25dv64k_user_read(uint16_t address)
Definition: st25dv64k.c:93
Header of cmsis_os.c A new set of APIs are added in addition to existing ones, these APIs are specifi...
osStatus osSemaphoreRelease(osSemaphoreId semaphore_id)
Release a Semaphore token.
Definition: cmsis_os.c:862
#define ADDR_WRITE
Definition: st25dv64k.c:30
static png_bytep size_t size
Definition: pngwrite.c:2170
I2C handle Structure definition.
Definition: stm32f4xx_hal_i2c.h:164