Professional Documents
Culture Documents
Unit I 20ec211 Es &iot
Unit I 20ec211 Es &iot
To provide all necessary inputs to the students for them to grow into
• Definition:
– Embedded systems are specialized computer systems
designed to perform specific tasks or functions within larger
systems or devices.
– They are often dedicated to a particular function and have
constraints on size, power consumption, and performance.
– Processor+ Special hardware+ Embedded software
– Special hardware-Application specific
– Firmware-Executed in the processor
Smartphones, automotive
Personal computers, servers,
Examples systems, medical devices,
laptops, workstations
industrial control systems
• It takes the input from the input ports either analog or digital
and processes, calculates and converts the data and gives
the resulting data through the connected device-Which
either controls, drives and displays the connected devices.
• Rule 2.2 (req) Source code shall only use /* … */ style comments.
• Rule 2.3 (req) The character sequence /* shall not be used within a
comment.
The double-slash comments (//) expire at the end of the
line. Slash-star (/*) comments are in effect until a closing
comment mark (*/)
struct gnd_speed
{
uint16_t speed; /* mph */
/* Not Compliant - speed is in different units */
} * y;
x->speed = y->speed;
L3 P1-P4
#ifndef MY_HEADER_H
#define MY_HEADER_H
#endif
switch (expr)
{ case 0: i = 17;
/* Falls through into default code */
default: printf(".oe%d\n".•
, i);
}
return 0;
}
#include <limits.h>
void func(unsigned int ui_a, unsigned int ui_b) {
unsigned int usum;
if (UINT_MAX - ui_a < ui_b) { /* Handle error */
}
else
{ usum = ui_a + ui_b; }/* ... */ }