Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>C51</strong> Functions<br />
• Can specify<br />
– Register bank used<br />
– Memory Model<br />
– Function as an interrupt<br />
– Re-entrancy<br />
• [return_type] func_name([args]) [model] [re-entrant] [interrupt n] [using n]<br />
int square(int x)<br />
{<br />
return(x * x);<br />
}<br />
Embedded Systems 2 2 - 28 C Programming