![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my new gear...
Diff: scrp_slave.hpp
- Revision:
- 13:31a44ed824b0
- Parent:
- 3:a9b4b2565a23
--- a/scrp_slave.hpp Tue Jul 05 08:56:23 2022 +0000 +++ b/scrp_slave.hpp Tue Jul 05 09:00:35 2022 +0000 @@ -57,14 +57,6 @@ //ScrpSlave slave(PC_12,PD_2 ,PH_1 ,SERIAL_TX,SERIAL_RX,0x0807f800,false);//rtos使用時や3ポート以上開き割り込みを無効にするとき。 -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); -} - class ScrpSlave{ public: ScrpSlave(PinName TX1,PinName RX1,uint32_t addr,bool interrupt = true);//RedePinなし、1ポート