embedded-software
reusable software modules for embedded systems
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
hal_seven_seg.h
Go to the documentation of this file.
1 #ifndef _HAL_SEVEN_SEG_H_
2 #define _HAL_SEVEN_SEG_H_
3 
4 #include <stdint.h>
5 
6  /*
7  * CONFIGURATION
8  * P1.2 -> B -> PIN 7
9  * P1.3 -> E -> PIN 1
10  * P1.4 -> F -> PIN 10
11  * P1.5 -> A -> PIN 11
12  *
13  * P2.2 -> G -> PIN 5
14  * P2.3 -> D -> PIN 2
15  * P2.4 -> Decimal -> PIN 3
16  * P2.5 -> C -> PIN 4
17  *
18  * P3.3 -> D4 -> PIN 6
19  * P3.4 -> D3 -> PIN 8
20  * P3.5 -> D2 -> PIN 9
21  * P3.6 -> D1 -> PIN 12
22  *
23  * */
24 
46 void hal_seven_seg_Init(void);
47 
48 
52 void hal_Display(uint8_t seg0, uint8_t seg1, uint8_t seg2, uint8_t seg3, uint8_t dec);
53 
54 #endif /* _HAL_SEVEN_SEG_H_ */
void hal_Display(uint8_t seg0, uint8_t seg1, uint8_t seg2, uint8_t seg3, uint8_t dec)
Displays parameters on 4x7 seg display.
Definition: hal_seven_seg.c:44
void hal_seven_seg_Init(void)
Initialize the Hal Seven Seg Module.
Definition: hal_seven_seg.c:27