コード例 #1
0
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);
}
コード例 #2
0
ファイル: delay_extension.c プロジェクト: Paul92/sPyNNaker
// 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);
        }
    }
}