queue.h 1.0 KB

1234567891011121314151617181920212223242526
  1. #ifndef ____queue__
  2. #define ____queue__
  3. //==========================================================================================================
  4. // QUEUE THAT SENDS PULSES FROM INT TO MAIN-LOOP
  5. //==========================================================================================================
  6. #define NEXA_QUEUE_SIZE 1000 // Queue size from Nexa-remotes
  7. unsigned char rcvDeQueue( unsigned int *value );
  8. unsigned char rcvEnQueue( unsigned int value );
  9. unsigned int getQueueUsed();
  10. void rcvInitQueue( );
  11. //==========================================================================================================
  12. // QUEUE THAT SENDS CODES FROM MAIN-LOOP TO WIFI
  13. //==========================================================================================================
  14. #define WIFI_QUEUE_SIZE 10
  15. unsigned char wifi_rcvDeQueue( unsigned int *type, unsigned int *value );
  16. unsigned char wifi_rcvEnQueue( unsigned int type, unsigned long long value );
  17. void wifi_rcvInitQueue( );
  18. #endif