Commit 2f2ff187 authored by Daan Vreeken's avatar Daan Vreeken
Browse files

Add BLOCK_CREATE macro.

	modified:   controller/block/block_quadrature_decoder.c
parent 7693ac64
/*
* 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 },
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment