Skip to content

Commit

Permalink
Merge pull request #3 from weston-embedded/release/v2.11.01
Browse files Browse the repository at this point in the history
Release/v2.11.01
  • Loading branch information
wes-jmagasrevy authored May 20, 2021
2 parents 50adea7 + e343729 commit aed9c26
Show file tree
Hide file tree
Showing 10 changed files with 79 additions and 24 deletions.
4 changes: 2 additions & 2 deletions Cfg/Template/dhcp-c_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* uC/DHCPc
* Dynamic Host Configuration Protocol Client
*
* Copyright 2004-2020 Silicon Laboratories Inc. www.silabs.com
* Copyright 2004-2021 Silicon Laboratories Inc. www.silabs.com
*
* SPDX-License-Identifier: APACHE-2.0
*
Expand All @@ -22,7 +22,7 @@
* TEMPLATE
*
* Filename : dhcp-c_cfg.h
* Version : V2.11.00
* Version : V2.11.01
*********************************************************************************************************
*/

Expand Down
2 changes: 1 addition & 1 deletion Examples/dhcp-c_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* DHCPc SINGLE INTERFACE
*
* Filename : dhcp-c_init.c
* Version : V2.11.00
* Version : V2.11.01
*********************************************************************************************************
* Note(s) : (1) This example shows how to initialize uC/DHCPc, start DHCP negotiation on 1 interface,
* request parameters from the server during the negotiation. The function returns only
Expand Down
2 changes: 1 addition & 1 deletion Examples/dhcp-c_mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* DHCPc MANAGER
*
* Filename : dhcp-c_mgr.c
* Version : V2.11.00
* Version : V2.11.01
*********************************************************************************************************
* Note(s) : (1) This example shows how to initialize uC/DHCPc and manage DHCP following the interface link
* state change (restart DHCP negotiation when the link move UP to DOWN to UP). This example use
Expand Down
2 changes: 1 addition & 1 deletion Examples/dhcp-c_multiple_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* DHCPc MULTIPLE INTERFACE
*
* Filename : dhcp-c_multiple_if.c
* Version : V2.11.00
* Version : V2.11.01
*********************************************************************************************************
* Note(s) : (1) This example shows how to initialize uC/DHCPc, start DHCP negotiation on many interface
* and return only when all DHCP negotiation are completed.
Expand Down
4 changes: 2 additions & 2 deletions OS/uCOS-II/dhcp-c_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* uC/DHCPc
* Dynamic Host Configuration Protocol Client
*
* Copyright 2004-2020 Silicon Laboratories Inc. www.silabs.com
* Copyright 2004-2021 Silicon Laboratories Inc. www.silabs.com
*
* SPDX-License-Identifier: APACHE-2.0
*
Expand All @@ -22,7 +22,7 @@
* Micrium uC/OS-II
*
* Filename : dhcp-c_os.c
* Version : V2.11.00
* Version : V2.11.01
*********************************************************************************************************
* Note(s) : (1) Assumes uC/OS-II V2.86 (or more recent version) is included in the project build.
*
Expand Down
4 changes: 2 additions & 2 deletions OS/uCOS-III/dhcp-c_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* uC/DHCPc
* Dynamic Host Configuration Protocol Client
*
* Copyright 2004-2020 Silicon Laboratories Inc. www.silabs.com
* Copyright 2004-2021 Silicon Laboratories Inc. www.silabs.com
*
* SPDX-License-Identifier: APACHE-2.0
*
Expand All @@ -21,7 +21,7 @@
* Micrium uC/OS-III
*
* Filename : dhcp-c_os.c
* Version : V2.11.00
* Version : V2.11.01
*********************************************************************************************************
* Note(s) : (1) Assumes uC/OS-III V3.01.0 (or more recent version) is included in the project build.
*
Expand Down
45 changes: 45 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
.. raw:: html

<a href="https://weston-embedded.com/micrium/overview">
<p align="center">
<img src="https://weston-embedded.com/images/logos/Github/uCOS_logo.png">
</p>
</a>

µC/OS is a full-featured embedded operating system originally developed by Micriµm™. In addition to the two highly popular kernels, µC/OS features support for TCP/IP, USB-Device, USB-Host, and Modbus, as well as a robust File System.

Since its founding in 1999 as a private company, Micriµm and its team of engineers have offered world-class embedded software components for the most critical and demanding real-time applications. Recognized as having some of the cleanest code in the industry, with easy-to-understand documentation, the Micrium real-time kernels, and software components have successfully been deployed in thousands of products worldwide across a broad range of industries. Micrium’s µC/OS-II™ kernel has been certified for use in safety-critical applications and remains a respected favorite in the medical, aerospace, and industrial markets. µC/OS continues to be the RTOS of choice for engineers requiring the most reliable and trusted solution for their mission-critical applications.

----------

.. raw:: HTML

<a href="https://weston-embedded.com">
<p align="center">
<img src="https://weston-embedded.com/images/logos/Github/WES_logo.png">
</p>
</a>

Founded by a team of former Micrium employees, Weston Embedded Solutions is the official custodian for the µC/OS RTOS and Stacks software repository to ensure it remains the trusted choice for embedded engineers around the world.

----------

Product Documentation and Release Notes
***************
https://micrium.atlassian.net/

Technical Support
*****************
https://weston-embedded.com/micrium-support

Example Projects
*********
https://weston-embedded.com/micrium-examples

Commercial Licensing Option
*********
https://weston-embedded.com/products/cesium

Who to Contact
*********
https://weston-embedded.com/company/contact
24 changes: 22 additions & 2 deletions Source/dhcp-c.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* uC/DHCPc
* Dynamic Host Configuration Protocol Client
*
* Copyright 2004-2020 Silicon Laboratories Inc. www.silabs.com
* Copyright 2004-2021 Silicon Laboratories Inc. www.silabs.com
*
* SPDX-License-Identifier: APACHE-2.0
*
Expand All @@ -20,7 +20,7 @@
* DHCP CLIENT
*
* Filename : dhcp-c.c
* Version : V2.11.00
* Version : V2.11.01
*********************************************************************************************************
* Note(s) : (1) Supports Dynamic Host Configuration Protocol as described in RFC #2131 with the
* following features/restrictions/constraints :
Expand Down Expand Up @@ -503,6 +503,10 @@ void DHCPc_Start (NET_IF_NBR if_nbr,


#if (DHCPc_CFG_ARG_CHK_EXT_EN == DEF_ENABLED)
if (perr == DEF_NULL) { /* Validate perr ptr. */
CPU_SW_EXCEPTION();
}

if (req_param_tbl_qty > 0) {
if (preq_param_tbl == (DHCPc_OPT_CODE *)0) {
*perr = DHCPc_ERR_NULL_PTR;
Expand Down Expand Up @@ -638,6 +642,12 @@ void DHCPc_Stop (NET_IF_NBR if_nbr,
DHCPc_COMM_MSG comm_msg;


#if (DHCPc_CFG_ARG_CHK_EXT_EN == DEF_ENABLED)
if (perr == DEF_NULL) { /* Validate perr ptr. */
CPU_SW_EXCEPTION();
}
#endif

if (DHCPc_InitDone != DEF_YES) { /* If init NOT complete, exit (see Note #3). */
*perr = DHCPc_ERR_INIT_INCOMPLETE;
return;
Expand Down Expand Up @@ -743,6 +753,12 @@ DHCPc_STATUS DHCPc_ChkStatus (NET_IF_NBR if_nbr,
CPU_SR_ALLOC();


#if (DHCPc_CFG_ARG_CHK_EXT_EN == DEF_ENABLED)
if (perr_last == DEF_NULL) { /* Validate perr_last ptr. */
CPU_SW_EXCEPTION();
}
#endif

if (DHCPc_InitDone != DEF_YES) { /* If init NOT complete, exit (see Note #1). */
*perr_last = DHCPc_ERR_INIT_INCOMPLETE;
return (DHCP_STATUS_NONE);
Expand Down Expand Up @@ -852,6 +868,10 @@ void DHCPc_GetOptVal (NET_IF_NBR if_nbr,

/* -------------- VALIDATE BUF & BUF LEN -------------- */
#if (DHCPc_CFG_ARG_CHK_EXT_EN == DEF_ENABLED)
if (perr == DEF_NULL) { /* Validate perr ptr. */
CPU_SW_EXCEPTION();
}

if ((pval_buf == (CPU_INT08U *)0) ||
(pval_buf_len == (CPU_INT16U *)0)) {
*perr = DHCPc_ERR_NULL_PTR;
Expand Down
6 changes: 3 additions & 3 deletions Source/dhcp-c.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* uC/DHCPc
* Dynamic Host Configuration Protocol Client
*
* Copyright 2004-2020 Silicon Laboratories Inc. www.silabs.com
* Copyright 2004-2021 Silicon Laboratories Inc. www.silabs.com
*
* SPDX-License-Identifier: APACHE-2.0
*
Expand All @@ -20,7 +20,7 @@
* DHCP CLIENT
*
* Filename : dhcp-c.h
* Version : V2.11.00
* Version : V2.11.01
*********************************************************************************************************
* Note(s) : (1) Supports Dynamic Host Configuration Protocol as described in RFC #2131 with the
* following features/restrictions/constraints :
Expand Down Expand Up @@ -101,7 +101,7 @@
*********************************************************************************************************
*/

#define DHCPc_VERSION 21100u /* See Note #1. */
#define DHCPc_VERSION 21101u /* See Note #1. */


/*
Expand Down
10 changes: 0 additions & 10 deletions readme.md

This file was deleted.

0 comments on commit aed9c26

Please sign in to comment.