Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lwc
/
compare
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7c967ca5
authored
Jul 27, 2020
by
Enrico Pozzobon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fixes
parent
5fb979ea
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
templates/f7/compile
+3
-2
templates/longan-nano/src/main.ino
+3
-3
test-scheduler.py
+1
-1
No files found.
templates/f7/compile
View file @
7c967ca5
...
@@ -13,9 +13,10 @@ mv build/f7.bin .
...
@@ -13,9 +13,10 @@ mv build/f7.bin .
mv build/f7.hex
.
mv build/f7.hex
.
mv build/f7.elf
.
mv build/f7.elf
.
rm ./Drivers
rm
-rf
./Drivers
rm
-rf
./build/
rm
-rf
./build/
exit
EXIT_CODE
exit
$EXIT_CODE
templates/longan-nano/src/main.ino
View file @
7c967ca5
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#define CMDBUF_LEN 200
#define CMDBUF_LEN 200
static
uint8_t
cmdbuf
[
CMDBUF_LEN
];
static
uint8_t
cmdbuf
[
CMDBUF_LEN
];
#define CRYPTO_BUSY P
A7
#define CRYPTO_BUSY P
B9
#define noInterrupts() eclic_global_interrupt_disable()
#define noInterrupts() eclic_global_interrupt_disable()
#define interrupts() eclic_global_interrupt_disable()
#define interrupts() eclic_global_interrupt_disable()
#define yield() do {} while(0)
#define yield() do {} while(0)
...
@@ -32,8 +32,6 @@ extern "C" {
...
@@ -32,8 +32,6 @@ extern "C" {
static
void
init_uart0
(
void
)
static
void
init_uart0
(
void
)
{
{
// enable GPIO clock
rcu_periph_clock_enable
(
RCU_GPIOA
);
// enable USART0 clock
// enable USART0 clock
rcu_periph_clock_enable
(
RCU_USART0
);
rcu_periph_clock_enable
(
RCU_USART0
);
// configure USART0
// configure USART0
...
@@ -79,6 +77,8 @@ void my_assert(bool b) {
...
@@ -79,6 +77,8 @@ void my_assert(bool b) {
}
}
void
setup
()
{
void
setup
()
{
rcu_periph_clock_enable
(
RCU_GPIOA
);
rcu_periph_clock_enable
(
RCU_GPIOB
);
init_uart0
();
init_uart0
();
pinMode
(
CRYPTO_BUSY
,
OUTPUT
);
pinMode
(
CRYPTO_BUSY
,
OUTPUT
);
digitalWrite
(
CRYPTO_BUSY
,
HIGH
);
digitalWrite
(
CRYPTO_BUSY
,
HIGH
);
...
...
test-scheduler.py
View file @
7c967ca5
...
@@ -260,7 +260,7 @@ class ScheduleJob(Resource):
...
@@ -260,7 +260,7 @@ class ScheduleJob(Resource):
'cipher'
,
'cipher_timestamp'
'cipher'
,
'cipher_timestamp'
]
]
for
k
in
mandatory_fields
:
for
k
in
mandatory_fields
:
if
k
not
in
data
:
if
k
not
in
data
or
len
(
k
)
==
0
:
return
'field "
%
s" expected'
%
k
,
400
return
'field "
%
s" expected'
%
k
,
400
schedule
.
append
(
ScheduledTest
(
**
data
))
schedule
.
append
(
ScheduledTest
(
**
data
))
...
...
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