Re: rtems RTEMS_BINARY_SEMAPHORE can not block

2016-12-18 Thread Sebastian Huber
Hello Yao, for mutexes, the RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY | RTEMS_INHERIT_PRIORITY are the right semaphores (please note that they are recursive). For task/interrupt synchronization you can use RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO. -- Sebastian Huber, embedded brains GmbH A

rtems RTEMS_BINARY_SEMAPHORE can not block

2016-12-16 Thread yao0718
hi, I test binary semaphore used for mutex,but I find it can not block my simple test code is struct zynq_qspi { rtems_id sem_bus; rtems_id sem_done; bool inited; const uint8_t *txbuf; uint8_t *rxbuf; int32_t bytes_to_transfer; int32_t bytes_to_rec