mirror of https://github.com/ARMmbed/mbed-os.git
change proprietary headers (APACHE2.0)
correct proprietary headers for some of our codespull/4438/head
parent
9e9878f377
commit
4d52f985eb
|
@ -22,73 +22,6 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0
|
|
||||||
typedef enum {
|
|
||||||
UART_1 = (int)USART1_BASE,
|
|
||||||
UART_2 = (int)USART2_BASE,
|
|
||||||
UART_3 = (int)USART3_BASE,
|
|
||||||
UART_4 = (int)UART4_BASE,
|
|
||||||
UART_5 = (int)UART5_BASE,
|
|
||||||
UART_6 = (int)USART6_BASE
|
|
||||||
} UARTName;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
ADC0_0 = 0,
|
|
||||||
ADC0_1,
|
|
||||||
ADC0_2,
|
|
||||||
ADC0_3,
|
|
||||||
ADC0_4,
|
|
||||||
ADC0_5,
|
|
||||||
ADC0_6,
|
|
||||||
ADC0_7,
|
|
||||||
ADC0_8,
|
|
||||||
ADC0_9,
|
|
||||||
ADC0_10,
|
|
||||||
ADC0_11,
|
|
||||||
ADC0_12,
|
|
||||||
ADC0_13,
|
|
||||||
ADC0_14,
|
|
||||||
ADC0_15
|
|
||||||
} ADCName;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
DAC_0 = 0,
|
|
||||||
DAC_1
|
|
||||||
} DACName;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
SPI_1 = (int)SPI1_BASE,
|
|
||||||
SPI_2 = (int)SPI2_BASE,
|
|
||||||
SPI_3 = (int)SPI3_BASE,
|
|
||||||
} SPIName;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
I2C_1 = (int)I2C1_BASE,
|
|
||||||
I2C_2 = (int)I2C2_BASE,
|
|
||||||
I2C_3 = (int)I2C3_BASE
|
|
||||||
} I2CName;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
PWM_1 = 1,
|
|
||||||
PWM_2,
|
|
||||||
PWM_3,
|
|
||||||
PWM_4,
|
|
||||||
PWM_5,
|
|
||||||
PWM_6
|
|
||||||
} PWMName;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
CAN_1 = (int)CAN1_BASE,
|
|
||||||
CAN_2 = (int)CAN2_BASE
|
|
||||||
} CANName;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
//#define STDIO_UART_TX PA_6
|
|
||||||
//#define STDIO_UART_RX PA_7
|
|
||||||
//#define STDIO_UART UART0
|
|
||||||
|
|
||||||
// modified by jimmysqf
|
|
||||||
#define UART_3 3
|
#define UART_3 3
|
||||||
#define STDIO_UART_TX PB_0
|
#define STDIO_UART_TX PB_0
|
||||||
#define STDIO_UART_RX PB_1
|
#define STDIO_UART_RX PB_1
|
||||||
|
@ -106,3 +39,4 @@ typedef enum {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -163,31 +163,6 @@ typedef enum {
|
||||||
|
|
||||||
DA_0 = (PORT_U<<4|0),
|
DA_0 = (PORT_U<<4|0),
|
||||||
DA_1 = (PORT_U<<4|1),
|
DA_1 = (PORT_U<<4|1),
|
||||||
// Arduino connector namings
|
|
||||||
/*
|
|
||||||
A0 = PA_0,
|
|
||||||
A1 = PA_1,
|
|
||||||
A2 = PA_4,
|
|
||||||
A3 = PB_0,
|
|
||||||
A4 = PC_1,
|
|
||||||
A5 = PC_0,
|
|
||||||
D0 = PA_3,
|
|
||||||
D1 = PA_2,
|
|
||||||
D2 = PA_10,
|
|
||||||
D3 = PB_3,
|
|
||||||
D4 = PB_5,
|
|
||||||
D5 = PB_4,
|
|
||||||
D6 = PB_10,
|
|
||||||
D7 = PA_8,
|
|
||||||
D8 = PA_9,
|
|
||||||
D9 = PC_7,
|
|
||||||
D10 = PB_6,
|
|
||||||
D11 = PA_7,
|
|
||||||
D12 = PA_6,
|
|
||||||
D13 = PA_5,
|
|
||||||
D14 = PB_9,
|
|
||||||
D15 = PB_8,
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Generic signals namings
|
// Generic signals namings
|
||||||
LED1 = PB_4,
|
LED1 = PB_4,
|
||||||
|
|
|
@ -1,3 +1,19 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Copyright (c) 2013-2016 Realtek Semiconductor Corp.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*
|
||||||
|
******************************************************************************/
|
||||||
#ifndef __LIST_H
|
#ifndef __LIST_H
|
||||||
#define __LIST_H
|
#define __LIST_H
|
||||||
|
|
||||||
|
@ -260,3 +276,4 @@ static inline void list_splice_init(struct list_head *list,
|
||||||
pos = n, n = list_entry(n->member.next, type, member))
|
pos = n, n = list_entry(n->member.next, type, member))
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,17 @@
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
|
* Copyright (c) 2013-2016 Realtek Semiconductor Corp.
|
||||||
*
|
*
|
||||||
* Copyright(c) 2007 - 2014 Realtek Corporation. All rights reserved.
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
#ifndef __PLATFORM_STDLIB_H__
|
#ifndef __PLATFORM_STDLIB_H__
|
||||||
|
@ -267,3 +277,4 @@ extern void vPortFree( void *pv );
|
||||||
|
|
||||||
|
|
||||||
#endif //__PLATFORM_STDLIB_H__
|
#endif //__PLATFORM_STDLIB_H__
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,18 @@
|
||||||
//----------------------------------------------------------------------------//
|
/* Copyright (c) 2013-2016 Realtek Semiconductor Corp.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <dhcp/dhcps.h>
|
#include <dhcp/dhcps.h>
|
||||||
//#include <flash/stm32_flash.h>
|
//#include <flash/stm32_flash.h>
|
||||||
#include <platform/platform_stdlib.h>
|
#include <platform/platform_stdlib.h>
|
||||||
|
@ -1923,3 +1937,4 @@ void wifi_set_indicate_mgnt(int enable)
|
||||||
|
|
||||||
//----------------------------------------------------------------------------//
|
//----------------------------------------------------------------------------//
|
||||||
#endif //#if CONFIG_WLAN
|
#endif //#if CONFIG_WLAN
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,26 @@
|
||||||
//----------------------------------------------------------------------------//
|
/******************************************************************************
|
||||||
/**
|
* Copyright (c) 2013-2016 Realtek Semiconductor Corp.
|
||||||
******************************************************************************
|
*
|
||||||
* @file wifi_conf.h
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* @author
|
* you may not use this file except in compliance with the License.
|
||||||
* @version
|
* You may obtain a copy of the License at
|
||||||
* @brief This file provides user interface for Wi-Fi station and AP mode configuration
|
*
|
||||||
* base on the functionalities provided by Realtek Wi-Fi driver.
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
******************************************************************************
|
*
|
||||||
* @attention
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
*
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* This module is a confidential and proprietary property of RealTek and
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* possession or use of this module requires written permission of RealTek.
|
* See the License for the specific language governing permissions and
|
||||||
*
|
* limitations under the License.
|
||||||
* Copyright(c) 2016, Realtek Semiconductor Corporation. All rights reserved.
|
*
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
*/
|
* @file wifi_conf.h
|
||||||
|
* @author
|
||||||
|
* @version
|
||||||
|
* @brief This file provides user interface for Wi-Fi station and AP mode configuration
|
||||||
|
* base on the functionalities provided by Realtek Wi-Fi driver.
|
||||||
|
******************************************************************************
|
||||||
|
*/
|
||||||
#ifndef __WIFI_API_H
|
#ifndef __WIFI_API_H
|
||||||
#define __WIFI_API_H
|
#define __WIFI_API_H
|
||||||
|
|
||||||
|
@ -839,3 +845,4 @@ void wifi_set_indicate_mgnt(int enable);
|
||||||
#endif // __WIFI_API_H
|
#endif // __WIFI_API_H
|
||||||
|
|
||||||
//----------------------------------------------------------------------------//
|
//----------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,20 @@
|
||||||
//----------------------------------------------------------------------------//
|
/******************************************************************************
|
||||||
|
* Copyright (c) 2013-2016 Realtek Semiconductor Corp.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*
|
||||||
|
******************************************************************************/
|
||||||
|
|
||||||
#include "wifi/wifi_ind.h"
|
#include "wifi/wifi_ind.h"
|
||||||
#include "wifi/wifi_conf.h"
|
#include "wifi/wifi_conf.h"
|
||||||
#include "osdep_service.h"
|
#include "osdep_service.h"
|
||||||
|
|
|
@ -1,18 +1,25 @@
|
||||||
/**
|
/******************************************************************************
|
||||||
******************************************************************************
|
* Copyright (c) 2013-2016 Realtek Semiconductor Corp.
|
||||||
* @file wifi_ind.h
|
*
|
||||||
* @author
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* @version
|
* you may not use this file except in compliance with the License.
|
||||||
* @brief This file provides the functions related to event handler mechanism.
|
* You may obtain a copy of the License at
|
||||||
******************************************************************************
|
*
|
||||||
* @attention
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* This module is a confidential and proprietary property of RealTek and
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* possession or use of this module requires written permission of RealTek.
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
*
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* Copyright(c) 2016, Realtek Semiconductor Corporation. All rights reserved.
|
* See the License for the specific language governing permissions and
|
||||||
******************************************************************************
|
* limitations under the License.
|
||||||
*/
|
*
|
||||||
|
******************************************************************************
|
||||||
|
* @file wifi_ind.h
|
||||||
|
* @author
|
||||||
|
* @version
|
||||||
|
* @brief This file provides the functions related to event handler mechanism.
|
||||||
|
******************************************************************************
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef _WIFI_INDICATE_H
|
#ifndef _WIFI_INDICATE_H
|
||||||
#define _WIFI_INDICATE_H
|
#define _WIFI_INDICATE_H
|
||||||
|
|
|
@ -1,3 +1,19 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Copyright (c) 2013-2016 Realtek Semiconductor Corp.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*
|
||||||
|
******************************************************************************/
|
||||||
#include "tcpip.h"
|
#include "tcpip.h"
|
||||||
#include "wifi/wifi_conf.h"
|
#include "wifi/wifi_conf.h"
|
||||||
|
|
||||||
|
@ -463,3 +479,4 @@ void cmd_promisc(int argc, char **argv)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif //#if CONFIG_WLAN
|
#endif //#if CONFIG_WLAN
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* mbed Microcontroller Library
|
/******************************************************************************
|
||||||
* Copyright (c) 2013-2016 Realtek Semiconductor Corp.
|
* Copyright (c) 2013-2016 Realtek Semiconductor Corp.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
@ -12,7 +12,8 @@
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*
|
||||||
|
******************************************************************************/
|
||||||
#include <wifi_util.h>
|
#include <wifi_util.h>
|
||||||
#include <platform/platform_stdlib.h>
|
#include <platform/platform_stdlib.h>
|
||||||
#include <wifi/wifi_conf.h>
|
#include <wifi/wifi_conf.h>
|
||||||
|
@ -1332,3 +1333,4 @@ void wext_set_indicate_mgnt(int enable)
|
||||||
rtw_set_indicate_mgnt(enable);
|
rtw_set_indicate_mgnt(enable);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,19 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Copyright (c) 2013-2016 Realtek Semiconductor Corp.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*
|
||||||
|
******************************************************************************/
|
||||||
#ifndef _UTIL_H
|
#ifndef _UTIL_H
|
||||||
#define _UTIL_H
|
#define _UTIL_H
|
||||||
|
|
||||||
|
@ -73,3 +89,4 @@ int wext_set_gen_ie(const char *ifname, char *buf, __u16 buf_len, __u16 flags);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _UTIL_H */
|
#endif /* _UTIL_H */
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,19 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Copyright (c) 2013-2016 Realtek Semiconductor Corp.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*
|
||||||
|
******************************************************************************/
|
||||||
#include "osdep_service.h"
|
#include "osdep_service.h"
|
||||||
#include "dhcps.h"
|
#include "dhcps.h"
|
||||||
#include "tcpip.h"
|
#include "tcpip.h"
|
||||||
|
@ -736,3 +752,4 @@ void dhcps_deinit(void)
|
||||||
dhcps_ip_table_semaphore = NULL;
|
dhcps_ip_table_semaphore = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,19 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Copyright (c) 2013-2016 Realtek Semiconductor Corp.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*
|
||||||
|
******************************************************************************/
|
||||||
#ifndef __DHCPS_H__
|
#ifndef __DHCPS_H__
|
||||||
#define __DHCPS_H__
|
#define __DHCPS_H__
|
||||||
|
|
||||||
|
@ -140,4 +155,5 @@ void dhcps_deinit(void);
|
||||||
|
|
||||||
extern struct netif *netif_default;
|
extern struct netif *netif_default;
|
||||||
|
|
||||||
#endif
|
#endif /*__DHCPS_H__*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue