contiki/cpu
Oliver Schmidt a5d7a06027 Enhanced Ethernet drivers.
Made Ethernet drivers easier to consume by assembly programs.
* Replaced function pointers with JMP instructions.
* Provide return values additionally via Carry flag.

Reset Ethernet chips on initialization.
Both for the CS8900A and the W5100 the data sheets just say that
the RESET bit is automatically cleared after the RESET. This may
be interpreted in two ways:
1) There's no need to be afraid of reading the RESET bit as 1 and
unintentionally trigger a RESET by writing it back after ORing in
some other bit.
2) The RESET process isn't complete before the RESET bit hasn't
become 0 again.
It's impossible for me to empirically falsify the latter option
as the drivers are supposed to work on faster machines than the
ones I have access to. And if the RESET process includes things
like oscillators then the time to complete the RESET could differ
even between multiple exemplars of the same chip. Therefore I
opted to presume the latter option.
However that means a non-exsistent chip may cause an infinite
loop while waiting for the RESET bit to be cleared so I finally
added code to detect the presence of the Ethernet chips. There's
a risk of a chip being locked up in a way that makes the detection
fail - and therefore the RESET not being performed. This catch-22
needs to be solved by the user doing a hard RESET.
2014-06-12 22:56:35 +02:00
..
6502 Enhanced Ethernet drivers. 2014-06-12 22:56:35 +02:00
arm Updated include paths for the moved files under net/ 2014-01-26 23:20:23 +01:00
avr Merge pull request #617 from nfi/extended-radio-api 2014-06-03 21:32:53 +02:00
cc253x Implement extended RF API for the CC2530 RF 2014-04-23 12:16:50 +01:00
cc2430 Added stub for extended radio API for cc2430 2014-04-03 13:38:21 +02:00
cc2538 Merge pull request #691 from hexluthor/rts-cts 2014-06-04 09:22:58 +01:00
mc1322x Added stub for extended radio API for mc1322x 2014-04-03 13:38:26 +02:00
msp430 Support verbosity control when building MSP430-based platforms with 2014-04-11 17:36:42 +02:00
native Updated include paths for the moved files under net/ 2014-01-26 23:20:23 +01:00
pic32 A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix 2013-11-24 20:20:11 +01:00
rl78 Added stub for extended radio API for rl78 2014-04-03 13:38:28 +02:00
stm32w108 Merge pull request #617 from nfi/extended-radio-api 2014-06-03 21:32:53 +02:00
x86 A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix 2013-11-24 20:20:11 +01:00