Commit c0f25754 authored by Andreas Werner's avatar Andreas Werner
Browse files

motorcontoller: move stack size to motorcontroller.h

parent f39cbf22
......@@ -28,6 +28,9 @@
* \{
*/
#define MOTORCONTROLLER_HEARTBEAT_TASK_STACK_SIZE (256)
#define MOTORCONTROLLER_ADC_TASK_STACK_SIZE (256)
/**
* Private struct of the Motorcontroller driver
*/
......@@ -213,7 +216,6 @@ struct motorcontroller_temp {
void *callback_data;
bool running;
uint32_t ticks;
OS_DEFINE_TASK(task, MOTORCONTROLLER_temp_TASK_STACK_SIZE);
};
struct motorcontroller_temp_config {
......
......@@ -20,8 +20,6 @@
// motorcontroller / generic
#define MOTORCONTROLLER_HEARTBEAT_TASK_STACK_SIZE (256)
#define MOTORCONTROLLER_HEARTBEAT_PERIOD_MS (100)
#define MOTORCONTROLLER_TX_TIMEOUT_MS (50)
#define MOTORCONTROLLER_HEARTBEAT_TIMEOUT_MS (500)
......@@ -29,13 +27,6 @@
#define MOTORCONTROLLER_TASK_NOTIFY_INDEX (1)
// ADC
#define MOTORCONTROLLER_ADC_TASK_STACK_SIZE (256)
int32_t motorcontroller_register_filter(struct motorcontroller *motorcontroller, uint32_t can_id, int32_t *filterID, bool (*callback)(struct can *can, struct can_msg *msg, void *data));
int32_t motorcontroller_send_control(struct motorcontroller *motorcontroller, uint16_t control);
int32_t motorcontroller_update_control(struct motorcontroller *motorcontroller, uint16_t control, uint16_t control_bits, uint16_t control_mask);
......
Supports Markdown
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