Commit fbfd15eb authored by Matthias Wenzl's avatar Matthias Wenzl
Browse files

(finished) update to new mailbox api

parent ea91aff7
......@@ -98,13 +98,16 @@ int canTivaRegisterMsgObject(CAN_Handle handle,uint32_t objId, CAN_Msg *msg, uin
}
int canTivaAlterRxCallback(CAN_Handle handle, CAN_RxCallback callback) {
int canTivaGetMbHandle (CAN_Handle handle, void **mb) {
/*TODO:implement_me*/
return CAN_SUCCESS;
}
int canTivaGetStats(CAN_Handle handle, CAN_Stats *stats) {
/*TODO:implement_me*/
......
/*
* can_wrapper.c
* can_driver.c
*
* Created on: Aug 14, 2017
* Author: wenzl
......
......@@ -11,8 +11,7 @@
#ifndef CANTIVA_H_
#define CANTIVA_H_
#include "EK_TM4C1294XL.h"
#include <EK_TM4C1294XL.h>
#include <stdbool.h>
#include <ti/sysbios/family/arm/m3/Hwi.h>
......
/*!
* CAN HAL layer - Must be called by user applications
* can_wrapper.h
* can_driver.h
*
* Created on: Aug 14, 2017
* Author: wenzl
......@@ -138,9 +138,9 @@ int CAN_Close(int index);
*/
int CAN_RegisterMsgObj(int index, int objId, CAN_Msg *msg, uint32_t msgType);
/*! \brief Add receiver callback CAN device
/*! \brief Retreive mailbox handle
*
* Call hw specific function to receiver callback through CAN_config structure
* Obtain a pointer to the mailbox sending newly arrived messages to a user task.
*
* \param index Specified CAN module
* \param mb Pointer to a MailBox pointer that is set up during CAN device initialization
......
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