summaryrefslogtreecommitdiff
path: root/stmhal/usbd_cdc_interface.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-15 14:46:35 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-15 14:46:35 +0000
commit6c2455f4810f8dd048a3ff13a233a5f13b556ea4 (patch)
treec4e9204829dacc45f8648f26b80c428fae720eef /stmhal/usbd_cdc_interface.c
parentfdbc22e4d27b9d1c686647c9c67a32206f7bc83a (diff)
stmhal: Put an array in ROM.
Diffstat (limited to 'stmhal/usbd_cdc_interface.c')
-rw-r--r--stmhal/usbd_cdc_interface.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/stmhal/usbd_cdc_interface.c b/stmhal/usbd_cdc_interface.c
index e441c0b51..402fba2ce 100644
--- a/stmhal/usbd_cdc_interface.c
+++ b/stmhal/usbd_cdc_interface.c
@@ -76,12 +76,11 @@ static void Error_Handler(void);
//static void ComPort_Config(void);
static void TIM_Config(void);
-USBD_CDC_ItfTypeDef USBD_CDC_fops =
-{
- CDC_Itf_Init,
- CDC_Itf_DeInit,
- CDC_Itf_Control,
- CDC_Itf_Receive
+const USBD_CDC_ItfTypeDef USBD_CDC_fops = {
+ CDC_Itf_Init,
+ CDC_Itf_DeInit,
+ CDC_Itf_Control,
+ CDC_Itf_Receive
};
/* Private functions ---------------------------------------------------------*/