Skip to content

Commit 2df53c3

Browse files
committed
update version
1 parent 53ec9ad commit 2df53c3

File tree

2 files changed

+33
-28
lines changed

2 files changed

+33
-28
lines changed

mongoose.h

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#ifndef MONGOOSE_H
2121
#define MONGOOSE_H
2222

23-
#define MG_VERSION "7.15"
23+
#define MG_VERSION "7.16"
2424

2525
#ifdef __cplusplus
2626
extern "C" {
@@ -3147,22 +3147,14 @@ struct mg_tcpip_driver_tms570_data {
31473147

31483148

31493149

3150-
#if MG_ENABLE_TCPIP && defined(MG_ENABLE_DRIVER_XMC) && MG_ENABLE_DRIVER_XMC
3150+
#if MG_ENABLE_TCPIP && defined(MG_ENABLE_DRIVER_W5500) && MG_ENABLE_DRIVER_W5500
31513151

3152-
struct mg_tcpip_driver_xmc_data {
3153-
// 13.2.8.1 Station Management Functions
3154-
// MDC clock divider (). MDC clock is derived from ETH MAC clock
3155-
// It must not exceed 2.5MHz
3156-
// ETH Clock range DIVIDER mdc_cr VALUE
3157-
// --------------------------------------------
3158-
// -1 <-- tell driver to guess the value
3159-
// 60-100 MHz ETH Clock/42 0
3160-
// 100-150 MHz ETH Clock/62 1
3161-
// 20-35 MHz ETH Clock/16 2
3162-
// 35-60 MHz ETH Clock/26 3
3163-
// 150-250 MHz ETH Clock/102 4
3164-
// 250-300 MHz ETH Clock/124 5
3165-
// 110, 111 Reserved
3152+
#endif
3153+
3154+
3155+
#if MG_ENABLE_TCPIP && defined(MG_ENABLE_DRIVER_XMC7) && MG_ENABLE_DRIVER_XMC7
3156+
3157+
struct mg_tcpip_driver_xmc7_data {
31663158
int mdc_cr; // Valid values: -1, 0, 1, 2, 3, 4, 5
31673159
uint8_t phy_addr;
31683160
};
@@ -3172,31 +3164,45 @@ struct mg_tcpip_driver_xmc_data {
31723164
#endif
31733165

31743166
#ifndef MG_DRIVER_MDC_CR
3175-
#define MG_DRIVER_MDC_CR 4
3167+
#define MG_DRIVER_MDC_CR 3
31763168
#endif
31773169

31783170
#define MG_TCPIP_DRIVER_INIT(mgr) \
31793171
do { \
3180-
static struct mg_tcpip_driver_xmc_data driver_data_; \
3172+
static struct mg_tcpip_driver_xmc7_data driver_data_; \
31813173
static struct mg_tcpip_if mif_; \
31823174
driver_data_.mdc_cr = MG_DRIVER_MDC_CR; \
31833175
driver_data_.phy_addr = MG_TCPIP_PHY_ADDR; \
31843176
mif_.ip = MG_TCPIP_IP; \
31853177
mif_.mask = MG_TCPIP_MASK; \
31863178
mif_.gw = MG_TCPIP_GW; \
3187-
mif_.driver = &mg_tcpip_driver_xmc; \
3179+
mif_.driver = &mg_tcpip_driver_xmc7; \
31883180
mif_.driver_data = &driver_data_; \
31893181
MG_SET_MAC_ADDRESS(mif_.mac); \
31903182
mg_tcpip_init(mgr, &mif_); \
3191-
MG_INFO(("Driver: xmc, MAC: %M", mg_print_mac, mif_.mac)); \
3183+
MG_INFO(("Driver: xmc7, MAC: %M", mg_print_mac, mif_.mac)); \
31923184
} while (0)
31933185

31943186
#endif
31953187

31963188

3197-
#if MG_ENABLE_TCPIP && defined(MG_ENABLE_DRIVER_XMC7) && MG_ENABLE_DRIVER_XMC7
31983189

3199-
struct mg_tcpip_driver_xmc7_data {
3190+
#if MG_ENABLE_TCPIP && defined(MG_ENABLE_DRIVER_XMC) && MG_ENABLE_DRIVER_XMC
3191+
3192+
struct mg_tcpip_driver_xmc_data {
3193+
// 13.2.8.1 Station Management Functions
3194+
// MDC clock divider (). MDC clock is derived from ETH MAC clock
3195+
// It must not exceed 2.5MHz
3196+
// ETH Clock range DIVIDER mdc_cr VALUE
3197+
// --------------------------------------------
3198+
// -1 <-- tell driver to guess the value
3199+
// 60-100 MHz ETH Clock/42 0
3200+
// 100-150 MHz ETH Clock/62 1
3201+
// 20-35 MHz ETH Clock/16 2
3202+
// 35-60 MHz ETH Clock/26 3
3203+
// 150-250 MHz ETH Clock/102 4
3204+
// 250-300 MHz ETH Clock/124 5
3205+
// 110, 111 Reserved
32003206
int mdc_cr; // Valid values: -1, 0, 1, 2, 3, 4, 5
32013207
uint8_t phy_addr;
32023208
};
@@ -3206,28 +3212,27 @@ struct mg_tcpip_driver_xmc7_data {
32063212
#endif
32073213

32083214
#ifndef MG_DRIVER_MDC_CR
3209-
#define MG_DRIVER_MDC_CR 3
3215+
#define MG_DRIVER_MDC_CR 4
32103216
#endif
32113217

32123218
#define MG_TCPIP_DRIVER_INIT(mgr) \
32133219
do { \
3214-
static struct mg_tcpip_driver_xmc7_data driver_data_; \
3220+
static struct mg_tcpip_driver_xmc_data driver_data_; \
32153221
static struct mg_tcpip_if mif_; \
32163222
driver_data_.mdc_cr = MG_DRIVER_MDC_CR; \
32173223
driver_data_.phy_addr = MG_TCPIP_PHY_ADDR; \
32183224
mif_.ip = MG_TCPIP_IP; \
32193225
mif_.mask = MG_TCPIP_MASK; \
32203226
mif_.gw = MG_TCPIP_GW; \
3221-
mif_.driver = &mg_tcpip_driver_xmc7; \
3227+
mif_.driver = &mg_tcpip_driver_xmc; \
32223228
mif_.driver_data = &driver_data_; \
32233229
MG_SET_MAC_ADDRESS(mif_.mac); \
32243230
mg_tcpip_init(mgr, &mif_); \
3225-
MG_INFO(("Driver: xmc7, MAC: %M", mg_print_mac, mif_.mac)); \
3231+
MG_INFO(("Driver: xmc, MAC: %M", mg_print_mac, mif_.mac)); \
32263232
} while (0)
32273233

32283234
#endif
32293235

3230-
32313236
#ifdef __cplusplus
32323237
}
32333238
#endif

src/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define MG_VERSION "7.15"
1+
#define MG_VERSION "7.16"

0 commit comments

Comments
 (0)