diff options
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/include/hal.h | 4 | ||||
-rw-r--r-- | os/hal/include/hal_pal.h | 18 |
2 files changed, 12 insertions, 10 deletions
diff --git a/os/hal/include/hal.h b/os/hal/include/hal.h index d1a5f111e..f57bfa5b0 100644 --- a/os/hal/include/hal.h +++ b/os/hal/include/hal.h @@ -181,12 +181,12 @@ /**
* @brief HAL version string.
*/
-#define HAL_VERSION "5.0.0"
+#define HAL_VERSION "6.0.0"
/**
* @brief HAL version major number.
*/
-#define CH_HAL_MAJOR 5
+#define CH_HAL_MAJOR 6
/**
* @brief HAL version minor number.
diff --git a/os/hal/include/hal_pal.h b/os/hal/include/hal_pal.h index 8162ecf11..4369305c4 100644 --- a/os/hal/include/hal_pal.h +++ b/os/hal/include/hal_pal.h @@ -124,7 +124,7 @@ /**
* @brief Type of a PAL event callback.
*/
-typedef void (*palcallback_t)(void);
+typedef void (*palcallback_t)(void *arg);
#include "hal_pal_lld.h"
@@ -526,14 +526,15 @@ typedef struct { * @param[in] pad pad number within the port
* @param[in] mode pad event mode
* @param[in] callback event callback function
+ * @param[in] arg callback argument
*
* @iclass
*/
#if !defined(pal_lld_enablepadevent) || defined(__DOXYGEN__)
-#define palPadEnableEventI(port, pad, mode, callback)
+#define palPadEnableEventI(port, pad, mode, callback, arg)
#else
-#define palPadEnableEventI(port, pad, mode, callback) \
- pal_lld_enablepadevent(port, pad, mode, callback)
+#define palPadEnableEventI(port, pad, mode, callback, arg) \
+ pal_lld_enablepadevent(port, pad, mode, callback, arg)
#endif
/**
@@ -669,15 +670,16 @@ typedef struct { * @param[in] line line identifier
* @param[in] mode line event mode
* @param[in] callback event callback function
+ * @param[in] arg callback argument
*
* @iclass
*/
#if !defined(pal_lld_lineenableevent) || defined(__DOXYGEN__)
-#define palLineEnableEventI(line, mode, callback) \
- palPadEnableEventI(PAL_PORT(line), PAL_PAD(line), mode, callback)
+#define palLineEnableEventI(line, mode, callback, arg) \
+ palPadEnableEventI(PAL_PORT(line), PAL_PAD(line), mode, callback, arg)
#else
-#define palLineEnableEventI(line, mode, callback) \
- pal_lld_lineenableevent(line, mode, callback)
+#define palLineEnableEventI(line, mode, callback, arg) \
+ pal_lld_lineenableevent(line, mode, callback, arg)
#endif
/**
|