#include <stdint.h>
#include <semaphore.h>
+struct rpi_in;
struct rpi_state{
+ struct rpi_in* spi_dat;
sem_t thd_par_sem;
uint8_t test;
uint16_t pwm1, pwm2, pwm3;
unsigned char index_ok;
uint32_t tf_count; /*number of transfer*/
int desired_pos; /* desired position */
-}rps;
+};
#endif /*PMSM_STATE*/