Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Appletuna
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gm2g18
Appletuna
Merge requests
!1
Deleted lib/led/led.c, lib/led/led.h files
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Deleted lib/led/led.c, lib/led/led.h files
gm2g18-master-patch-92617
into
master
Overview
0
Commits
1
Changes
2
Merged
gm2g18
requested to merge
gm2g18-master-patch-92617
into
master
5 years ago
Overview
0
Commits
1
Changes
2
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
cf80ef06
1 commit,
5 years ago
2 files
+
0
−
50
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
lib/led/led.c deleted
100644 → 0
+
0
−
36
View file @ f2cb5946
/* Author: Steve Gunn
* Licence: This work is licensed under the Creative Commons Attribution License.
* View this license at http://creativecommons.org/about/licenses/
*/
#include
<avr/io.h>
#include
"led.h"
void
init_led
()
{
DDRB
|=
_BV
(
LED
);
PORTB
&=
~
_BV
(
LED
);
}
void
led_on
()
{
PORTB
|=
_BV
(
LED
);
}
void
led_off
()
{
TCCR0A
=
0x00
;
TCCR0B
=
0x00
;
PORTB
&=
~
_BV
(
LED
);
}
void
led_brightness
(
uint8_t
i
)
{
/* Configure Timer 0 Fast PWM Mode 3 */
TCCR0A
=
_BV
(
COM0A1
)
|
_BV
(
WGM01
)
|
_BV
(
WGM00
);
TCCR0B
=
_BV
(
CS20
);
OCR0A
=
i
;
}
Loading