Ethernet for Nucleo and Disco board STM32F746 works with gcc and arm. IAC is untested

Dependents:   STM32F746_iothub_client_sample_mqtt DISCO-F746NG_Ethernet Nucleo_F746ZG_Ethernet thethingsiO-DISCO_F746NG-mqtt ... more

Committer:
DieterGraef
Date:
Thu Jun 23 09:04:23 2016 +0000
Revision:
1:28ba13dd96f7
Parent:
0:d26c1b55cfca
corrected MAC issue. The MAC is now 02:00:00:xx:xx:xx where xx is the sum over the unique device register

Who changed what in which revision?

UserRevisionLine numberNew contents of line
DieterGraef 0:d26c1b55cfca 1 /* EthernetInterface.h */
DieterGraef 0:d26c1b55cfca 2 /* Copyright (C) 2012 mbed.org, MIT License
DieterGraef 0:d26c1b55cfca 3 *
DieterGraef 0:d26c1b55cfca 4 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
DieterGraef 0:d26c1b55cfca 5 * and associated documentation files (the "Software"), to deal in the Software without restriction,
DieterGraef 0:d26c1b55cfca 6 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
DieterGraef 0:d26c1b55cfca 7 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
DieterGraef 0:d26c1b55cfca 8 * furnished to do so, subject to the following conditions:
DieterGraef 0:d26c1b55cfca 9 *
DieterGraef 0:d26c1b55cfca 10 * The above copyright notice and this permission notice shall be included in all copies or
DieterGraef 0:d26c1b55cfca 11 * substantial portions of the Software.
DieterGraef 0:d26c1b55cfca 12 *
DieterGraef 0:d26c1b55cfca 13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
DieterGraef 0:d26c1b55cfca 14 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
DieterGraef 0:d26c1b55cfca 15 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DieterGraef 0:d26c1b55cfca 16 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
DieterGraef 0:d26c1b55cfca 17 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
DieterGraef 0:d26c1b55cfca 18 */
DieterGraef 0:d26c1b55cfca 19
DieterGraef 0:d26c1b55cfca 20 // Architecture specific Ethernet interface
DieterGraef 0:d26c1b55cfca 21 // Must be implemented by each target
DieterGraef 0:d26c1b55cfca 22
DieterGraef 0:d26c1b55cfca 23 #ifndef ETHARCH_H_
DieterGraef 0:d26c1b55cfca 24 #define ETHARCH_H_
DieterGraef 0:d26c1b55cfca 25
DieterGraef 0:d26c1b55cfca 26 #include "lwip/netif.h"
DieterGraef 0:d26c1b55cfca 27
DieterGraef 0:d26c1b55cfca 28 #ifdef __cplusplus
DieterGraef 0:d26c1b55cfca 29 extern "C" {
DieterGraef 0:d26c1b55cfca 30 #endif
DieterGraef 0:d26c1b55cfca 31
DieterGraef 0:d26c1b55cfca 32 void eth_arch_enable_interrupts(void);
DieterGraef 0:d26c1b55cfca 33 void eth_arch_disable_interrupts(void);
DieterGraef 0:d26c1b55cfca 34 err_t eth_arch_enetif_init(struct netif *netif);
DieterGraef 0:d26c1b55cfca 35
DieterGraef 0:d26c1b55cfca 36 #ifdef __cplusplus
DieterGraef 0:d26c1b55cfca 37 }
DieterGraef 0:d26c1b55cfca 38 #endif
DieterGraef 0:d26c1b55cfca 39
DieterGraef 0:d26c1b55cfca 40 #endif // #ifndef ETHARCHINTERFACE_H_
DieterGraef 0:d26c1b55cfca 41