예제 #1
0
static void mtx8_setup(void) {

  chCondInit(&c1);
  chMtxInit(&m1);
  chMtxInit(&m2);
}
예제 #2
0
파일: ch.cpp 프로젝트: viktorradnai/ChibiOS
/*------------------------------------------------------------------------*
 * chibios_rt::CondVar                                                    *
 *------------------------------------------------------------------------*/
CondVar::CondVar(void) {

    chCondInit(&condvar);
}
예제 #3
0
/**
 * @brief   Initializes a condvar.
 *
 * @pre     The condvar is not initialized.
 * @post    The condvar is initialized.
 *
 * @param[in,out] cvp
 *          Pointer to an allocated @p UrosCondVar object.
 */
void uros_lld_condvar_objectinit(UrosCondVar *cvp) {

  urosAssert(cvp != NULL);

  chCondInit(cvp);
}