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
A
avr-pager
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
yids
avr-pager
Commits
564c230a
Commit
564c230a
authored
Aug 29, 2016
by
hark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs and some emulation stuff
parent
b69e4fdb
Changes
51
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
51 changed files
with
3678 additions
and
3 deletions
+3678
-3
.gitignore
.gitignore
+28
-1
arduino-rx/Makefile
arduino-rx/Makefile
+2
-2
base-tx/Makefile
base-tx/Makefile
+25
-0
docs/AN1200.19_SX127x_RefDesign_STD.pdf
docs/AN1200.19_SX127x_RefDesign_STD.pdf
+0
-0
docs/Atmel-0856-AVR-Instruction-Set-Manual.pdf
docs/Atmel-0856-AVR-Instruction-Set-Manual.pdf
+0
-0
docs/Debugging with SimAVR.html
docs/Debugging with SimAVR.html
+534
-0
docs/Debugging with SimAVR_files/bootstrap-theme.min.css
docs/Debugging with SimAVR_files/bootstrap-theme.min.css
+10
-0
docs/Debugging with SimAVR_files/bootstrap.min.css
docs/Debugging with SimAVR_files/bootstrap.min.css
+10
-0
docs/Debugging with SimAVR_files/bootstrap.min.js
docs/Debugging with SimAVR_files/bootstrap.min.js
+12
-0
docs/Debugging with SimAVR_files/captions.css
docs/Debugging with SimAVR_files/captions.css
+19
-0
docs/Debugging with SimAVR_files/colors.css
docs/Debugging with SimAVR_files/colors.css
+14
-0
docs/Debugging with SimAVR_files/comments.css
docs/Debugging with SimAVR_files/comments.css
+84
-0
docs/Debugging with SimAVR_files/comments.js
docs/Debugging with SimAVR_files/comments.js
+169
-0
docs/Debugging with SimAVR_files/common.js
docs/Debugging with SimAVR_files/common.js
+11
-0
docs/Debugging with SimAVR_files/custom.css
docs/Debugging with SimAVR_files/custom.css
+52
-0
docs/Debugging with SimAVR_files/feed.css
docs/Debugging with SimAVR_files/feed.css
+15
-0
docs/Debugging with SimAVR_files/feed.js
docs/Debugging with SimAVR_files/feed.js
+176
-0
docs/Debugging with SimAVR_files/filter.js
docs/Debugging with SimAVR_files/filter.js
+45
-0
docs/Debugging with SimAVR_files/highlight.pack.js
docs/Debugging with SimAVR_files/highlight.pack.js
+1
-0
docs/Debugging with SimAVR_files/jquery-2.1.3.min.js
docs/Debugging with SimAVR_files/jquery-2.1.3.min.js
+4
-0
docs/Debugging with SimAVR_files/main.css
docs/Debugging with SimAVR_files/main.css
+178
-0
docs/Debugging with SimAVR_files/markdownpreview.js
docs/Debugging with SimAVR_files/markdownpreview.js
+13
-0
docs/Debugging with SimAVR_files/screen.png
docs/Debugging with SimAVR_files/screen.png
+0
-0
docs/Debugging with SimAVR_files/showdown.min.js
docs/Debugging with SimAVR_files/showdown.min.js
+4
-0
docs/Debugging with SimAVR_files/simavr-thumb.png
docs/Debugging with SimAVR_files/simavr-thumb.png
+0
-0
docs/Debugging with SimAVR_files/url.min.js
docs/Debugging with SimAVR_files/url.min.js
+1
-0
docs/Debugging with SimAVR_files/vs.css
docs/Debugging with SimAVR_files/vs.css
+92
-0
docs/RFM92W_93W.pdf
docs/RFM92W_93W.pdf
+0
-0
docs/SX1276StarterKitSetup-20140728-v1.0.0.exe
docs/SX1276StarterKitSetup-20140728-v1.0.0.exe
+0
-0
docs/an120014-xo-guidance-lora-modulation.pdf
docs/an120014-xo-guidance-lora-modulation.pdf
+0
-0
docs/avr_asm_beginner_en.pdf
docs/avr_asm_beginner_en.pdf
+0
-0
docs/sx1239.pdf
docs/sx1239.pdf
+0
-0
docs/sx1272.pdf
docs/sx1272.pdf
+0
-0
docs/sx1276_77_78-errata.pdf
docs/sx1276_77_78-errata.pdf
+0
-0
docs/sx1276_77_78_79.pdf
docs/sx1276_77_78_79.pdf
+0
-0
docs/sx1301pb.pdf
docs/sx1301pb.pdf
+0
-0
simul/Makefile
simul/Makefile
+60
-0
simul/Makefile.common
simul/Makefile.common
+209
-0
simul/Makefile.opengl
simul/Makefile.opengl
+22
-0
simul/README
simul/README
+21
-0
simul/atmega48_charlcd.c
simul/atmega48_charlcd.c
+118
-0
simul/avr_hd44780.c
simul/avr_hd44780.c
+216
-0
simul/avr_hd44780.h
simul/avr_hd44780.h
+105
-0
simul/avr_hd44780_conf.h
simul/avr_hd44780_conf.h
+27
-0
simul/charlcd.c
simul/charlcd.c
+250
-0
simul/core
simul/core
+0
-0
simul/data/blu.tiff
simul/data/blu.tiff
+0
-0
simul/data/font.tiff
simul/data/font.tiff
+0
-0
simul/data/processblu.py
simul/data/processblu.py
+75
-0
simul/font.h
simul/font.h
+1070
-0
simul/gdb.conf
simul/gdb.conf
+6
-0
No files found.
.gitignore
View file @
564c230a
...
...
@@ -3,4 +3,31 @@
*.swa
*.swp
*.swn
arduino-rx/build-atmega328/
arduino-rx/core
arduino-tx/build-atmega328/
base-tx/Makefile.avr
base-tx/avr-hello.c
base-tx/avr-hello.cpp
base-tx/avr-hello.lst
base-tx/keygen
base-tx/old/
base-tx/receiver_test.keypair
base-tx/rx-test
base-tx/sender_test.keypair
base-tx/test
base-tx/tx-test
lorawan-arduino-test/
old/
presentation/pdf/diy-pager.aux
presentation/pdf/diy-pager.log
presentation/pdf/diy-pager.nav
presentation/pdf/diy-pager.out
presentation/pdf/diy-pager.snm
presentation/pdf/diy-pager.toc
avr-src/blink.hex
base-tx/avr-hello.eeprom.hex
base-tx/avr-hello.elf
base-tx/avr-hello.flash.hex
base-tx/avr-hello.fuses.hex
base-tx/avr-hello.hex
arduino-rx/Makefile
View file @
564c230a
...
...
@@ -4,8 +4,8 @@ BOARD_TAG=atmega328
ARDUINO_LIBS
=
RadioHead SPI AESLib Wire LCDI2C_LK162 MemoryFree micro-ecc pagerlib LiquidCrystal
include
/usr/share/arduino/Arduino.mk
#
DEVICE_PATH = /dev/ttyUSB0
DEVICE_PATH
=
/tmp/simavr-uart0
DEVICE_PATH
=
/dev/ttyUSB0
#
DEVICE_PATH = /tmp/simavr-uart0
TARGET
=
arduino-rx
debugger
:
all
...
...
base-tx/Makefile
View file @
564c230a
ABIN
=
avr-hello
AOBJS
=
avr-hello.o
ACC
=
avr-gcc
AOBJCOPY
=
avr-objcopy
AGDB
=
avr-gdb
ACFLAGS
=
-Os
-DF_CPU
=
16000000UL
-mmcu
=
atmega328p
APORT
=
/dev/ttyACM0
${ABIN}.hex
:
${ABIN}.elf
${AOBJCOPY}
-O
ihex
-R
.eeprom
$<
$@
${ABIN}.elf
:
${AOBJS}
${ACC}
-o
$@
$^
flash
:
${ABIN}.hex
avrdude
-F
-V
-c
arduino
-p
ATMEGA328P
-P
${APORT}
-b
115200
-U
flash:w:
$<
clean
:
rm
-f
${ABIN}
.elf
${ABIN}
.hex
${AOBJS}
CC
=
colorgcc
CFLAGS
=
"-I ../libs -DDEBUG"
...
...
@@ -22,3 +46,4 @@ test2: test2.c
$(CC)
-std
=
c99
-o
test2 test2.c ../libs/micro-ecc/uECC.c
-lmbedtls
-lmbedx509
-lmbedcrypto
$(LIBS)
$(CFLAGS)
clean
:
rm
-r
test
tx-test rx-test keygen
docs/AN1200.19_SX127x_RefDesign_STD.pdf
0 → 100644
View file @
564c230a
File added
docs/Atmel-0856-AVR-Instruction-Set-Manual.pdf
0 → 100644
View file @
564c230a
File added
docs/Debugging with SimAVR.html
0 → 100644
View file @
564c230a
This diff is collapsed.
Click to expand it.
docs/Debugging with SimAVR_files/bootstrap-theme.min.css
0 → 100644
View file @
564c230a
This diff is collapsed.
Click to expand it.
docs/Debugging with SimAVR_files/bootstrap.min.css
0 → 100644
View file @
564c230a
This diff is collapsed.
Click to expand it.
docs/Debugging with SimAVR_files/bootstrap.min.js
0 → 100644
View file @
564c230a
This diff is collapsed.
Click to expand it.
docs/Debugging with SimAVR_files/captions.css
0 → 100644
View file @
564c230a
.thumbnail
{
position
:
relative
;
overflow
:
hidden
;
}
.caption
{
position
:
absolute
;
bottom
:
0
;
right
:
0
;
background
:
rgba
(
92
,
184
,
92
,
0.33
);
width
:
100%
;
height
:
45%
;
padding
:
2%
;
display
:
none
;
text-align
:
center
;
color
:
#fff
!important
;
z-index
:
2
;
}
\ No newline at end of file
docs/Debugging with SimAVR_files/colors.css
0 → 100644
View file @
564c230a
.white
{
color
:
white
;
}
.green
{
color
:
#5CB85C
;
}
.blue
{
color
:
blue
;
}
\ No newline at end of file
docs/Debugging with SimAVR_files/comments.css
0 → 100644
View file @
564c230a
.comment-section
{
padding
:
10px
;
margin-top
:
10px
;
border-top
:
1px
solid
#DADADA
;
}
.comment-list
{
list-style
:
none
;
max-height
:
500px
;
overflow-y
:
auto
;
}
.comment-avatar
{
width
:
32px
;
height
:
100%
;
float
:
left
;
}
.comment-avatar
a
>
img
{
width
:
100%
;
border-radius
:
50%
;
}
.comment-list
li
{
margin-top
:
10px
;
}
.comment-text
p
{
margin
:
0
;
padding-left
:
10px
;
}
.comment-text
h1
{
margin
:
0
;
padding-left
:
10px
;
}
.comment-list
li
>
div
{
display
:
table-cell
;
}
.sub-text
{
color
:
#aaa
;
font-family
:
verdana
;
font-size
:
11px
;
padding-left
:
10px
;
}
.add-comment
{
margin-left
:
20px
;
/*width: 500px;*/
}
.preview-section
{
margin-bottom
:
60px
;
}
/*
#rawTextField
{
height: 100px;
}
#markdownPreview
{
height: 100px;
padding 20px;
}
*/
docs/Debugging with SimAVR_files/comments.js
0 → 100644
View file @
564c230a
function
getPostComments
(
issueNumber
,
callback
)
{
// get the issue, specified by number, for the site page
$
.
get
(
"
https://api.github.com/repos/nnarain/nnarain.github.io/issues/
"
+
issueNumber
,
function
(
issueData
){
// get the issue's comments url
var
commentsUrl
=
issueData
.
comments_url
;
// if the issuse has comments
if
(
issueData
.
comments
!=
0
)
{
// get the comments
$
.
get
(
commentsUrl
,
function
(
commentsData
){
var
len
=
commentsData
.
length
;
var
ret
=
{
"
comments
"
:[]};
// for every comment object
for
(
var
i
=
0
;
i
<
len
;
++
i
)
{
var
data
=
commentsData
[
""
+
i
];
var
comment
=
{};
comment
[
"
body
"
]
=
getMarkdownPreview
(
data
.
body
);
comment
[
"
date
"
]
=
data
.
created_at
;
comment
[
"
user
"
]
=
{
"
name
"
:
data
.
user
.
login
,
"
avatar_url
"
:
data
.
user
.
avatar_url
,
"
url
"
:
"
https://github.com/
"
+
data
.
user
.
login
};
ret
.
comments
.
push
(
comment
);
}
callback
(
ret
);
});
}
else
{
callback
({
"
comments
"
:[]});
}
});
}
function
makeBasicAuth
(
username
,
password
)
{
var
token
=
username
+
"
:
"
+
password
;
var
hash
=
btoa
(
token
);
return
"
Basic
"
+
hash
;
}
function
generateCommentPanel
(
comment
)
{
var
output
=
''
;
output
+=
'
<li>
'
;
{
output
+=
'
<div class="comment-avatar">
'
;
{
output
+=
'
<a href="
'
+
comment
.
user
.
url
+
'
">
'
;
{
output
+=
'
<img src="
'
+
comment
.
user
.
avatar_url
+
'
"/>
'
;
}
output
+=
'
</a>
'
;
}
output
+=
'
</div>
'
;
output
+=
'
<div class="comment-text">
'
;
{
// output += '<p>';
{
output
+=
comment
.
body
;
}
// output += '</p>';
output
+=
'
<span class="date sub-text">
'
+
comment
.
date
.
split
(
'
T
'
)[
0
]
+
'
</span>
'
;
}
output
+=
'
</div>
'
;
}
output
+=
'
</li>
'
;
return
output
;
}
/**
Generate the comment section for the comments recieved
*/
function
generateCommentSection
(
data
)
{
var
comments
=
data
.
comments
;
var
len
=
comments
.
length
;
var
output
=
''
;
for
(
var
i
=
0
;
i
<
len
;
++
i
)
{
var
comment
=
comments
[
""
+
i
];
output
+=
generateCommentPanel
(
comment
);
}
$
(
"
#commentList
"
).
html
(
output
);
}
function
setupAddComments
()
{
// disable the default action of the add comment form
$
(
"
#addCommentForm
"
).
submit
(
function
(
event
){
event
.
preventDefault
();
var
commentText
=
$
(
"
#commentTextField
"
).
val
();
if
(
commentText
)
{
$
(
"
#credDialog
"
).
modal
();
}
else
{
$
(
"
#warningDialog
"
).
modal
();
}
});
}
function
setupPostComment
(
issueNumber
)
{
// focus on the username input field when credential form is displayed
$
(
"
#credDialog
"
).
on
(
'
shown.bs.modal
'
,
function
(){
$
(
"
#usernameField
"
).
focus
();
});
$
(
"
#credForm
"
).
submit
(
function
(
event
){
event
.
preventDefault
();
var
username
=
$
(
"
#usernameField
"
).
val
();
var
password
=
$
(
"
#passwordField
"
).
val
();
var
commentBody
=
$
(
"
#commentTextField
"
).
val
();
if
(
username
&&
password
&&
commentBody
)
{
$
.
ajax
({
type
:
"
POST
"
,
url
:
"
https://api.github.com/repos/nnarain/nnarain.github.io/issues/
"
+
issueNumber
+
"
/comments
"
,
dataType
:
"
json
"
,
contentType
:
"
application/json
"
,
data
:
JSON
.
stringify
({
"
body
"
:
commentBody
}),
beforeSend
:
function
(
xhr
){
xhr
.
setRequestHeader
(
"
Authorization
"
,
makeBasicAuth
(
username
,
password
));
},
success
:
function
(
data
){
location
.
reload
();
},
error
:
function
(
xhr
,
ajaxOptions
,
error
){
console
.
log
(
xhr
.
responseText
);
}
});
}
});
}
function
setupPreview
()
{
$
(
"
#previewLink
"
).
click
(
function
(){
// get the markdown formatted text in the comment section and convert to html
var
markdownContent
=
$
(
"
#commentTextField
"
).
val
();
var
htmlText
=
getMarkdownPreview
(
markdownContent
);
$
(
"
#markdownPreview
"
).
html
(
htmlText
);
});
}
\ No newline at end of file
docs/Debugging with SimAVR_files/common.js
0 → 100644
View file @
564c230a
function
initPostThumbnails
()
{
$
(
'
.thumbnail
'
).
hover
(
function
(){
$
(
this
).
find
(
'
.caption
'
).
slideDown
(
250
);
//.fadeIn(250)
},
function
(){
$
(
this
).
find
(
'
.caption
'
).
slideUp
(
250
);
//.fadeOut(205)
}
);
}
\ No newline at end of file
docs/Debugging with SimAVR_files/custom.css
0 → 100644
View file @
564c230a
.post-title-green
{
display
:
block
;
font-size
:
24px
;
color
:
#5CB85C
;
}
.page-links-green
{
display
:
block
;
color
:
#5CB85C
;
}
.pagination
>
li
>
a
{
color
:
#5CB85C
;
}
.hidden
{
display
:
none
;
}
.label-as-badge
{
border-radius
:
1em
;
}
pre
{
background-color
:
transparent
;
border
:
0px
;
}
pre
>
code
{
white-space
:
pre
;
overflow-x
:
auto
;
}
.hljs
{
display
:
inline-block
;
overflow-x
:
auto
;
-webkit-text-size-adjust
:
none
;
}
.post-sequence-bottom
{
padding-bottom
:
10px
;
}
.archive-list-entry
{
list-style-type
:
none
;
}
docs/Debugging with SimAVR_files/feed.css
0 → 100644
View file @
564c230a
.panel-heading
>
h4
>
small
>
a
{
text-decoration
:
none
;
}
.list-group-item
{
word-wrap
:
break-word
;
font-size
:
14px
;
}
.list-group-item
:hover
{
background-color
:
#d8ffd8
;
}
\ No newline at end of file
docs/Debugging with SimAVR_files/feed.js
0 → 100644
View file @
564c230a
var
PLUS_ICON
=
'
glyphicon-plus-sign
'
;
var
MINUS_ICON
=
'
glyphicon-minus-sign
'
;
function
getGithubActivityFeed
(
username
,
callback
)
{
$
.
get
(
"
https://api.github.com/users/
"
+
username
+
"
/events/public
"
,
function
(
data
){
//console.log(data);
var
len
=
data
.
length
;
var
commits
=
{};
// loop for each object (objects are named 0, 1, 2, 3, etc...)
for
(
var
i
=
0
;
i
<
len
;
i
++
)
{
// get the event
var
event
=
data
[
""
+
i
];
// only consider push events
if
(
event
.
type
==
"
PushEvent
"
)
{
// get the repo name
var
name
=
event
.
repo
.
name
;
// ... if the repo hasn't been added to the dictionary
if
(
commits
[
name
]
===
undefined
)
{
// add repo to dictionary
commits
[
name
]
=
{
"
num
"
:
0
,
"
url
"
:
"
https://github.com/
"
+
name
,
"
messages
"
:[]
};
}
var
numCommits
=
event
.
payload
.
distinct_size
;
// increment commit count
commits
[
name
].
num
+=
numCommits
;
if
(
numCommits
>
0
)
{
// add commit messages
for
(
var
j
=
numCommits
-
1
;
j
>=
0
;
--
j
)
{
var
commit
=
event
.
payload
.
commits
[
""
+
j
];
var
message
=
commit
.
message
;
commits
[
name
].
messages
.
push
(
message
);
}
}
}
}
// create the result object
var
activity
=
{};
// add commits
activity
[
"
commits
"
]
=
commits
;
// send back to caller
callback
(
activity
);
});
}
function
getGithubAvatar
(
username
,
callback
)
{
$
.
get
(
"
https://api.github.com/users/
"
+
username
,
function
(
data
){
callback
(
data
.
avatar_url
);
});
}
function
setupFeed
(
username
)
{
getGithubAvatar
(
username
,
function
(
avatarURL
){
$
(
"
#avatarImg
"
).
attr
(
"
src
"
,
avatarURL
);
});
getGithubActivityFeed
(
username
,
function
(
activity
){
var
output
=
""
;
var
idx
=
0
;
for
(
var
key
in
activity
.
commits
)
{
var
repo
=
activity
.
commits
[
key
];
output
+=
"
<div class=
\"
panel panel-default
\"
>
"
;
{
output
+=
"
<div class=
\"
panel-heading
\"
>
"
;
{
output
+=
"
<h4 class=
\"
panel-title
\"
>
"
;
{
output
+=
"
<small>
"
{
// output += "<a class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#feedList\" href=\"#collapse" + idx + "\">";
// output += "<span data-toggle='tooltip' data-placement='top' title='View Commits'>pushed</span> to " + key;
// output += "</a>";
output
+=
"
<a class=
\"
accordion-toggle
\"
data-toggle=
\"
collapse
\"
data-parent=
\"
#feedList
\"
href=
\"
#collapse
"
+
idx
+
"
\"
>
"
;
output
+=
"
<span data-toggle='tooltip' data-placement='top' title='Show Commits' class='glyphicon green icon-toggle'></span>
"
;
output
+=
"
</a>
"
;
output
+=
"
pushed to <a href='
"
+
repo
.
url
+
"
'>
"
+
key
+
"
</a>
"
;
}
output
+=
"
</small>
"
}
output
+=
"
</h4>
"
;
}
output
+=
"
</div>
"
;
output
+=
"
<div id=
\"
collapse
"
+
idx
+
"
\"
class=
\"
panel-collapse collapse
\"
>
"
;
{
output
+=
"
<div class=
\"
panel-body
\"
>
"
;
{
output
+=
"
<ul class=
\"
list-group
\"
>
"
;
{
var
numMessages
=
repo
.
messages
.
length
>=
10
?
10
:
repo
.
messages
.
length
;
for
(
var
i
=
0
;
i
<
numMessages
;
i
++
)
{
output
+=
"
<li class=
\"
list-group-item
\"
>
"
;
{
output
+=
"
<small>
"
;
{
output
+=
repo
.
messages
[
i
];
}
output
+=
"
</small>
"
;
}
output
+=
"
</li>
"
;
}
}
output
+=
"
</ul>
"
;
}
output
+=
"
</div>
"
;
}