Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tammo Jan Dijkema
dt_ctrl
Commits
2f2ff187
Commit
2f2ff187
authored
Jan 23, 2015
by
Daan Vreeken
Browse files
Add BLOCK_CREATE macro.
modified: controller/block/block_quadrature_decoder.c
parent
7693ac64
Changes
1
Hide whitespace changes
Inline
Side-by-side
controller/block/block_quadrature_decoder.c
View file @
2f2ff187
/*
* Copyright (c) 2012,
* Copyright (c) 2012,
2015,
* Daan Vreeken <Daan @ Vitsch . nl> - Vitsch Electronics
* All rights reserved.
*
...
...
@@ -146,7 +146,8 @@ static struct controller_block_outterm_list outterms[] = {
{
NULL
},
};
struct
controller_block
*
block_quadrature_decoder_create
(
char
*
name
)
struct
controller_block
*
block_quadrature_decoder_create
(
char
*
name
,
int
argc
,
va_list
ap
)
{
struct
controller_block
*
block
;
...
...
@@ -178,3 +179,8 @@ err_block:
controller_block_free
(
block
);
return
NULL
;
}
BLOCK_CREATE
(
quadrature_decoder
)
=
{
.
create
=
block_quadrature_decoder_create
,
.
args
=
{
NULL
},
};
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