![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my new gear...
portSet.hpp
- Committer:
- yootee
- Date:
- 22 months ago
- Revision:
- 22:394337a4205a
- Parent:
- 13:31a44ed824b0
File content as of revision 22:394337a4205a:
#pragma once #include <mbed.h> inline int constrain(int x,int a,int b){ return (x < a ? a : x > b ? b : x); } inline double constrain(double x,double a,double b){ return (x < a ? a : x > b ? b : x); } typedef struct Port{ PinName pin[2]; }Port;