BeRTOS
|
00001 00169 #ifndef HW_LED_7SEG_H 00170 #define HW_LED_7SEG_H 00171 00172 #include "cfg/cfg_led_7seg.h" 00173 00174 /* 00175 * INLINE HW Functions 00176 */ 00177 00184 INLINE void sseg_off(void) 00185 { 00186 /* Set the display OFF */ 00187 #ifdef CONFIG_LED_7SEG_CCAT 00188 /* You have to implment it */ 00189 /* Common Cathode */ 00190 #else 00191 /* You have to implment it */ 00192 /* Common Anode */ 00193 #endif 00194 } 00195 00205 INLINE void sseg_on(uint8_t dgt, uint8_t n_dgt) 00206 { 00207 (void) dgt; 00208 (void) n_dgt; 00209 #ifdef CONFIG_LED_7SEG_CCAT 00210 /* Common Cathode */ 00211 /* You have to implment it */ 00212 #else 00213 /* Common Anode */ 00214 /* You have to implment it */ 00215 #endif 00216 } 00217 00224 INLINE void sseg_init(void) 00225 { 00226 /* Initialize PIN Direction to OUTPUT*/ 00227 /* You have to implment it */ 00228 /* Set the display OFF */ 00229 sseg_off(); 00230 } 00231 00232 #endif /* HW_LED_7SEG_H */ 00233