Subversion Repositories group.electronics

Rev

Rev 126 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 126 Rev 128
Line 13... Line 13...
13
#define ON 1
13
#define ON 1
14
#define OFF 0
14
#define OFF 0
15
 
15
 
16
volatile uint32_t systime;
16
volatile uint32_t systime;
17
 
17
 
-
 
18
uint32_t millis(void);
-
 
19
 
18
inline uint8_t map_8(uint8_t x, uint8_t in_min, uint8_t in_max, uint8_t out_min, uint8_t out_max);
20
inline uint8_t map_8(uint8_t x, uint8_t in_min, uint8_t in_max, uint8_t out_min, uint8_t out_max);
19
void analogInit(void);
21
void analogInit(void);
20
uint8_t analogRead(uint8_t channel);
22
uint8_t analogRead(uint8_t channel);
21
typedef void (*tick_ptr)();
23
typedef void (*tick_ptr)();
22
void sysclockInit(void);
24
void sysclockInit(void);
Line 24... Line 26...
24
void pulsePin(uint8_t port, uint8_t pin, uint16_t count);
26
void pulsePin(uint8_t port, uint8_t pin, uint16_t count);
25
 
27
 
26
void swap_u8(uint8_t* a, uint8_t* b);
28
void swap_u8(uint8_t* a, uint8_t* b);
27
void swap_u16(uint16_t* a, uint16_t* b);
29
void swap_u16(uint16_t* a, uint16_t* b);
28
 
30
 
29
void statusLed(uint8_t state);
31
void systemLed(uint8_t state);
-
 
32
 
-
 
33
uint8_t itobcd(uint32_t val, uint8_t *result);
30
 
34
 
31
#endif
35
#endif