stm32_hal_nrf24l01p icon indicating copy to clipboard operation
stm32_hal_nrf24l01p copied to clipboard

You used not defined and not explained pins

Open Uchaplin opened this issue 1 year ago • 0 comments

  1. Why you not declared this pin :

_

void nrf24l01p_rx_receive(uint8_t* rx_payload) { nrf24l01p_read_rx_fifo(rx_payload); nrf24l01p_clear_rx_dr();

HAL_GPIO_TogglePin(GPIOC, GPIO_PIN_13);

}

_

  1. Why you used toggle pin instead of set/unset ? Who knows what it was before ?
  2. Same in this place _

void nrf24l01p_tx_irq() { uint8_t tx_ds = nrf24l01p_get_status(); tx_ds &= 0x20; if(tx_ds) {
// TX_DS HAL_GPIO_TogglePin(GPIOC, GPIO_PIN_13); nrf24l01p_clear_tx_ds(); } else { // MAX_RT HAL_GPIO_WritePin(GPIOC, GPIO_PIN_13, SET); nrf24l01p_clear_max_rt(); } }

_

Uchaplin avatar Nov 05 '24 16:11 Uchaplin