Untitled


SUBMITTED BY: antoineh1

DATE: May 4, 2016, 6:09 p.m.

FORMAT: Text only

SIZE: 577 Bytes

HITS: 731

  1. ret_code_t nrf_drv_uart_tx(uint8_t const * const p_data, uint8_t length) // deklaracja naszej oryginalnej funkcji
  2. uint8_t * tx_data = (uint8_t *)("\n\rLOOPBACK_TEST\n\r"); //to jest to co wstępnie sobie defuniujemy
  3. // a tu definicja funkcji która to mieli i wysyła
  4. uint32_t app_uart_put(uint8_t byte)
  5. {
  6. uint32_t err_code;
  7. tx_tmp = byte;
  8. err_code = nrf_drv_uart_tx(&tx_tmp, 1);
  9. if (err_code == NRF_ERROR_BUSY)
  10. {
  11. err_code = app_fifo_put(&m_tx_fifo, byte);
  12. }
  13. return err_code;
  14. }
  15. //i chodzi o to że muszę ją pominąć :)

comments powered by Disqus