Files
ESP-Miner/components/asic/include/common.h
Skot e1bf30b26e Fix compiler warnings (#381)
Fix all compiler warnings and migrate off depreciated ADC and I2C libraries.
---------
Co-authored-by: Erik Olof Gunnar Andersson <eandersson@users.noreply.github.com>
2024-10-08 11:27:32 -04:00

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