mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-17 05:13:23 +00:00
Stub out spinlocks
This commit is contained in:
+5
-3
@@ -33,11 +33,13 @@ static bool _is_from_isr(void) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
static void * _spin_lock_create(void) {
|
static void * _spin_lock_create(void) {
|
||||||
printf("called: _spin_lock_create\n");
|
// It looks like the only thing these libraries do, is create and delete
|
||||||
return NULL;
|
// spin locks. So creating this as a stub for now.
|
||||||
|
return malloc(1);
|
||||||
}
|
}
|
||||||
static void _spin_lock_delete(void *lock) {
|
static void _spin_lock_delete(void *lock) {
|
||||||
printf("called: _spin_lock_delete\n");
|
// See _spin_lock_create.
|
||||||
|
free(lock);
|
||||||
}
|
}
|
||||||
static uint32_t _wifi_int_disable(void *wifi_int_mux) {
|
static uint32_t _wifi_int_disable(void *wifi_int_mux) {
|
||||||
printf("called: _wifi_int_disable\n");
|
printf("called: _wifi_int_disable\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user