Skip to content

Instantly share code, notes, and snippets.

def _rv_alias_impl(ctx):
files = ctx.attr.actual[DefaultInfo].files
runfiles = ctx.runfiles(files.to_list())
return [DefaultInfo(files = files, runfiles = runfiles)]
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
load("//rules:splice.bzl", "bitstream_splice")
load("//rules:otp.bzl", "get_otp_images")
package(default_visibility = ["//visibility:public"])
# By default, targets in this file will use cached artifacts from the GCP bucket
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <stdbool.h>
#include "sw/device/lib/runtime/log.h"
#include "sw/device/lib/testing/test_framework/ottf_main.h"
#include "sw/device/silicon_creator/lib/drivers/lifecycle.h"
#include "sw/device/silicon_creator/lib/drivers/otp.h"
Debug: 12382 1056 riscv-013.c:783 execute_abstract_command(): command=0x22100e; access register, size=32, postexec=0, transfer=1, write=0, regno=0x100e
Debug: 12383 1056 mpsse.c:630 mpsse_set_data_bits_high_byte(): -
Debug: 12384 1056 mpsse.c:445 buffer_write_byte(): 82
Debug: 12385 1056 mpsse.c:445 buffer_write_byte(): 09
Debug: 12386 1056 mpsse.c:445 buffer_write_byte(): 0b
Debug: 12387 1056 ftdi.c:424 ftdi_execute_scan(): IRSCAN type:2
Debug: 12388 1056 ftdi.c:254 move_to_state(): start=RUN/IDLE goal=IRSHIFT
Debug: 12389 1056 ftdi.c:258 move_to_state(): tap_set_state(DRSELECT)
Debug: 12390 1056 ftdi.c:258 move_to_state(): tap_set_state(IRSELECT)
Debug: 12391 1056 ftdi.c:258 move_to_state(): tap_set_state(IRCAPTURE)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <time.h>
#if !defined(_WIN32)
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <net/if.h>
#!/usr/bin/env python3
import socket
import sys
import struct
if len(sys.argv) != 2:
print("usage: {} intf".format(sys.argv[0]))
print("interfaces:")
for idx, name in socket.if_nameindex():
print("{}: {}".format(idx, name))
void myperror(const char *msg) {
char *wsa_message = NULL;
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
WSAGetLastError(),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPSTR)&wsa_message,
0,
NULL);
printf("%s : %s\n", msg, wsa_message);
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#if !defined(_WIN32)
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'dart:math';
import 'dart:ui';
import 'package:flutter/services.dart';
import 'package:image/image.dart' as A;
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
Comment gérer un conflit git, du type "a merge would override your changes":
1) enregistrer les modifications locales: git stash
2) faire le merge: git pull
3) réappliquer ls modifications locales: git stash pop
4) maintenant ils y a peut-être des conflicts, git dit:
auto-merge blabla
CONFLICT blabla
5) pour chacun des fichiers avec un conflit, l'ouvrir et chercher les conflits,
c'est toujours du type: