WRT54GLSept12

WRT54GLSept12 - Embedded XINU and WRT54GL 1 Topics Logic...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
10/27/11 1 Embedded XINU and WRT54GL
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
10/27/11 2 Topics Logic and shift operators Optimizing operations (mul, div VS shiftL, shiftR) WRT54GL architecture and internals Embedded XINU
Background image of page 2
10/27/11 3 Shift Operators << left shift >> right shift Usage: unsigned int x = 70707; //x = 00000000 00000001 00010100 00110011 unsigned int y, z; y = x << 2; // y = 00000000 00000100 01010000 11001100 z = x >> 2; //z = 00000000 00000000 01000101 00001100
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
10/27/11 4 Logic Operators Bitwise & (AND) Bitwise inclusive | (OR) Bitwise exclusive ^ (XOR) Bitwise negation ~ Usage: unsigned exp1 = 1; unsigned exp2 = 4; printf (“ %d\n”, exp1 | exp2); printf (“ %d\n”, exp1 & exp2); printf (“ %d\n”, exp1 ^ exp2); printf (“ %d\n”, ~exp1);
Background image of page 4
10/27/11 5 Relevance of shift and logic operators Bitwise operations are necessary for much low-level programming, such as writing device drivers, low-level graphics, communications protocol packet assembly and decoding. Device drivers use these operators to test the presence or absence of a bit in a serial port or a device input. (checking for on or off)
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
WRT54GL History of WRT54G Open source firmware Common features Processor architecture (BCM5352) WRT54GL Block diagram
Background image of page 6
History Introduced in 2002 In 2003 Andrew Miklas posted to Linux Kernel Mailing List about Linksys using GPL code in its firmware Linksys executives gave into the pressure from the community, Linksys released the code to the community under GPL.
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Power: 12VDC 1.0amp
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 10/27/2011 for the course CSE 321 at SUNY Buffalo.

Page1 / 21

WRT54GLSept12 - Embedded XINU and WRT54GL 1 Topics Logic...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online