From 5732be224c69c35efdc44f250e83e42cf52e2526 Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 14 Nov 2018 16:03:58 +0700 Subject: update example for PR. correct share_control definition - rename dcd,hal to dcd_samd51, hal_samd51 since some IDE has issue with duplicated names (e.g keil, ses). --- src/device/control.c | 2 ++ src/device/control.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/device') diff --git a/src/device/control.c b/src/device/control.c index 5856f0628..26dd8fb35 100644 --- a/src/device/control.c +++ b/src/device/control.c @@ -48,6 +48,8 @@ control_t control_state; +CFG_TUSB_ATTR_USBRAM CFG_TUSB_MEM_ALIGN uint8_t _shared_control_buffer[64]; + void controld_reset(uint8_t rhport) { control_state.current_stage = CONTROL_STAGE_SETUP; } diff --git a/src/device/control.h b/src/device/control.h index 881c99ead..633ccb60c 100644 --- a/src/device/control.h +++ b/src/device/control.h @@ -61,7 +61,7 @@ typedef struct { uint8_t config; } control_t; -CFG_TUSB_ATTR_USBRAM CFG_TUSB_MEM_ALIGN uint8_t _shared_control_buffer[64]; +extern uint8_t _shared_control_buffer[64]; tusb_error_t controld_process_setup_request(uint8_t rhport, tusb_control_request_t const * const p_request); -- cgit v1.3.1