Skip to content

Commit

Permalink
Latest RM1204-1241-0.420.0-7add7d3 on PATREON - UPD FOR VCP BREAK CHA…
Browse files Browse the repository at this point in the history
…NGES
  • Loading branch information
RogueMaster committed Dec 8, 2024
1 parent 5e71b68 commit cb1e129
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 4 deletions.
3 changes: 2 additions & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ This software is for experimental purposes only and is not meant for any illegal
- Updated: [Bluetooth/USB Remote v1.8 (By Cutch)-OFW](https://github.com/flipperdevices/flipperzero-firmware/pull/1330) [feat(hid_ptt): support Gather (By SapphicCode)](https://github.com/Next-Flip/Momentum-Firmware/pull/304)
- GPIO: [VCP Break Support (By gsurkov)](https://github.com/DarkFlippers/unleashed-firmware/commit/fc25c9fba02abb640eaed84988f7184fbfb823c6)
- [Increase system stacks reserved memory size (By Astrrra)](https://github.com/DarkFlippers/unleashed-firmware/commit/0fd26ee14826247ea77c1ee8ee121952ae6924c7)
- [Several apps updated with VCP Break Support Updates (By xMasterX)](https://github.com/xMasterX/all-the-plugins/commit/4758cd65e5fc923d1970fd17fc0dd4e5e8af7604#diff-4779dde12b41b371f2fd268ddef9c6a24bf02aca75b489d535c0991adda90369)
- [Apps updated with VCP Break Support Updates (By xMasterX)](https://github.com/xMasterX/all-the-plugins/commit/4758cd65e5fc923d1970fd17fc0dd4e5e8af7604#diff-4779dde12b41b371f2fd268ddef9c6a24bf02aca75b489d535c0991adda90369)
- Updated:-[Temp Sensors Reader 1.6 (By quen0n)](https://github.com/quen0n/Unitemp-Flipper-Zero-Plugin) [Recenter the pressure canvas if hPa unit is selected (By shininghero)](https://github.com/xMasterX/all-the-plugins/commit/bc4e84ef8a37e93e4a549a24fa04eb6655ff9d63)
- Added: [Frequency Analyzer (External) v1.0 (By xMasterX)](https://github.com/xMasterX/all-the-plugins/tree/dev/non_catalog_apps/freq_analyzer_ext)
- UL: SubGHz: [keeloq jolly motors add full support with add manually (By pkooiman)](https://github.com/DarkFlippers/unleashed-firmware/commit/dd6e0a9b721c09b82a127aadd0a1accba8b18f7c)
- OFW: [Replace mf_classic_dict.nfc with Proxmark3 version #4013](https://github.com/flipperdevices/flipperzero-firmware/pull/4013) RM MF DICT Updated to include latest keys
- [Apps updated with VCP Break Support Updates (By RogueMaster)](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/commit/)
- Coming Soon: OFW: [Storage: remove LFS #3577](https://github.com/flipperdevices/flipperzero-firmware/pull/3577) [FuriEventLoop Pt.2 #3703](https://github.com/flipperdevices/flipperzero-firmware/pull/3703) [#3824](https://github.com/flipperdevices/flipperzero-firmware/pull/3824) [#3836](https://github.com/flipperdevices/flipperzero-firmware/pull/3836) [#3834](https://github.com/flipperdevices/flipperzero-firmware/pull/3834) [#3830](https://github.com/flipperdevices/flipperzero-firmware/pull/3834) [#3837](https://github.com/flipperdevices/flipperzero-firmware/pull/3837) [#3849](https://github.com/flipperdevices/flipperzero-firmware/pull/3849) [#3852](https://github.com/flipperdevices/flipperzero-firmware/pull/3852) [#3879](https://github.com/flipperdevices/flipperzero-firmware/pull/3879) [#3875](https://github.com/flipperdevices/flipperzero-firmware/pull/3875) [#3859](https://github.com/flipperdevices/flipperzero-firmware/pull/3859) [#3863](https://github.com/flipperdevices/flipperzero-firmware/pull/3863) [#3866](https://github.com/flipperdevices/flipperzero-firmware/pull/3866) [#3865](https://github.com/flipperdevices/flipperzero-firmware/pull/3865) [#3887](https://github.com/flipperdevices/flipperzero-firmware/pull/3887) [#3892](https://github.com/flipperdevices/flipperzero-firmware/pull/3892) [#3909](https://github.com/flipperdevices/flipperzero-firmware/pull/3909) [#3881](https://github.com/flipperdevices/flipperzero-firmware/pull/3881) [#3942](https://github.com/flipperdevices/flipperzero-firmware/pull/3942) [#3841](https://github.com/flipperdevices/flipperzero-firmware/pull/3841) [#3950](https://github.com/flipperdevices/flipperzero-firmware/pull/3950) [#3952](https://github.com/flipperdevices/flipperzero-firmware/pull/3952) [#3958](https://github.com/flipperdevices/flipperzero-firmware/pull/3958) [#3963](https://github.com/flipperdevices/flipperzero-firmware/pull/3963) [#3971](https://github.com/flipperdevices/flipperzero-firmware/pull/3971) [#3961](https://github.com/flipperdevices/flipperzero-firmware/pull/3961) [#3906](https://github.com/flipperdevices/flipperzero-firmware/pull/3906) [#3978](https://github.com/flipperdevices/flipperzero-firmware/pull/3978) [#3980](https://github.com/flipperdevices/flipperzero-firmware/pull/3980)

<a name="release">
Expand Down
1 change: 1 addition & 0 deletions applications/external/can_fd/usb_can_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ static const CdcCallbacks cdc_cb = {
vcp_state_callback,
vcp_on_cdc_control_line,
vcp_on_line_config,
NULL,
};

/* ----------------------------------------------------------- GLOBAL VARIABLES--------------------------------------------------------------- */
Expand Down
1 change: 1 addition & 0 deletions applications/external/digifcom/usbuart/usb_uart_bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ static const CdcCallbacks cdc_cb = {
vcp_state_callback,
vcp_on_cdc_control_line,
vcp_on_line_config,
NULL,
};

/* USB UART worker */
Expand Down
14 changes: 13 additions & 1 deletion applications/external/gpio_i2c/usb_uart_bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ typedef enum {
WorkerEvtLineCfgSet = (1 << 6),
WorkerEvtCtrlLineSet = (1 << 7),

WorkerEvtSendBreak = (1 << 8),
} WorkerEvtFlags;

#define WORKER_ALL_RX_EVENTS \
(WorkerEvtStop | WorkerEvtRxDone | WorkerEvtCfgChange | WorkerEvtLineCfgSet | \
WorkerEvtCtrlLineSet | WorkerEvtCdcTxComplete)
WorkerEvtCtrlLineSet | WorkerEvtCdcTxComplete | WorkerEvtSendBreak)
#define WORKER_ALL_TX_EVENTS (WorkerEvtTxStop | WorkerEvtCdcRx)

struct UsbUartBridge {
Expand Down Expand Up @@ -69,13 +70,15 @@ static void vcp_on_cdc_rx(void* context);
static void vcp_state_callback(void* context, uint8_t state);
static void vcp_on_cdc_control_line(void* context, uint8_t state);
static void vcp_on_line_config(void* context, struct usb_cdc_line_coding* config);
static void vcp_on_cdc_break(void* context, uint16_t duration);

static const CdcCallbacks cdc_cb = {
vcp_on_cdc_tx_complete,
vcp_on_cdc_rx,
vcp_state_callback,
vcp_on_cdc_control_line,
vcp_on_line_config,
vcp_on_cdc_break,
};

/* USB UART worker */
Expand Down Expand Up @@ -287,6 +290,9 @@ static int32_t usb_uart_worker(void* context) {
if(events & WorkerEvtCtrlLineSet) {
usb_uart_update_ctrl_lines(usb_uart);
}
if(events & WorkerEvtSendBreak) {
furi_hal_serial_send_break(usb_uart->serial_handle);
}
}
usb_uart_vcp_deinit(usb_uart, usb_uart->cfg.vcp_ch);
usb_uart_serial_deinit(usb_uart);
Expand Down Expand Up @@ -377,6 +383,12 @@ static void vcp_on_line_config(void* context, struct usb_cdc_line_coding* config
furi_thread_flags_set(furi_thread_get_id(usb_uart->thread), WorkerEvtLineCfgSet);
}

static void vcp_on_cdc_break(void* context, uint16_t duration) {
UNUSED(duration);
UsbUartBridge* usb_uart = (UsbUartBridge*)context;
furi_thread_flags_set(furi_thread_get_id(usb_uart->thread), WorkerEvtSendBreak);
}

UsbUartBridge* usb_uart_enable(UsbUartConfig* cfg) {
UsbUartBridge* usb_uart = malloc(sizeof(UsbUartBridge));

Expand Down
2 changes: 1 addition & 1 deletion applications/external/hc11_wireless_modem/passthru_view.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static void vcp_on_state_change(void*, uint8_t);

/*** Virtual COM port callbacks ***/
static CdcCallbacks cdc_callbacks =
{vcp_on_cdc_tx_complete, vcp_on_cdc_rx, vcp_on_state_change, NULL, NULL};
{vcp_on_cdc_tx_complete, vcp_on_cdc_rx, vcp_on_state_change, NULL, NULL, NULL};

/*** Virtual COM port RX/TX thread events ***/
typedef enum {
Expand Down
2 changes: 1 addition & 1 deletion applications/external/noptel_lrf_sampler/passthru_view.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ static void vcp_on_line_config(void*, struct usb_cdc_line_coding*);

/*** Virtual COM port callbacks ***/
static CdcCallbacks cdc_callbacks =
{vcp_on_cdc_tx_complete, vcp_on_cdc_rx, vcp_on_state_change, NULL, vcp_on_line_config};
{vcp_on_cdc_tx_complete, vcp_on_cdc_rx, vcp_on_state_change, NULL, vcp_on_line_config, NULL};

/*** Virtual COM port RX/TX thread events ***/
typedef enum {
Expand Down
1 change: 1 addition & 0 deletions applications/external/yuricable/lib/uart/usb_uart_bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ static const CdcCallbacks cdc_cb = {
vcp_state_callback,
vcp_on_cdc_control_line,
vcp_on_line_config,
NULL,
};

/* USB UART worker */
Expand Down

0 comments on commit cb1e129

Please sign in to comment.