void incoming_spike_callback(uint key, uint payload) { use(payload); log_debug("Received spike %x at time %d\n", key, time); // If there was space to add spike to incoming spike queue in_spikes_add_spike(key); }
// Callbacks void incoming_spike_callback(uint key, uint payload) { use(payload); log_debug("Received spike %x", key); // If there was space to add spike to incoming spike queue if (in_spikes_add_spike(key)) { if (!processing_spikes) { processing_spikes = true; spin1_trigger_user_event(0, 0); } } }