in tmr-ints:

use reset to clear bit
This commit is contained in:
Mariano Alvira 2010-03-17 15:56:53 -04:00
parent a7a11f1f63
commit a44e256d3d

View file

@ -9,7 +9,7 @@ volatile uint8_t led;
#define LED LED_PURPLE
#define led_init() do { gpio_pad_dir_set(LED); } while(0);
#define led_on() do { led = 1; gpio_data_set(LED); } while(0);
#define led_off() do { led = 0; gpio_data_set(0); } while(0);
#define led_off() do { led = 0; gpio_data_reset(LED); } while(0);
void toggle_led(void) {
if(0 == led) {