1
S.Ha.R.K. S.Ha.R.K. – – Drivers & Interrupts Drivers & Interrupts
Mauro Marinoni Mauro Marinoni [
[mauro.marinoni@unipv.it
mauro.marinoni@unipv.it]
] Robotic Lab Robotic Lab University of Pavia (Italy) University of Pavia (Italy)
First S.Ha.R.K. Workshop First S.Ha.R.K. Workshop Pontedera Pontedera 28th February 28th February – – 4th March 2005 4th March 2005
2 2 / 55 / 55
Pontedera, 3th March 2005 Pontedera, 3th March 2005
Objectives Objectives
- Drivers realization
Drivers realization
- Different approaches
Different approaches
- S.Ha.R.K. evolution
S.Ha.R.K. evolution
- Present implementation in S.Ha.R.K.
Present implementation in S.Ha.R.K.
- Interrupt Server
Interrupt Server
- Linux Compatibility Layer
Linux Compatibility Layer
- Available drivers
Available drivers
- Work in progress
Work in progress
- Future Work
Future Work
3 3 / 55 / 55
Pontedera, 3th March 2005 Pontedera, 3th March 2005
Drivers Implementation Drivers Implementation
- Different approaches to a new driver layer
Different approaches to a new driver layer implementation: implementation:
- Write it from scratch ;
Write it from scratch ;
- Reuse low level calls code and rewrite the
Reuse low level calls code and rewrite the rest; rest;
- Reuse as much code as possible;
Reuse as much code as possible;
- Most of the recyclable code came from NOT
Most of the recyclable code came from NOT Real Real-
- Time Operating Systems.
Time Operating Systems.
4 4 / 55 / 55
Pontedera, 3th March 2005 Pontedera, 3th March 2005
Comparison Terms Comparison Terms
- The approach must be selected according to:
The approach must be selected according to:
- Requirements:
Requirements:
- Predictability;
Predictability;
- Reliability;
Reliability;
- Stability;
Stability;
- Maintainability.
Maintainability.
- Team characteristics:
Team characteristics:
- Dimension;
Dimension;
- Knowledge;
Knowledge;
- Time.
Time.
5 5 / 55 / 55
Pontedera, 3th March 2005 Pontedera, 3th March 2005
Advantages & Advantages & Drawbacks Drawbacks
- Importing pre
Importing pre-
- existent code:
existent code:
- Increase Reliability and Stability;
Increase Reliability and Stability;
- Require
less technical knowledge and Require less technical knowledge and production time; production time;
- Decrease the amount of code that must be
Decrease the amount of code that must be implemented. implemented.
6 6 / 55 / 55
Pontedera, 3th March 2005 Pontedera, 3th March 2005
Advantages Advantages & & Drawbacks Drawbacks
- The code is not developed focusing on
The code is not developed focusing on real real-
- time issues then predictability is
time issues then predictability is penalized. penalized.
- The imported code usually present a lot a