You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #ifndef LED_H
- #define LED_H
-
- #include "config.h"
-
- #define LED_BLINK_RATE 8
- extern int16_t __led_pattern;
-
- /* Initialize LED */
- void led_init(void);
-
- /* Set a pattern (8-bit binary pattern). */
- void led_pattern(uint8_t pattern);
-
- static inline void led_on(void)
- {
- __led_pattern = -1;
- PORTBbits.RB13 = 0;
- }
-
- static inline void led_off(void)
- {
- __led_pattern = -1;
- PORTBbits.RB13 = 1;
- }
-
- #endif
|