mirror of
https://github.com/johncobb/avr_328p_freertos.git
synced 2025-07-08 08:01:04 +03:00
initial commit
This commit is contained in:
22
Drivers/led.c
Normal file
22
Drivers/led.c
Normal file
@ -0,0 +1,22 @@
|
||||
/*
|
||||
* led.c
|
||||
*
|
||||
* Created on: Feb 4, 2015
|
||||
* Author: jcobb
|
||||
*/
|
||||
|
||||
#include <avr/io.h>
|
||||
#include "led.h"
|
||||
|
||||
void vLEDInit(void)
|
||||
{
|
||||
DDRB |= _BV(PB5);
|
||||
//DDRB |= _BV(PB6);
|
||||
}
|
||||
|
||||
void vLEDToggle(void)
|
||||
{
|
||||
PORTB ^= _BV(PB5);
|
||||
//PORTD ^= _BV(PD6);
|
||||
}
|
||||
|
Reference in New Issue
Block a user