reorganize files

This commit is contained in:
hugo LAMY
2025-03-14 19:47:02 +01:00
committed by hugogogo
parent 0e87d41c08
commit b12eff7ede
4 changed files with 29 additions and 14 deletions

View File

@@ -14,13 +14,7 @@
#define ADC_PRESCALER 64 // Table 24-5 : can only be 2, 4, 8, 16, 32, 64, or 128
void int_to_hex_string(uint64_t value, char *out, uint8_t num_digits) { // num_digits : number of digit of the output, ex 2 for 3FF (1023) -> FF
for (uint8_t i = 0; i < num_digits; ++i) {
uint8_t shift = (num_digits - 1 - i) * 4;
out[i] = INT_TO_HEX_CHAR((value >> shift) & 0x0F);
}
out[num_digits] = '\0';
}
volatile uint8_t adc_channel = 0;
// description
int main() {