diff options
| author | Ha Thach <[email protected]> | 2025-10-15 20:59:58 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-15 20:59:58 +0700 |
| commit | 79445c2386adefb207a76a70d87578b53c3e7922 (patch) | |
| tree | 5708fc6d90853ad091da2cb4320dae77ba9ec469 /src/class | |
| parent | 38255ffc3879e9aef12796ce25b58a2c654ce67d (diff) | |
| parent | 4dfac3f3566268450b46f1c19899b0b53bf48706 (diff) | |
Merge pull request #3306 from hathach/refactor-buildsystem
Refactor buildsystem and bsp
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/audio/audio_device.h | 1 | ||||
| -rw-r--r-- | src/class/net/ecm_rndis_device.c | 2 | ||||
| -rw-r--r-- | src/class/net/net_device.h | 7 |
3 files changed, 8 insertions, 2 deletions
diff --git a/src/class/audio/audio_device.h b/src/class/audio/audio_device.h index fd47c649d..00948767e 100644 --- a/src/class/audio/audio_device.h +++ b/src/class/audio/audio_device.h @@ -360,6 +360,7 @@ bool tud_audio_feedback_format_correction_cb(uint8_t func_id); #if CFG_TUD_AUDIO_ENABLE_INTERRUPT_EP void tud_audio_int_done_cb(uint8_t rhport); +void tud_audio_int_xfer_cb(uint8_t rhport); #endif // Invoked when audio set interface request received diff --git a/src/class/net/ecm_rndis_device.c b/src/class/net/ecm_rndis_device.c index 299eb97c8..7dff66823 100644 --- a/src/class/net/ecm_rndis_device.c +++ b/src/class/net/ecm_rndis_device.c @@ -35,8 +35,6 @@ #include "net_device.h" #include "rndis_protocol.h" -extern void rndis_class_set_handler(uint8_t *data, int size); /* found in ./misc/networking/rndis_reports.c */ - #define CFG_TUD_NET_PACKET_PREFIX_LEN sizeof(rndis_data_packet_t) #define CFG_TUD_NET_PACKET_SUFFIX_LEN 0 diff --git a/src/class/net/net_device.h b/src/class/net/net_device.h index fff2623b7..ef5ecffc8 100644 --- a/src/class/net/net_device.h +++ b/src/class/net/net_device.h @@ -56,6 +56,13 @@ typedef enum #endif //--------------------------------------------------------------------+ +// Implemented by Application +//--------------------------------------------------------------------+ +#if CFG_TUD_ECM_RNDIS +extern void rndis_class_set_handler(uint8_t *data, int size); +#endif + +//--------------------------------------------------------------------+ // Application API //--------------------------------------------------------------------+ |
