Skip to content

Commit 9729693

Browse files
committed
update version
1 parent 83dbe5f commit 9729693

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.14"
23+
#define MG_VERSION "7.15"
2424

2525
#ifdef __cplusplus
2626
extern "C" {
@@ -3074,22 +3074,14 @@ struct mg_tcpip_driver_tm4c_data {
30743074
#endif
30753075

30763076

3077-
#if MG_ENABLE_TCPIP && defined(MG_ENABLE_DRIVER_XMC) && MG_ENABLE_DRIVER_XMC
3077+
#if MG_ENABLE_TCPIP && defined(MG_ENABLE_DRIVER_W5500) && MG_ENABLE_DRIVER_W5500
30783078

3079-
struct mg_tcpip_driver_xmc_data {
3080-
// 13.2.8.1 Station Management Functions
3081-
// MDC clock divider (). MDC clock is derived from ETH MAC clock
3082-
// It must not exceed 2.5MHz
3083-
// ETH Clock range DIVIDER mdc_cr VALUE
3084-
// --------------------------------------------
3085-
// -1 <-- tell driver to guess the value
3086-
// 60-100 MHz ETH Clock/42 0
3087-
// 100-150 MHz ETH Clock/62 1
3088-
// 20-35 MHz ETH Clock/16 2
3089-
// 35-60 MHz ETH Clock/26 3
3090-
// 150-250 MHz ETH Clock/102 4
3091-
// 250-300 MHz ETH Clock/124 5
3092-
// 110, 111 Reserved
3079+
#endif
3080+
3081+
3082+
#if MG_ENABLE_TCPIP && defined(MG_ENABLE_DRIVER_XMC7) && MG_ENABLE_DRIVER_XMC7
3083+
3084+
struct mg_tcpip_driver_xmc7_data {
30933085
int mdc_cr; // Valid values: -1, 0, 1, 2, 3, 4, 5
30943086
uint8_t phy_addr;
30953087
};
@@ -3099,31 +3091,45 @@ struct mg_tcpip_driver_xmc_data {
30993091
#endif
31003092

31013093
#ifndef MG_DRIVER_MDC_CR
3102-
#define MG_DRIVER_MDC_CR 4
3094+
#define MG_DRIVER_MDC_CR 3
31033095
#endif
31043096

31053097
#define MG_TCPIP_DRIVER_INIT(mgr) \
31063098
do { \
3107-
static struct mg_tcpip_driver_xmc_data driver_data_; \
3099+
static struct mg_tcpip_driver_xmc7_data driver_data_; \
31083100
static struct mg_tcpip_if mif_; \
31093101
driver_data_.mdc_cr = MG_DRIVER_MDC_CR; \
31103102
driver_data_.phy_addr = MG_TCPIP_PHY_ADDR; \
31113103
mif_.ip = MG_TCPIP_IP; \
31123104
mif_.mask = MG_TCPIP_MASK; \
31133105
mif_.gw = MG_TCPIP_GW; \
3114-
mif_.driver = &mg_tcpip_driver_xmc; \
3106+
mif_.driver = &mg_tcpip_driver_xmc7; \
31153107
mif_.driver_data = &driver_data_; \
31163108
MG_SET_MAC_ADDRESS(mif_.mac); \
31173109
mg_tcpip_init(mgr, &mif_); \
3118-
MG_INFO(("Driver: xmc, MAC: %M", mg_print_mac, mif_.mac)); \
3110+
MG_INFO(("Driver: xmc7, MAC: %M", mg_print_mac, mif_.mac)); \
31193111
} while (0)
31203112

31213113
#endif
31223114

31233115

3124-
#if MG_ENABLE_TCPIP && defined(MG_ENABLE_DRIVER_XMC7) && MG_ENABLE_DRIVER_XMC7
31253116

3126-
struct mg_tcpip_driver_xmc7_data {
3117+
#if MG_ENABLE_TCPIP && defined(MG_ENABLE_DRIVER_XMC) && MG_ENABLE_DRIVER_XMC
3118+
3119+
struct mg_tcpip_driver_xmc_data {
3120+
// 13.2.8.1 Station Management Functions
3121+
// MDC clock divider (). MDC clock is derived from ETH MAC clock
3122+
// It must not exceed 2.5MHz
3123+
// ETH Clock range DIVIDER mdc_cr VALUE
3124+
// --------------------------------------------
3125+
// -1 <-- tell driver to guess the value
3126+
// 60-100 MHz ETH Clock/42 0
3127+
// 100-150 MHz ETH Clock/62 1
3128+
// 20-35 MHz ETH Clock/16 2
3129+
// 35-60 MHz ETH Clock/26 3
3130+
// 150-250 MHz ETH Clock/102 4
3131+
// 250-300 MHz ETH Clock/124 5
3132+
// 110, 111 Reserved
31273133
int mdc_cr; // Valid values: -1, 0, 1, 2, 3, 4, 5
31283134
uint8_t phy_addr;
31293135
};
@@ -3133,28 +3139,27 @@ struct mg_tcpip_driver_xmc7_data {
31333139
#endif
31343140

31353141
#ifndef MG_DRIVER_MDC_CR
3136-
#define MG_DRIVER_MDC_CR 3
3142+
#define MG_DRIVER_MDC_CR 4
31373143
#endif
31383144

31393145
#define MG_TCPIP_DRIVER_INIT(mgr) \
31403146
do { \
3141-
static struct mg_tcpip_driver_xmc7_data driver_data_; \
3147+
static struct mg_tcpip_driver_xmc_data driver_data_; \
31423148
static struct mg_tcpip_if mif_; \
31433149
driver_data_.mdc_cr = MG_DRIVER_MDC_CR; \
31443150
driver_data_.phy_addr = MG_TCPIP_PHY_ADDR; \
31453151
mif_.ip = MG_TCPIP_IP; \
31463152
mif_.mask = MG_TCPIP_MASK; \
31473153
mif_.gw = MG_TCPIP_GW; \
3148-
mif_.driver = &mg_tcpip_driver_xmc7; \
3154+
mif_.driver = &mg_tcpip_driver_xmc; \
31493155
mif_.driver_data = &driver_data_; \
31503156
MG_SET_MAC_ADDRESS(mif_.mac); \
31513157
mg_tcpip_init(mgr, &mif_); \
3152-
MG_INFO(("Driver: xmc7, MAC: %M", mg_print_mac, mif_.mac)); \
3158+
MG_INFO(("Driver: xmc, MAC: %M", mg_print_mac, mif_.mac)); \
31533159
} while (0)
31543160

31553161
#endif
31563162

3157-
31583163
#ifdef __cplusplus
31593164
}
31603165
#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.14"
1+
#define MG_VERSION "7.15"

0 commit comments

Comments
 (0)