Flotsam / mbed-modifed

Dependents:   EEPROMWrite Full-Project

Fork of mbed-src by mbed official

Committer:
ptcrews
Date:
Mon Nov 02 19:22:36 2015 +0000
Revision:
636:c140da0be6c8
Parent:
482:d9a48e768ce0
Changed serial_api.c for Nucleo L1 boards. Changed define conditionals from USART4 and USART5 to UART4 and UART5.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 390:35c2c1cf29cd 1
mbed_official 390:35c2c1cf29cd 2 /* PHY link mode */
mbed_official 390:35c2c1cf29cd 3 #define NEGO_FAIL (0)
mbed_official 390:35c2c1cf29cd 4 #define HALF_10M (1)
mbed_official 390:35c2c1cf29cd 5 #define FULL_10M (2)
mbed_official 390:35c2c1cf29cd 6 #define HALF_TX (3)
mbed_official 390:35c2c1cf29cd 7 #define FULL_TX (4)
mbed_official 390:35c2c1cf29cd 8
mbed_official 390:35c2c1cf29cd 9 typedef void (ethernetext_cb_fnc)(void);
mbed_official 390:35c2c1cf29cd 10
mbed_official 390:35c2c1cf29cd 11 typedef struct tag_ethernet_cfg {
mbed_official 390:35c2c1cf29cd 12 int int_priority;
mbed_official 390:35c2c1cf29cd 13 ethernetext_cb_fnc *recv_cb;
mbed_official 390:35c2c1cf29cd 14 char *ether_mac;
mbed_official 390:35c2c1cf29cd 15 } ethernet_cfg_t;
mbed_official 390:35c2c1cf29cd 16
mbed_official 390:35c2c1cf29cd 17 extern int ethernetext_init(ethernet_cfg_t *p_ethcfg);
mbed_official 390:35c2c1cf29cd 18 extern void ethernetext_start_stop(int32_t mode);
mbed_official 390:35c2c1cf29cd 19 extern int ethernetext_chk_link_mode(void);
mbed_official 482:d9a48e768ce0 20 extern void ethernetext_set_link_mode(int32_t link);