-/**
- * @brief frequency domain allocation function.
- *
- * @details
- *
- * Function: schAllocFreqDomRscType0
- *
- * This function does allocation in frequency domain resource.
- * This is a bitmap defining non-overlapping groups of 6 PRBs in ascending order.
- *
- * @param[in] startPrb - start PRB from where the freq alloc starts.
- * @param[in] prbSize - number of PRBs to be allocted.
- * @param[in] freqDomain - 6 bytes of info, each bit represents a group of 6 PRB.
- * @return void
- **/
-void schAllocFreqDomRscType0(uint16_t startPrb, uint16_t prbSize, uint8_t *freqDomain)
-{
- uint8_t remBits = prbSize; /* each bit represents 6 PRBs */
- uint8_t firstByte = 1;
- uint8_t numBits,startBit,byteCount = 5;
-
- while(remBits)
- {
- /* when the startPrb is not in this byteCount */
- if(startPrb/8)
- {
- startPrb -= 8;
- byteCount--;
- continue;
- }
-
- /* max bytecount is 6 nearly equal to 45 bits*/
- if(byteCount >= 6)
- break;
-
- /* when we are filling the second byte, then the start should be equal to 0 */
- if(firstByte)
- startBit = startPrb;
- else
- startBit = 0;
-
- /* calculate the number of bits to be set in this byte */
- if((remBits+startPrb) <= 8)
- numBits = remBits;
- else
- numBits = 8 - startBit;
-
- /* bit operation to set the bits */
- SET_BITS_MSB((startBit % 8),numBits,freqDomain[byteCount])
- firstByte = 0;
-
- /* the ramaining bits should be subtracted with the numBits set in this byte */
- remBits -= numBits;
- byteCount--;
- }
-}
+/* PUCCH resource sets before dedicated PUCCH resource configuration */
+/* Table 9.2.1-1 spec 38.213 */
+uint8_t pucchResourceSet[MAX_PUCCH_RES_SET_IDX][4] = {
+{ 0, 12, 2, 0 }, /* index 0 */
+{ 0, 12, 2, 0 }, /* index 1 */
+{ 0, 12, 2, 3 }, /* index 2 */
+{ 1, 10, 4, 0 }, /* index 3 */
+{ 1, 10, 4, 0 }, /* index 4 */
+{ 1, 10, 4, 2 }, /* index 5 */
+{ 1, 10, 4, 4 }, /* index 6 */
+{ 1, 4, 10, 0 }, /* index 7 */
+{ 1, 4, 10, 0 }, /* index 8 */
+{ 1, 4, 10, 2 }, /* index 9 */
+{ 1, 4, 10, 4 }, /* index 10 */
+{ 1, 0, 14, 0 }, /* index 11 */
+{ 1, 0, 14, 0 }, /* index 12 */
+{ 1, 0, 14, 2 }, /* index 13 */
+{ 1, 0, 14, 4 }, /* index 14 */
+{ 1, 0, 14, 0 }, /* index 15 */
+};