Skip to content

Instantly share code, notes, and snippets.

@dagon666
Created October 30, 2013 18:46
Show Gist options
  • Save dagon666/7237860 to your computer and use it in GitHub Desktop.
Save dagon666/7237860 to your computer and use it in GitHub Desktop.
audio binary packet
#define PWM_SAMPLES_BUFFER 64
#define PWM_BUFFERS 4
struct packet {
uint16_t crc16;
uint8_t num;
uint8_t samples[PWM_SAMPLES_BUFFER];
};
static volatile struct packet p[PWM_BUFFERS];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment