Move functions declaration to header file

This commit is contained in:
David Gálvez
2016-02-07 18:35:04 +00:00
parent 0658bde430
commit 4c765b2512
3 changed files with 4 additions and 2 deletions

View File

@@ -26,4 +26,7 @@
#define CLEAR_BIT(p,bit) p &= ~(bit) #define CLEAR_BIT(p,bit) p &= ~(bit)
#define CLEAR_BIT_NO(p,nr) CLEAR_BIT(p, (1 << (nr))) #define CLEAR_BIT_NO(p,nr) CLEAR_BIT(p, (1 << (nr)))
extern void write_pic_byte(uint8_t value);
extern uint8_t read_pic_byte(void);
#endif /* _BAS_UTILS_H_ */ #endif /* _BAS_UTILS_H_ */

View File

@@ -31,6 +31,7 @@
#include "bas_printf.h" #include "bas_printf.h"
#include "bas_string.h" #include "bas_string.h"
#include "bas_types.h" #include "bas_types.h"
#include "bas_utils.h"
#include "sd_card.h" #include "sd_card.h"
#include "wait.h" #include "wait.h"

View File

@@ -61,8 +61,6 @@ struct isrentry
static struct isrentry isrtab[MAX_ISR_ENTRY]; /* list of interrupt service routines */ static struct isrentry isrtab[MAX_ISR_ENTRY]; /* list of interrupt service routines */
extern void write_pic_byte(uint8_t value);
extern uint8_t read_pic_byte(void);
/* /*
* clear the table of interrupt service handlers * clear the table of interrupt service handlers