X-Git-Url: https://rtime.felk.cvut.cz/gitweb/fpga/rpi-motor-control.git/blobdiff_plain/5d8290ceb4f6810b3bf47d15bcbb0fc63ff4a837..526f31a42665da0c8d341f6532e579bd8bea2730:/pmsm-control/test_sw/pmsm_state.c diff --git a/pmsm-control/test_sw/pmsm_state.c b/pmsm-control/test_sw/pmsm_state.c index 9721490..3938dc7 100644 --- a/pmsm-control/test_sw/pmsm_state.c +++ b/pmsm-control/test_sw/pmsm_state.c @@ -4,7 +4,7 @@ /** * Index Lost. */ -void setIndexLost(struct rpi_state* this){ +inline void setIndexLost(struct rpi_state* this){ this->index_ok=0; this->main_commutator=simple_hall_commutator; } @@ -12,7 +12,7 @@ void setIndexLost(struct rpi_state* this){ /** * Index OK. */ -void setIndexOK(struct rpi_state* this){ +inline void setIndexOK(struct rpi_state* this){ this->index_ok=1; this->main_commutator=inv_trans_comm_2; } @@ -20,7 +20,7 @@ void setIndexOK(struct rpi_state* this){ /** * Turn commutation on. */ -void setCommutationOn(struct rpi_state* this){ +inline void setCommutationOn(struct rpi_state* this){ this->commutate=1; if (this->index_ok){ this->main_commutator=inv_trans_comm_2; @@ -32,7 +32,7 @@ void setCommutationOn(struct rpi_state* this){ /** * Turn commutation off. */ -void setCommutationOff(struct rpi_state* this){ +inline void setCommutationOff(struct rpi_state* this){ this->commutate=0; this->main_commutator=zero_commutator; }