Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fw-unfuck
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
teslakom
fw-unfuck
Commits
f040cd43
Commit
f040cd43
authored
Feb 15, 2019
by
Øystein Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
One inversion to many on the input, plus unknown fix from 2018
parent
79af9ae1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
unfuck/unfuck/drivers/adc.c
unfuck/unfuck/drivers/adc.c
+3
-1
unfuck/unfuck/drivers/gpio.c
unfuck/unfuck/drivers/gpio.c
+1
-1
No files found.
unfuck/unfuck/drivers/adc.c
View file @
f040cd43
...
...
@@ -20,7 +20,9 @@ void adc_init( void )
{
//enable
ADCSRA
=
(
1
<<
ADEN
)
|
(
7
<<
ADPS0
);
// enable and set clock to 16MHz / 128 = 125kHz
ADMUX
=
(
1
<<
REFS0
);
//set mux
ADMUX
=
(
ADMUX
&
~
ADC_MUX_bm
)
|
ADC_ONTIME_ADC_MUX_gc
;
adc_channel_select
=
ADC_ONTIME_SELECT
;
...
...
unfuck/unfuck/drivers/gpio.c
View file @
f040cd43
...
...
@@ -45,5 +45,5 @@ uint8_t gpio_get_ontime( void )
uint8_t
gpio_get_input
(
void
)
{
return
!
!
(
GPIO_SIGNAL_INPUT_PIN
&
GPIO_SIGNAL_INPUT_PIN0_bm
);
return
!
(
GPIO_SIGNAL_INPUT_PIN
&
GPIO_SIGNAL_INPUT_PIN0_bm
);
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment