Prusa MINI Firmware overview
|
#include "app.h"
#include "dbg.h"
#include "cmsis_os.h"
#include "config.h"
#include "adc.h"
#include "jogwheel.h"
#include "hwio_a3ides.h"
#include "sys.h"
#include "gpio.h"
#include "uartslave.h"
#include "marlin_server.h"
#include "bsod.h"
#include "eeprom.h"
#include "diag.h"
#include "safe_state.h"
#include <Arduino.h>
#include "trinamic.h"
#include "../Marlin/src/module/configuration_store.h"
#include "usbh_core.h"
◆ DBG
◆ USBSerial_put_rx_data()
void USBSerial_put_rx_data |
( |
uint8_t * |
buffer, |
|
|
uint32_t |
length |
|
) |
| |
◆ app_setup()
◆ app_idle()
◆ app_run()
114 #ifdef JOGWHEEL_TRACE
120 #endif //JOGWHEEL_TRACE
121 #ifdef SIM_MOTION_TRACE_X
127 #endif //SIM_MOTION_TRACE_X
128 #ifdef SIM_MOTION_TRACE_Y
134 #endif //SIM_MOTION_TRACE_Y
135 #ifdef SIM_MOTION_TRACE_Z
141 #endif //SIM_MOTION_TRACE_Z
◆ app_error()
◆ app_assert()
◆ app_cdc_rx()
◆ app_tim6_tick()
160 static uint8_t cnt_sim_heater = 0;
161 if (++cnt_sim_heater >= 50)
◆ app_tim14_tick()
◆ app_usbhost_reenum()
188 static uint32_t timer = 0;
190 if ((tick - timer) > 100) {
194 if ((tick - timer) > 500) {
195 _dbg(
"USB host reenumerating");
◆ uart6rxbuff
◆ uart6slave
◆ webServerTaskHandle
◆ hiwdg
Marlin 3D Printer Firmware Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
Based on Sprinter and grbl. Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
◆ hUsbHostHS
uint32_t ibufc
Definition: USBSerial.cpp:25
void hwio_safe_state(void)
Put hardware into safe state.
Definition: safe_state.c:8
MarlinSettings settings
Definition: configuration_store.cpp:344
void app_setup(void)
Definition: appmain.cpp:51
uint32_t ibufw
Definition: USBSerial.cpp:27
void uartslave_cycle(uartslave_t *pslave)
Definition: uartslave.c:68
void setup(void)
Definition: Marlin.cpp:818
osStatus osThreadResume(osThreadId thread_id)
Resume execution of a suspended thread.
Definition: cmsis_os.c:1494
void marlin_server_stop_processing(void)
Definition: marlin_server.cpp:293
uint8_t ibuff[USBSERIAL_IBUF_SIZE]
Definition: USBSerial.cpp:24
uint8_t i
Definition: screen_test_graph.c:72
int diag_fastboot
Definition: diag.c:11
Definition: usbh_def.h:333
static bool save()
Definition: configuration_store.cpp:2198
static void reset()
Definition: configuration_store.cpp:2208
uint8_t eeprom_init(void)
Definition: eeprom.c:53
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
void hwio_update_1ms(void)
Definition: hwio_a3ides_2209_02.c:539
uartslave_t uart6slave
Definition: main.c:149
int32_t jogwheel_encoder
Definition: jogwheel.c:10
HAL_StatusTypeDef HAL_IWDG_Refresh(IWDG_HandleTypeDef *hiwdg)
void adc_cycle(void)
Definition: adc.c:65
void loop(void)
Definition: Marlin.cpp:1127
Definition: usbh_def.h:346
int hwio_fan_get_cnt(void)
Definition: hwio_a3ides_2209_02.c:444
int sys_fw_is_valid(void)
Definition: sys.cpp:266
uint8_t jogwheel_signals
Definition: jogwheel.c:7
#define DBG
Definition: appmain.cpp:33
osThreadId webServerTaskHandle
Definition: main.c:100
USBH_StatusTypeDef USBH_ReEnumerate(USBH_HandleTypeDef *phost)
HCD_ReEnumerate Perform a new Enumeration phase.
Definition: usbh_core.c:371
void hwio_fan_set_pwm(int i_fan, int val)
Definition: hwio_a3ides_2209_02.c:447
USBH_HandleTypeDef hUsbHostHS
Definition: usb_host.c:74
const uint8_t[]
Definition: 404_html.c:3
#define _dbg(...)
Definition: dbg.h:50
void sim_heater_init(void)
void app_idle(void)
Definition: appmain.cpp:58
void jogwheel_update_1ms(void)
Definition: jogwheel.c:22
ENUM_StateTypeDef EnumState
Definition: usbh_def.h:453
void app_usbhost_reenum(void)
Definition: appmain.cpp:187
int marlin_server_loop(void)
Definition: marlin_server.cpp:239
#define bsod(fmt,...)
Definition: bsod.h:20
IWDG_HandleTypeDef hiwdg
Definition: watchdog.h:24
marlin_server_idle_t * marlin_server_idle_cb
Definition: marlin_server.cpp:94
void marlin_server_init(void)
Definition: marlin_server.cpp:154
int32_t sim_motion_pos[4]
void USBSerial_put_rx_data(uint8_t *buffer, uint32_t length)
Definition: USBSerial.cpp:53
png_uint_32 length
Definition: png.c:2247
void adc_init(void)
Definition: adc.c:53
__IO HOST_StateTypeDef gState
Definition: usbh_def.h:452
#define USBSERIAL_IBUF_SIZE
Definition: USBSerial.cpp:9
void sim_heater_cycle(void)
void sim_motion_cycle(void)
int marlin_server_processing(void)
Definition: marlin_server.cpp:284