Prusa MINI Firmware overview
|
Header for fatfs applications.
#define OTP_MAC_ADDRESS_ADDR
Definition: otp.h:18
#define PHY_ISFR_INT4
Definition: stm32f4xx_hal_conf.h:230
#define GPIO_MODE_AF_PP
Definition: stm32f4xx_hal_gpio.h:138
void * pextension
Definition: fs.h:60
char TCHAR
Definition: ff.h:62
u16_t len
Definition: pbuf.h:159
int len
Definition: fs.h:58
#define PHY_BCR
Definition: stm32f4xx_hal_conf.h:205
bool error
Definition: auto_build.py:637
#define osThreadDef(name, thread, priority, instances, stacksz)
Definition: cmsis_os.h:468
Definition: stm32f4xx_hal_def.h:57
ip4_addr_t ipaddr
Definition: lwip.c:73
void ethernetif_update_config(struct netif *netif)
#define LWIP_ASSERT(message, assertion)
Definition: debug.h:116
#define PHY_SR
Definition: stm32f4xx_hal_conf.h:224
#define RESET
Definition: dac_mcp4728.h:34
#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
uint32_t Mode
Definition: stm32f4xx_hal_gpio.h:68
uint8_t FATFS_LinkDriver(const Diskio_drvTypeDef *drv, char *path)
Links a compatible diskio driver and increments the number of active linked drivers.
Definition: ff_gen_drv.c:98
#define FS_READ_EOF
Definition: fs.h:42
#define GPIO_PIN_13
Definition: stm32f4xx_hal_gpio.h:115
#define GPIO_PIN_7
Definition: stm32f4xx_hal_gpio.h:109
void ethernetif_notify_conn_changed(struct netif *netif)
netif_input_fn input
Definition: netif.h:244
#define GPIO_PIN_2
Definition: stm32f4xx_hal_gpio.h:104
err_t ethernetif_init(struct netif *netif)
Definition: ethernetif.c:560
FRESULT f_open(FIL *fp, const TCHAR *path, BYTE mode)
Definition: ff.c:3296
#define NETIF_FLAG_ETHARP
Definition: netif.h:91
void fs_close_custom(struct fs_file *file)
Definition: fs_custom.c:32
u8_t hwaddr[NETIF_MAX_HWADDR_LEN]
Definition: netif.h:303
uint32_t Alternate
Definition: stm32f4xx_hal_gpio.h:77
uint32_t u32_t
Definition: arch.h:123
uint8_t i
Definition: screen_test_graph.c:72
struct pbuf * next
Definition: pbuf.h:144
void HAL_ETH_MspDeInit(ETH_HandleTypeDef *ethHandle)
Definition: ethernetif.c:166
uint32_t Pull
Definition: stm32f4xx_hal_gpio.h:71
u8_t pbuf_free(struct pbuf *p)
Definition: pbuf.c:715
static FIL webFile
Definition: fs_custom.c:10
u16_t mtu
Definition: netif.h:299
DWORD FSIZE_t
Definition: ff.h:78
void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin)
#define USED
Definition: freertos_openocd.c:17
__ALIGN_BEGIN ETH_DMADescTypeDef DMARxDscrTab[ETH_RXBUFNB] __ALIGN_END
Definition: ethernetif.c:84
u8_t flags
Definition: netif.h:305
ETH_HandleTypeDef heth
Definition: ethernetif.c:108
#define TIME_WAITING_FOR_INPUT
Definition: ethernetif.c:69
#define NULL
Definition: usbd_def.h:53
netif_linkoutput_fn linkoutput
Definition: netif.h:255
#define ETH_TX_BUF_SIZE
Definition: stm32f4xx_hal_conf.h:187
#define PHY_LINKED_STATUS
Definition: stm32f4xx_hal_conf.h:220
osStatus osDelay(uint32_t millisec)
Wait for Timeout (Time Delay)
Definition: cmsis_os.c:365
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
#define INTERFACE_THREAD_STACK_SIZE
Definition: ethernetif.c:71
u32_t sys_now(void)
Returns the current time in milliseconds when LWIP_TIMERS == 1 and NO_SYS == 1.
Definition: ethernetif.c:616
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 PHY_DUPLEX_STATUS
Definition: stm32f4xx_hal_conf.h:227
#define netif_is_link_up(netif)
Definition: netif.h:413
struct pbuf * pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
Definition: pbuf.c:248
#define assert_param(expr)
Include module's header file.
Definition: stm32f4xx_hal_conf.h:444
#define FA_READ
Definition: ff.h:326
int fs_open_custom(struct fs_file *file, const char *name)
Definition: fs_custom.c:13
Definition: dlg_result.h:11
#define GPIO_PIN_12
Definition: stm32f4xx_hal_gpio.h:114
#define PHY_AUTONEGO_COMPLETE
Definition: stm32f4xx_hal_conf.h:219
function completed; no error or event occurred.
Definition: cmsis_os.h:235
#define ETH_TXBUFNB
Definition: stm32f4xx_hal_conf.h:189
static err_t low_level_output_arp_off(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr)
Definition: ethernetif.c:536
#define f_size(fp)
Definition: ff.h:280
FATFS USBHFatFS
Definition: fatfs.c:53
#define configMAX_PRIORITIES
Definition: FreeRTOSConfig.h:110
#define ETH_RXBUFNB
Definition: stm32f4xx_hal_conf.h:188
u8_t hwaddr_len
Definition: netif.h:301
FIL USBHFile
Definition: fatfs.c:54
void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
int index
Definition: fs.h:59
#define GPIO_PIN_1
Definition: stm32f4xx_hal_gpio.h:103
void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
char name[2]
Definition: netif.h:307
#define GPIO_NOPULL
Definition: stm32f4xx_hal_gpio.h:170
#define IFNAME1
Definition: ethernetif.c:74
const char * data
Definition: fs.h:57
if(size<=((png_alloc_size_t) -1) - ob)
Definition: pngwrite.c:2176
#define GPIO_SPEED_FREQ_VERY_HIGH
Definition: stm32f4xx_hal_gpio.h:161
void ethernetif_input(void const *argument)
Definition: ethernetif.c:511
osSemaphoreId s_xSemaphore
Definition: ethernetif.c:106
#define LAN8742A_PHY_ADDRESS
Definition: stm32f4xx_hal_conf.h:194
void HAL_ETH_MspInit(ETH_HandleTypeDef *ethHandle)
Definition: ethernetif.c:116
static void low_level_init(struct netif *netif)
Definition: ethernetif.c:243
dlg_result_t
Definition: dlg_result.h:9
const uint8_t[]
Definition: 404_html.c:3
priority: realtime (highest)
Definition: cmsis_os.h:224
Definition: dlg_result.h:10
static struct pbuf * low_level_input(struct netif *netif)
Definition: ethernetif.c:430
#define f_eof(fp)
Definition: ff.h:277
void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
s8_t err_t
Definition: err.h:57
#define IFNAME0
Definition: ethernetif.c:73
unsigned long DWORD
Definition: onboard_sd.h:15
FRESULT
Definition: ff.h:214
#define GPIO_PIN_5
Definition: stm32f4xx_hal_gpio.h:107
#define PHY_SPEED_STATUS
Definition: stm32f4xx_hal_conf.h:226
priority: low
Definition: cmsis_os.h:219
uint8_t retUSBH
Definition: fatfs.c:51
#define PHY_ISFR
Definition: stm32f4xx_hal_conf.h:229
: Header for main.c file. This file contains the common defines of the application.
uint32_t Pin
Definition: stm32f4xx_hal_gpio.h:65
uint32_t Speed
Definition: stm32f4xx_hal_gpio.h:74
void HAL_NVIC_DisableIRQ(IRQn_Type IRQn)
#define NETIF_FLAG_LINK_UP
Definition: netif.h:87
int fs_read_custom(struct fs_file *file, char *buffer, int count)
Definition: fs_custom.c:37
#define PHY_BSR
Definition: stm32f4xx_hal_conf.h:206
void MX_FATFS_Init(void)
Definition: fatfs.c:60
const int USED uxTopUsedPriority
Definition: freertos_openocd.c:20
#define ETH_HWADDR_LEN
Definition: ethernet.h:50
#define GPIO_PIN_11
Definition: stm32f4xx_hal_gpio.h:113
void ethernetif_link(const void *arg)
Definition: ethernetif.c:210
#define PHY_AUTONEGOTIATION
Definition: stm32f4xx_hal_conf.h:214
Header of cmsis_os.c A new set of APIs are added in addition to existing ones, these APIs are specifi...
void HAL_ETH_RxCpltCallback(ETH_HandleTypeDef *heth)
Ethernet Rx Transfer completed callback.
Definition: ethernetif.c:205
#define ETH_RX_BUF_SIZE
Definition: stm32f4xx_hal_conf.h:186
static err_t low_level_output(struct netif *netif, struct pbuf *p)
Definition: ethernetif.c:352
FRESULT f_read(FIL *fp, void *buff, UINT btr, UINT *br)
Definition: ff.c:3499
FRESULT f_close(FIL *fp)
Definition: ff.c:3801
osThreadId osThreadCreate(const osThreadDef_t *thread_def, void *argument)
Create a thread and add it to Active Threads and set it to state READY.
Definition: cmsis_os.c:245
const Diskio_drvTypeDef USBH_Driver
Definition: usbh_diskio.c:77
GPIO Init structure definition.
Definition: stm32f4xx_hal_gpio.h:63
char USBHPath[4]
Definition: fatfs.c:52
DWORD get_fattime(void)
Gets Time from RTC.
Definition: fatfs.c:74
void * payload
Definition: pbuf.h:147
osStatus osSemaphoreRelease(osSemaphoreId semaphore_id)
Release a Semaphore token.
Definition: cmsis_os.c:862
#define osThread(name)
Definition: cmsis_os.h:478
u32_t sys_jiffies(void)
Returns the current time in milliseconds when LWIP_TIMERS == 1 and NO_SYS == 1.
Definition: ethernetif.c:606
#define NETIF_FLAG_BROADCAST
Definition: netif.h:81
#define GPIO_PIN_4
Definition: stm32f4xx_hal_gpio.h:106