mp_flipper_modflipperzero_infrared.c 391 B

123456789101112131415
  1. #include <furi_hal.h>
  2. #include <furi_hal_infrared.h>
  3. #include <mp_flipper_modflipperzero.h>
  4. #include <mp_flipper_runtime.h>
  5. #include "mp_flipper_context.h"
  6. uint32_t* mp_flipper_infrared_receive(uint32_t timeout, size_t* length) {
  7. uint32_t* buffer = calloc(MP_FLIPPER_INFRARED_RX_BUFFER_SIZE, sizeof(uint32_t));
  8. *length = MP_FLIPPER_INFRARED_RX_BUFFER_SIZE;
  9. return buffer;
  10. }