@@ -520,14 +520,14 @@ static void parlio_tx_do_transaction(parlio_tx_unit_t *tx_unit, parlio_tx_trans_
520520 }
521521 } else {
522522 // non-loop transmission
523- #if SOC_PARLIO_TX_SUPPORT_EOF_FROM_DMA
523+ #if PARLIO_LL_SUPPORT ( TX_EOF_FROM_DMA )
524524 // for DMA EOF supported target, we need to set the EOF condition to DMA EOF
525525 parlio_ll_tx_set_eof_condition (hal -> regs , PARLIO_LL_TX_EOF_COND_DMA_EOF );
526526#else
527527 // for DMA EOF not supported target, we need to set the bit length to the configured bit lens
528528 parlio_ll_tx_set_eof_condition (hal -> regs , PARLIO_LL_TX_EOF_COND_DATA_LEN );
529529 parlio_ll_tx_set_trans_bit_len (hal -> regs , t -> payload_bits );
530- #endif // SOC_PARLIO_TX_SUPPORT_EOF_FROM_DMA
530+ #endif // PARLIO_LL_SUPPORT(TX_EOF_FROM_DMA)
531531 }
532532
533533 if (tx_unit -> bs_handle ) {
@@ -641,9 +641,9 @@ esp_err_t parlio_tx_unit_transmit(parlio_tx_unit_handle_t tx_unit, const void *p
641641 ESP_RETURN_ON_FALSE (tx_unit && payload && payload_bits , ESP_ERR_INVALID_ARG , TAG , "invalid argument" );
642642 ESP_RETURN_ON_FALSE ((payload_bits % tx_unit -> data_width ) == 0 , ESP_ERR_INVALID_ARG , TAG , "payload bit length must align to bus width" );
643643 ESP_RETURN_ON_FALSE (payload_bits <= tx_unit -> max_transfer_bits , ESP_ERR_INVALID_ARG , TAG , "payload bit length too large" );
644- #if !SOC_PARLIO_TRANS_BIT_ALIGN
644+ #if !PARLIO_LL_SUPPORT ( TRANS_BIT_ALIGN )
645645 ESP_RETURN_ON_FALSE ((payload_bits % 8 ) == 0 , ESP_ERR_INVALID_ARG , TAG , "payload bit length must be multiple of 8" );
646- #endif // !SOC_PARLIO_TRANS_BIT_ALIGN
646+ #endif // !PARLIO_LL_SUPPORT(TRANS_BIT_ALIGN)
647647
648648#if SOC_PARLIO_TX_SUPPORT_LOOP_TRANSMISSION
649649 if (config -> flags .loop_transmission ) {
@@ -654,13 +654,13 @@ esp_err_t parlio_tx_unit_transmit(parlio_tx_unit_handle_t tx_unit, const void *p
654654 ESP_RETURN_ON_FALSE (config -> flags .loop_transmission == false, ESP_ERR_NOT_SUPPORTED , TAG , "loop transmission is not supported on this chip" );
655655#endif
656656
657- #if !SOC_PARLIO_TX_SUPPORT_EOF_FROM_DMA
657+ #if !PARLIO_LL_SUPPORT ( TX_EOF_FROM_DMA )
658658 // check the max payload size if it's not a loop transmission and the DMA EOF is not supported
659659 if (!config -> flags .loop_transmission ) {
660660 ESP_RETURN_ON_FALSE (tx_unit -> max_transfer_bits <= PARLIO_LL_TX_MAX_BITS_PER_FRAME ,
661661 ESP_ERR_INVALID_ARG , TAG , "invalid transfer size, max transfer size should be less than %d" , PARLIO_LL_TX_MAX_BITS_PER_FRAME / 8 );
662662 }
663- #endif // !SOC_PARLIO_TX_SUPPORT_EOF_FROM_DMA
663+ #endif // !PARLIO_LL_SUPPORT(TX_EOF_FROM_DMA)
664664
665665 size_t alignment = esp_ptr_external_ram (payload ) ? tx_unit -> ext_mem_align : tx_unit -> int_mem_align ;
666666 // check alignment
0 commit comments