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
eb0dd6f6
Commit
eb0dd6f6
authored
Feb 04, 2020
by
Øystein Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed range of offtime table, and added comments on witch hex switch is witch
parent
460af3dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
18 deletions
+20
-18
gpio_config.h
gpio_config.h
+2
-2
optic_config.h
optic_config.h
+18
-16
No files found.
gpio_config.h
View file @
eb0dd6f6
...
...
@@ -19,7 +19,7 @@
#define GPIO_SIGNAL_INPUT_PIN0 0
// Hex 0
#define GPIO_ONTIME_HEX_0_PORT (PORTD)
#define GPIO_ONTIME_HEX_0_PIN (PIND)
#define GPIO_ONTIME_HEX_1_PORT (PORTD)
...
...
@@ -34,7 +34,7 @@
#define GPIO_ONTIME_HEX_PIN2 2
#define GPIO_ONTIME_HEX_PIN3 3
// Hex 1
#define GPIO_OFFTIME_HEX_0_PORT (PORTC)
#define GPIO_OFFTIME_HEX_0_PIN (PINC)
#define GPIO_OFFTIME_HEX_1_PORT (PORTC)
...
...
optic_config.h
View file @
eb0dd6f6
...
...
@@ -11,6 +11,7 @@
#include <inttypes.h>
// Hex 0
uint16_t
ontime_table
[
16
]
=
{
// 256/255 of max value. (in 1/2 microseconds) max value ~2^14 ~=16k
2
,
// almost nothing
100
,
// 50us
...
...
@@ -30,23 +31,24 @@ uint16_t ontime_table[16] = { // 256/255 of max value. (in 1/2 microseconds) max
2000
// 1000us
};
// Hex 1
uint16_t
offtime_table
[
16
]
=
{
10
0
,
// 50us
20
0
,
// ...
40
0
,
60
0
,
80
0
,
100
0
,
120
0
,
140
0
,
160
0
,
180
0
,
200
0
,
220
0
,
240
0
,
260
0
,
280
0
,
300
0
//1.5 ms
10
,
// 50us
20
,
// ...
40
,
60
,
80
,
100
,
120
,
140
,
160
,
180
,
200
,
220
,
240
,
260
,
280
,
300
//1.5 ms
};
...
...
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