Topic: tech dcc pc src prev next
tech dcc pc src > led.c
#include "led.h"
#include "pins.h"
void Led_Sel1()
{
/*HERMES_LED_DDR |= (1 << HERMES_LED1_PORT);
HERMES_LED_PORT |= (unsigned char)(1 << HERMES_LED1_PORT);
HERMES_LED_PORT |= (unsigned char)(1 << HERMES_LED2_PORT);*/
HERMES_LED_PORT &= (unsigned char)~(1 << HERMES_LED1_PORT);
HERMES_LED_PORT |= (1 << HERMES_LED2_PORT);
}
void Led_Sel2()
{
/*HERMES_LED_DDR |= (1 << HERMES_LED2_PORT);
HERMES_LED_PORT &= (unsigned char)~(1 << HERMES_LED1_PORT);
HERMES_LED_PORT &= (unsigned char)~(1 << HERMES_LED2_PORT);*/
HERMES_LED_PORT &= (unsigned char)~(1 << HERMES_LED1_PORT);
HERMES_LED_PORT |= (1 << HERMES_LED2_PORT);
}
void Led_Off()
{
HERMES_LED_PORT &= (unsigned char)~(1 << HERMES_LED1_PORT);
HERMES_LED_PORT |= (1 << HERMES_LED2_PORT);
}