@@ -403,7 +403,7 @@ static void rmt_module_enable(void)
403
403
{
404
404
irqstate_t flags ;
405
405
406
- flags = spin_lock_irqsave (g_rmtdev_common .rmt_spinlock );
406
+ flags = spin_lock_irqsave (& g_rmtdev_common .rmt_spinlock );
407
407
408
408
if (g_rmtdev_common .rmt_module_enabled == false)
409
409
{
@@ -454,7 +454,7 @@ static int rmt_set_rx_thr_intr_en(rmt_channel_t channel, bool en,
454
454
return - EINVAL ;
455
455
}
456
456
457
- flags = spin_lock_irqsave (g_rmtdev_common .rmt_spinlock );
457
+ flags = spin_lock_irqsave (& g_rmtdev_common .rmt_spinlock );
458
458
rmt_ll_rx_set_limit (g_rmtdev_common .hal .regs ,
459
459
RMT_DECODE_RX_CHANNEL (channel ), evt_thresh );
460
460
mask = RMT_LL_EVENT_RX_THRES (RMT_DECODE_RX_CHANNEL (channel ));
@@ -463,7 +463,7 @@ static int rmt_set_rx_thr_intr_en(rmt_channel_t channel, bool en,
463
463
}
464
464
else
465
465
{
466
- flags = spin_lock_irqsave (g_rmtdev_common .rmt_spinlock );
466
+ flags = spin_lock_irqsave (& g_rmtdev_common .rmt_spinlock );
467
467
mask = RMT_LL_EVENT_RX_THRES (RMT_DECODE_RX_CHANNEL (channel ));
468
468
rmt_ll_enable_interrupt (g_rmtdev_common .hal .regs , mask , false);
469
469
spin_unlock_irqrestore (& g_rmtdev_common .rmt_spinlock , flags );
@@ -504,7 +504,7 @@ static int rmt_rx_start(rmt_channel_t channel, bool rx_idx_rst)
504
504
505
505
DEBUGASSERT (RMT_IS_RX_CHANNEL (channel ));
506
506
507
- flags = spin_lock_irqsave (g_rmtdev_common .rmt_spinlock );
507
+ flags = spin_lock_irqsave (& g_rmtdev_common .rmt_spinlock );
508
508
509
509
rmt_ll_rx_enable (g_rmtdev_common .hal .regs , ch , false);
510
510
if (rx_idx_rst )
@@ -551,7 +551,7 @@ static int rmt_tx_start(rmt_channel_t channel, bool tx_idx_rst)
551
551
552
552
DEBUGASSERT (RMT_IS_TX_CHANNEL (channel ));
553
553
554
- flags = spin_lock_irqsave (g_rmtdev_common .rmt_spinlock );
554
+ flags = spin_lock_irqsave (& g_rmtdev_common .rmt_spinlock );
555
555
if (tx_idx_rst )
556
556
{
557
557
rmt_ll_tx_reset_pointer (g_rmtdev_common .hal .regs , channel );
@@ -609,7 +609,7 @@ static int rmt_set_tx_loop_mode(rmt_channel_t channel, bool loop_en)
609
609
610
610
DEBUGASSERT (RMT_IS_TX_CHANNEL (channel ));
611
611
612
- flags = spin_lock_irqsave (g_rmtdev_common .rmt_spinlock );
612
+ flags = spin_lock_irqsave (& g_rmtdev_common .rmt_spinlock );
613
613
rmt_ll_tx_enable_loop (g_rmtdev_common .hal .regs , channel , loop_en );
614
614
spin_unlock_irqrestore (& g_rmtdev_common .rmt_spinlock , flags );
615
615
@@ -651,15 +651,15 @@ static int rmt_set_tx_thr_intr_en(rmt_channel_t channel, bool en,
651
651
652
652
DEBUGASSERT (evt_thresh <= item_block_len );
653
653
654
- flags = spin_lock_irqsave (g_rmtdev_common .rmt_spinlock );
654
+ flags = spin_lock_irqsave (& g_rmtdev_common .rmt_spinlock );
655
655
rmt_ll_tx_set_limit (g_rmtdev_common .hal .regs , channel , evt_thresh );
656
656
rmt_ll_enable_interrupt (g_rmtdev_common .hal .regs ,
657
657
RMT_LL_EVENT_TX_THRES (channel ), true);
658
658
spin_unlock_irqrestore (& g_rmtdev_common .rmt_spinlock , flags );
659
659
}
660
660
else
661
661
{
662
- flags = spin_lock_irqsave (g_rmtdev_common .rmt_spinlock );
662
+ flags = spin_lock_irqsave (& g_rmtdev_common .rmt_spinlock );
663
663
rmt_ll_enable_interrupt (g_rmtdev_common .hal .regs ,
664
664
RMT_LL_EVENT_TX_THRES (channel ), false);
665
665
spin_unlock_irqrestore (& g_rmtdev_common .rmt_spinlock , flags );
@@ -801,7 +801,7 @@ static int rmt_internal_config(rmt_dev_t *dev,
801
801
return - EINVAL ;
802
802
}
803
803
804
- flags = spin_lock_irqsave (g_rmtdev_common .rmt_spinlock );
804
+ flags = spin_lock_irqsave (& g_rmtdev_common .rmt_spinlock );
805
805
806
806
rmt_ll_enable_mem_access_nonfifo (dev , true);
807
807
@@ -866,7 +866,7 @@ static int rmt_internal_config(rmt_dev_t *dev,
866
866
uint8_t carrier_level = rmt_param -> tx_config .carrier_level ;
867
867
uint8_t idle_level = rmt_param -> tx_config .idle_level ;
868
868
869
- flags = spin_lock_irqsave (g_rmtdev_common .rmt_spinlock );
869
+ flags = spin_lock_irqsave (& g_rmtdev_common .rmt_spinlock );
870
870
rmt_ll_tx_set_channel_clock_div (dev , channel , clk_div );
871
871
rmt_ll_tx_set_mem_blocks (dev , channel , mem_cnt );
872
872
rmt_ll_tx_reset_pointer (dev , channel );
@@ -918,7 +918,7 @@ static int rmt_internal_config(rmt_dev_t *dev,
918
918
uint8_t filter_cnt = rmt_param -> rx_config .filter_ticks_thresh ;
919
919
uint16_t threshold = rmt_param -> rx_config .idle_threshold ;
920
920
921
- flags = spin_lock_irqsave (g_rmtdev_common .rmt_spinlock );
921
+ flags = spin_lock_irqsave (& g_rmtdev_common .rmt_spinlock );
922
922
rmt_ll_rx_set_channel_clock_div (dev , RMT_DECODE_RX_CHANNEL (channel ),
923
923
clk_div );
924
924
rmt_ll_rx_set_mem_blocks (dev , RMT_DECODE_RX_CHANNEL (channel ), mem_cnt );
0 commit comments