From 6c2455f4810f8dd048a3ff13a233a5f13b556ea4 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 15 Mar 2014 14:46:35 +0000 Subject: stmhal: Put an array in ROM. --- stmhal/usbd_cdc_interface.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'stmhal/usbd_cdc_interface.c') 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 ---------------------------------------------------------*/ -- cgit v1.2.3