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