![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my new gear...
portSet.hpp@2:e7b09385d197, 2022-03-27 (annotated)
- Committer:
- yootee
- Date:
- Sun Mar 27 04:39:16 2022 +0000
- Revision:
- 2:e7b09385d197
- Parent:
- 0:1456b6f84c75
- Child:
- 12:562f433b5e98
arrc?
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yootee | 0:1456b6f84c75 | 1 | #pragma once |
yootee | 0:1456b6f84c75 | 2 | #include <mbed.h> |
yootee | 0:1456b6f84c75 | 3 | |
yootee | 2:e7b09385d197 | 4 | inline double constrain(double x,double minimum,double maximum){ |
yootee | 2:e7b09385d197 | 5 | return (x < minimum ? minimum : x > maximum ? maximum : x); |
yootee | 2:e7b09385d197 | 6 | } |
yootee | 2:e7b09385d197 | 7 | |
yootee | 0:1456b6f84c75 | 8 | typedef struct Port{ |
yootee | 0:1456b6f84c75 | 9 | PinName pin[2]; |
yootee | 0:1456b6f84c75 | 10 | }Port; |