KugleFirmware/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c
/**
  * @brief  Release All semaphore used by a given Master . 
  * @param  Key: Semaphore Key , value from 0 to 0xFFFF
  * @param  MasterID: MasterID of the CPU that is using semaphores to be Released 
  * @retval None
*/
@brief  Release All semaphore used by a given Master .
@param  Key: Semaphore Key , value from 0 to 0xFFFF
@param  MasterID: MasterID of the CPU that is using semaphores to be Released
@retval None
@brief Release All semaphore used by a given Master . @param Key : Semaphore Key value from 0 to 0xFFFF @param MasterID : MasterID of the CPU that is using semaphores to be Released @retval None
void HAL_HSEM_ReleaseAll(uint32_t Key, uint32_t MasterID)
{
  assert_param(IS_HSEM_KEY(Key));  
  assert_param(IS_HSEM_MASTERID(MasterID));  
  HSEM->CR = (((Key << POSITION_VAL(HSEM_KEYR_KEY)) & HSEM_CR_KEY ) | ((MasterID << POSITION_VAL(HSEM_CR_MASTERID)) & HSEM_CR_MASTERID)); 
}
void HAL_HSEM_ReleaseAll ( uint32_t Key , uint32_t MasterID ) { assert_param ( IS_HSEM_KEY ( Key ) ) ; assert_param ( IS_HSEM_MASTERID ( MasterID ) ) ; HSEM -> CR = ( ( ( Key << POSITION_VAL ( HSEM_KEYR_KEY ) ) & HSEM_CR_KEY ) | ( ( MasterID << POSITION_VAL ( HSEM_CR_MASTERID ) ) & HSEM_CR_MASTERID ) ) ; }
@brief  Release All semaphore used by a given Master .
@brief Release All semaphore used by a given Master .