Stub out spinlocks

This commit is contained in:
Ayke van Laethem
2021-09-27 16:57:13 +02:00
parent ab4d01654b
commit b74b250db5
+5 -3
View File
@@ -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");