File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 38
38
printf ("%d" , (var >> (n - i )) & 1 );
39
39
#endif
40
40
}
41
- #endif
41
+
42
+
42
43
void error (char * str )
43
44
{
44
45
#ifdef __AVR__
49
50
fprintf (stderr , "\r\n" ); // New line
50
51
#endif // __AVR__
51
52
}
52
-
53
+ #endif
53
54
54
55
uint16_t int_pow (uint16_t a , uint16_t b )
55
56
{
Original file line number Diff line number Diff line change 3
3
#pragma once
4
4
#define DEBUG // If enable, debugging routines will be compiled
5
5
6
+ #define DEBUG
7
+
6
8
#ifdef __AVR__
7
9
#include "../lib_uart/uart.h"
8
10
#endif
21
23
22
24
#ifdef DEBUG
23
25
void print_var_bits (uint16_t var , uint8_t n );
26
+ void error (char * str ); // Exit the program with the error code EXIT_FAILED
24
27
#endif
25
28
26
- void error (char * str ); // Exit the program with the error code EXIT_FAILED
27
29
uint16_t int_pow (uint16_t a , uint16_t b ); // Computes a^b
28
30
#endif // UTILITIES_H
You can’t perform that action at this time.
0 commit comments