mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-25 20:28:27 +00:00
update to new driver name
This commit is contained in:
1 parent
e515c7279a
commit
62788f9667
5 files changed
+10
-10
No files matched your search
@@ -43,13 +43,13 @@ int main(void) {
|
|||||||
mg_log_set(MG_LL_DEBUG); // Set log level
|
mg_log_set(MG_LL_DEBUG); // Set log level
|
||||||
|
|
||||||
// Initialise Mongoose network stack
|
// Initialise Mongoose network stack
|
||||||
struct mg_tcpip_driver_stm32_data driver_data = {.mdc_cr = 4};
|
struct mg_tcpip_driver_stm32f_data driver_data = {.mdc_cr = 4};
|
||||||
struct mg_tcpip_if mif = {.mac = GENERATE_LOCALLY_ADMINISTERED_MAC(),
|
struct mg_tcpip_if mif = {.mac = GENERATE_LOCALLY_ADMINISTERED_MAC(),
|
||||||
// Uncomment below for static configuration:
|
// Uncomment below for static configuration:
|
||||||
// .ip = mg_htonl(MG_U32(192, 168, 0, 223)),
|
// .ip = mg_htonl(MG_U32(192, 168, 0, 223)),
|
||||||
// .mask = mg_htonl(MG_U32(255, 255, 255, 0)),
|
// .mask = mg_htonl(MG_U32(255, 255, 255, 0)),
|
||||||
// .gw = mg_htonl(MG_U32(192, 168, 0, 1)),
|
// .gw = mg_htonl(MG_U32(192, 168, 0, 1)),
|
||||||
.driver = &mg_tcpip_driver_stm32,
|
.driver = &mg_tcpip_driver_stm32f,
|
||||||
.driver_data = &driver_data};
|
.driver_data = &driver_data};
|
||||||
mg_tcpip_init(&mgr, &mif);
|
mg_tcpip_init(&mgr, &mif);
|
||||||
mg_timer_add(&mgr, BLINK_PERIOD_MS, MG_TIMER_REPEAT, timer_fn, &mif);
|
mg_timer_add(&mgr, BLINK_PERIOD_MS, MG_TIMER_REPEAT, timer_fn, &mif);
|
||||||
|
|||||||
@@ -40,13 +40,13 @@ static void server(void *args) {
|
|||||||
mg_log_set(MG_LL_DEBUG); // Set log level
|
mg_log_set(MG_LL_DEBUG); // Set log level
|
||||||
|
|
||||||
// Initialise Mongoose network stack
|
// Initialise Mongoose network stack
|
||||||
struct mg_tcpip_driver_stm32_data driver_data = {.mdc_cr = 4};
|
struct mg_tcpip_driver_stm32f_data driver_data = {.mdc_cr = 4};
|
||||||
struct mg_tcpip_if mif = {.mac = GENERATE_LOCALLY_ADMINISTERED_MAC(),
|
struct mg_tcpip_if mif = {.mac = GENERATE_LOCALLY_ADMINISTERED_MAC(),
|
||||||
// Uncomment below for static configuration:
|
// Uncomment below for static configuration:
|
||||||
// .ip = mg_htonl(MG_U32(192, 168, 0, 223)),
|
// .ip = mg_htonl(MG_U32(192, 168, 0, 223)),
|
||||||
// .mask = mg_htonl(MG_U32(255, 255, 255, 0)),
|
// .mask = mg_htonl(MG_U32(255, 255, 255, 0)),
|
||||||
// .gw = mg_htonl(MG_U32(192, 168, 0, 1)),
|
// .gw = mg_htonl(MG_U32(192, 168, 0, 1)),
|
||||||
.driver = &mg_tcpip_driver_stm32,
|
.driver = &mg_tcpip_driver_stm32f,
|
||||||
.driver_data = &driver_data};
|
.driver_data = &driver_data};
|
||||||
mg_tcpip_init(&mgr, &mif);
|
mg_tcpip_init(&mgr, &mif);
|
||||||
mg_timer_add(&mgr, BLINK_PERIOD_MS, MG_TIMER_REPEAT, timer_fn, &mif);
|
mg_timer_add(&mgr, BLINK_PERIOD_MS, MG_TIMER_REPEAT, timer_fn, &mif);
|
||||||
|
|||||||
@@ -32,13 +32,13 @@ static void server(void *args) {
|
|||||||
mg_log_set(MG_LL_DEBUG); // Set log level
|
mg_log_set(MG_LL_DEBUG); // Set log level
|
||||||
|
|
||||||
// Initialise Mongoose network stack
|
// Initialise Mongoose network stack
|
||||||
struct mg_tcpip_driver_stm32_data driver_data = {.mdc_cr = 4};
|
struct mg_tcpip_driver_stm32f_data driver_data = {.mdc_cr = 4};
|
||||||
struct mg_tcpip_if mif = {.mac = GENERATE_LOCALLY_ADMINISTERED_MAC(),
|
struct mg_tcpip_if mif = {.mac = GENERATE_LOCALLY_ADMINISTERED_MAC(),
|
||||||
// Uncomment below for static configuration:
|
// Uncomment below for static configuration:
|
||||||
// .ip = mg_htonl(MG_U32(192, 168, 0, 223)),
|
// .ip = mg_htonl(MG_U32(192, 168, 0, 223)),
|
||||||
// .mask = mg_htonl(MG_U32(255, 255, 255, 0)),
|
// .mask = mg_htonl(MG_U32(255, 255, 255, 0)),
|
||||||
// .gw = mg_htonl(MG_U32(192, 168, 0, 1)),
|
// .gw = mg_htonl(MG_U32(192, 168, 0, 1)),
|
||||||
.driver = &mg_tcpip_driver_stm32,
|
.driver = &mg_tcpip_driver_stm32f,
|
||||||
.driver_data = &driver_data};
|
.driver_data = &driver_data};
|
||||||
mg_tcpip_init(&mgr, &mif);
|
mg_tcpip_init(&mgr, &mif);
|
||||||
mg_timer_add(&mgr, BLINK_PERIOD_MS, MG_TIMER_REPEAT, timer_fn, &mif);
|
mg_timer_add(&mgr, BLINK_PERIOD_MS, MG_TIMER_REPEAT, timer_fn, &mif);
|
||||||
|
|||||||
@@ -32,13 +32,13 @@ static void server(const void *args) {
|
|||||||
mg_log_set(MG_LL_DEBUG); // Set log level
|
mg_log_set(MG_LL_DEBUG); // Set log level
|
||||||
|
|
||||||
// Initialise Mongoose network stack
|
// Initialise Mongoose network stack
|
||||||
struct mg_tcpip_driver_stm32_data driver_data = {.mdc_cr = 4};
|
struct mg_tcpip_driver_stm32f_data driver_data = {.mdc_cr = 4};
|
||||||
struct mg_tcpip_if mif = {.mac = GENERATE_LOCALLY_ADMINISTERED_MAC(),
|
struct mg_tcpip_if mif = {.mac = GENERATE_LOCALLY_ADMINISTERED_MAC(),
|
||||||
// Uncomment below for static configuration:
|
// Uncomment below for static configuration:
|
||||||
// .ip = mg_htonl(MG_U32(192, 168, 0, 223)),
|
// .ip = mg_htonl(MG_U32(192, 168, 0, 223)),
|
||||||
// .mask = mg_htonl(MG_U32(255, 255, 255, 0)),
|
// .mask = mg_htonl(MG_U32(255, 255, 255, 0)),
|
||||||
// .gw = mg_htonl(MG_U32(192, 168, 0, 1)),
|
// .gw = mg_htonl(MG_U32(192, 168, 0, 1)),
|
||||||
.driver = &mg_tcpip_driver_stm32,
|
.driver = &mg_tcpip_driver_stm32f,
|
||||||
.driver_data = &driver_data};
|
.driver_data = &driver_data};
|
||||||
mg_tcpip_init(&mgr, &mif);
|
mg_tcpip_init(&mgr, &mif);
|
||||||
mg_timer_add(&mgr, BLINK_PERIOD_MS, MG_TIMER_REPEAT, timer_fn, &mif);
|
mg_timer_add(&mgr, BLINK_PERIOD_MS, MG_TIMER_REPEAT, timer_fn, &mif);
|
||||||
|
|||||||
@@ -32,13 +32,13 @@ static void server(void *args) {
|
|||||||
mg_log_set(MG_LL_DEBUG); // Set log level
|
mg_log_set(MG_LL_DEBUG); // Set log level
|
||||||
|
|
||||||
// Initialise Mongoose network stack
|
// Initialise Mongoose network stack
|
||||||
struct mg_tcpip_driver_stm32_data driver_data = {.mdc_cr = 4};
|
struct mg_tcpip_driver_stm32f_data driver_data = {.mdc_cr = 4};
|
||||||
struct mg_tcpip_if mif = {.mac = GENERATE_LOCALLY_ADMINISTERED_MAC(),
|
struct mg_tcpip_if mif = {.mac = GENERATE_LOCALLY_ADMINISTERED_MAC(),
|
||||||
// Uncomment below for static configuration:
|
// Uncomment below for static configuration:
|
||||||
// .ip = mg_htonl(MG_U32(192, 168, 0, 223)),
|
// .ip = mg_htonl(MG_U32(192, 168, 0, 223)),
|
||||||
// .mask = mg_htonl(MG_U32(255, 255, 255, 0)),
|
// .mask = mg_htonl(MG_U32(255, 255, 255, 0)),
|
||||||
// .gw = mg_htonl(MG_U32(192, 168, 0, 1)),
|
// .gw = mg_htonl(MG_U32(192, 168, 0, 1)),
|
||||||
.driver = &mg_tcpip_driver_stm32,
|
.driver = &mg_tcpip_driver_stm32f,
|
||||||
.driver_data = &driver_data};
|
.driver_data = &driver_data};
|
||||||
mg_tcpip_init(&mgr, &mif);
|
mg_tcpip_init(&mgr, &mif);
|
||||||
mg_timer_add(&mgr, BLINK_PERIOD_MS, MG_TIMER_REPEAT, timer_fn, &mif);
|
mg_timer_add(&mgr, BLINK_PERIOD_MS, MG_TIMER_REPEAT, timer_fn, &mif);
|
||||||
|
|||||||
Reference in new issue
Block a user