Skip to content

Instantly share code, notes, and snippets.

View Thalhammer's full-sized avatar

Dominik Thalhammer Thalhammer

View GitHub Profile
@Thalhammer
Thalhammer / keybase.md
Created September 29, 2021 12:34
keybase.md

Keybase proof

I hereby claim:

  • I am thalhammer on github.
  • I am thalhammer (https://keybase.io/thalhammer) on keybase.
  • I have a public key ASDFoGDf6nl8Wid32H5Af17pz9uaZSDr_3dNcEXlycXvUQo

To claim this, I am signing this object:

@Thalhammer
Thalhammer / mmu.S
Created July 13, 2019 19:30
RPI mmu
.global mmu_init
mmu_init:
mov r1,#0
// invalidate caches
mcr p15,0,r1,c7,c7,0
// invalidate TLB entries
mcr p15,0,r1,c8,c7,0
// data synchronisation barrier
mcr p15,0,r1,c7,c10,4
@Thalhammer
Thalhammer / main.c
Created July 10, 2019 13:52
MQTTS Simcom
#include <stdlib.h>
#include <stdbool.h>
#include "qapi/qapi_types.h"
#include "qapi/qapi.h"
#include "qapi/qapi_status.h"
#include "qapi/qapi_tlmm.h"
#include "qapi/qapi_timer.h"
#include "qapi/qapi_socket.h"
#include "qapi/qapi_ns_utils.h"
@Thalhammer
Thalhammer / main.c
Last active November 6, 2018 14:26
Sample Sleep
#include <stdlib.h>
#include "qapi/qapi_types.h"
#include "qapi/qapi.h"
#include "qapi/qapi_status.h"
#include "qapi_timer.h"
#include "util/debug.h"
#include "util/trace.h"
#include "tx_api.h"
@Thalhammer
Thalhammer / output.txt
Created September 8, 2018 11:45
ODR Violation error
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
test.h:8:3: warning: type ‘struct test2_t’ violates one definition rule [-Wodr]
} test2_t;
^
test.h:8:3: note: a different type is defined in another translation unit
} test2_t;