Browse Source

pika_hal support for STM32HAL

Lyon 2 years ago
parent
commit
c5935fbf85

+ 2 - 0
package/PikaStdDevice/pika_hal.h

@@ -9,6 +9,8 @@
  * the API of pika_hal is similar to the posix file API.
  */
 
+#define PIKA_HAL
+
 typedef enum {
 #define PIKA_HAL_TABLE_DEV_TYPE
 #include "pika_hal_table.h"

+ 0 - 1
package/PikaStdDevice/pika_hal_SOFT_TIM.c

@@ -1,7 +1,6 @@
 #include "pika_hal.h"
 #include <stdint.h>
 #include "PikaObj.h"
-#include <pthread.h>
 
 typedef struct platform_data_SOFT_TIM {
     pika_platform_timer_t thread_timer;

+ 2 - 0
port/linux/package/pikascript/pikascript-lib/PikaStdDevice/pika_hal.h

@@ -9,6 +9,8 @@
  * the API of pika_hal is similar to the posix file API.
  */
 
+#define PIKA_HAL
+
 typedef enum {
 #define PIKA_HAL_TABLE_DEV_TYPE
 #include "pika_hal_table.h"

+ 0 - 1
port/linux/package/pikascript/pikascript-lib/PikaStdDevice/pika_hal_SOFT_TIM.c

@@ -1,7 +1,6 @@
 #include "pika_hal.h"
 #include <stdint.h>
 #include "PikaObj.h"
-#include <pthread.h>
 
 typedef struct platform_data_SOFT_TIM {
     pika_platform_timer_t thread_timer;