added prescaler for 16 bit pwm in LPC1347 target
Fork of mbed-dev by
targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/ethernetext_api.h@0:9b334a45a8ff, 2015-10-01 (annotated)
- Committer:
- bogdanm
- Date:
- Thu Oct 01 15:25:22 2015 +0300
- Revision:
- 0:9b334a45a8ff
- Child:
- 144:ef7eb2e8f9f7
Initial commit on mbed-dev
Replaces mbed-src (now inactive)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 0:9b334a45a8ff | 1 | |
bogdanm | 0:9b334a45a8ff | 2 | /* PHY link mode */ |
bogdanm | 0:9b334a45a8ff | 3 | #define NEGO_FAIL (0) |
bogdanm | 0:9b334a45a8ff | 4 | #define HALF_10M (1) |
bogdanm | 0:9b334a45a8ff | 5 | #define FULL_10M (2) |
bogdanm | 0:9b334a45a8ff | 6 | #define HALF_TX (3) |
bogdanm | 0:9b334a45a8ff | 7 | #define FULL_TX (4) |
bogdanm | 0:9b334a45a8ff | 8 | |
bogdanm | 0:9b334a45a8ff | 9 | typedef void (ethernetext_cb_fnc)(void); |
bogdanm | 0:9b334a45a8ff | 10 | |
bogdanm | 0:9b334a45a8ff | 11 | typedef struct tag_ethernet_cfg { |
bogdanm | 0:9b334a45a8ff | 12 | int int_priority; |
bogdanm | 0:9b334a45a8ff | 13 | ethernetext_cb_fnc *recv_cb; |
bogdanm | 0:9b334a45a8ff | 14 | char *ether_mac; |
bogdanm | 0:9b334a45a8ff | 15 | } ethernet_cfg_t; |
bogdanm | 0:9b334a45a8ff | 16 | |
bogdanm | 0:9b334a45a8ff | 17 | extern int ethernetext_init(ethernet_cfg_t *p_ethcfg); |
bogdanm | 0:9b334a45a8ff | 18 | extern void ethernetext_start_stop(int32_t mode); |
bogdanm | 0:9b334a45a8ff | 19 | extern int ethernetext_chk_link_mode(void); |
bogdanm | 0:9b334a45a8ff | 20 | extern void ethernetext_set_link_mode(int32_t link); |