mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-23 19:20:51 +00:00
esp32: Partially implement hal_cpu layer
This commit is contained in:
parent
d4d8445570
commit
0631daa1e1
@ -3,12 +3,22 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "freertos/FreeRTOS.h"
|
||||
|
||||
static portMUX_TYPE global_int_mux = portMUX_INITIALIZER_UNLOCKED;
|
||||
|
||||
void hal_cpu_disable_irqs(void){
|
||||
//printf("hal_cpu_disable_irqs\n");
|
||||
portENTER_CRITICAL(&global_int_mux);
|
||||
}
|
||||
|
||||
void hal_cpu_enable_irqs(void){
|
||||
//printf("hal_cpu_enable_irqs\n");
|
||||
portEXIT_CRITICAL(&global_int_mux);
|
||||
}
|
||||
|
||||
void hal_cpu_enable_irqs_and_sleep(void){
|
||||
//printf("hal_cpu_enable_irqs_and_sleep\n");
|
||||
portEXIT_CRITICAL(&global_int_mux);
|
||||
// @TODO
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user