mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-10-10 11:12:38 +02:00
Fix all compiler warnings and migrate off depreciated ADC and I2C libraries. --------- Co-authored-by: Erik Olof Gunnar Andersson <eandersson@users.noreply.github.com>
16 lines
279 B
C
16 lines
279 B
C
#ifndef COMMON_H_
|
|
#define COMMON_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct __attribute__((__packed__))
|
|
{
|
|
uint8_t job_id;
|
|
uint32_t nonce;
|
|
uint32_t rolled_version;
|
|
} task_result;
|
|
|
|
unsigned char _reverse_bits(unsigned char num);
|
|
int _largest_power_of_two(int num);
|
|
|
|
#endif |