This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bram@ubuntu64:~/apps/BloxTrace$ /usr/bin/perf record --freq 2000 --call-graph dwarf ./bench segment | |
Loaded 455 primitives. | |
Testing ray against 455 primitives. | |
[ perf record: Woken up 289 times to write data ] | |
[nvidia] with build id d9b6653c0d39e1618ccd50318de6da8df74820a1 not found, continuing without symbols | |
[ perf record: Captured and wrote 72.134 MB perf.data (8979 samples) ] | |
bram@ubuntu64:~/apps/BloxTrace$ /usr/bin/perf evlist -v | |
cycles:pp: size: 112, { sample_period, sample_freq }: 2000, sample_type: IP|TID|TIME|CALLCHAIN|PERIOD|REGS_USER|STACK_USER, disabled: 1, inherit: 1, mmap: 1, comm: 1, freq: 1, enable_on_exec: 1, task: 1, precise_ip: 2, sample_id_all: 1, exclude_guest: 1, exclude_callchain_user: 1, mmap2: 1, comm_exec: 1, sample_regs_user: 0xff0fff, sample_stack_user: 8192 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static const char* sl_error_str( SLresult result ) | |
{ | |
switch( result ) | |
{ | |
case SL_RESULT_SUCCESS: return "success"; | |
case SL_RESULT_PRECONDITIONS_VIOLATED: return "preconditions violated"; | |
case SL_RESULT_PARAMETER_INVALID: return "parameter invalid"; | |
case SL_RESULT_MEMORY_FAILURE: return "memory failure"; | |
case SL_RESULT_RESOURCE_ERROR: return "resource error"; | |
case SL_RESULT_RESOURCE_LOST: return "resource lost"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import os | |
sizes = [ | |
('xxxhdpi', 192), | |
('xxhdpi', 144), | |
('xhdpi', 96), | |
('hdpi', 72), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Building BX | |
* Comment out targets from Makefile, except: linux-gcc gmake | |
* $ make | |
* $ ( cd .build/projects/gmake-linux/ ; make config=debug64 ) | |
Buidling BIMG | |
* $ ( cd bimg ; make linux-debug64 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static float halton23[ 6000 ][ 2 ] = { | |
-1.000000,-1.000000, | |
0.000000,-0.333333, | |
-0.500000,0.333333, | |
0.500000,-0.777778, | |
-0.750000,-0.111111, | |
0.250000,0.555556, | |
-0.250000,-0.555556, | |
0.750000,0.111111, | |
-0.875000,0.777778, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# | |
# set_ticker_portfolio.py | |
# | |
# (c)2022 Game Studio Abraham Stolk Inc. | |
# | |
# This utility sets the ticker symbols that the TurboLEDz stock ticker will retrieve. | |
# Default set that the device ships with is comprised of the corporations in the DOW30 index: | |
# | |
# Only works with: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <assert.h> | |
#include <stdio.h> | |
#include <inttypes.h> | |
int main(int argc, char* argv[]) | |
{ | |
FILE* f = stdin; | |
if (argc!=1 && argc!=2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/fb.h> | |
#include <sys/ioctl.h> | |
#include <sys/mman.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <inttypes.h> | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stolk@workpc:~/src/bl808_linux$ bflb-mcu-tool --chipname=bl808 --port=/dev/ttyACM2 --baudrate=2000000 --firmware=out/low_load_bl808_m0.bin | |
[16:03:52.056] - | |
[16:03:52.056] - ================================================== | |
[16:03:52.056] - Chip name is bl808 | |
[16:03:52.056] - Serial port is /dev/ttyACM2 | |
[16:03:52.056] - Baudrate is 2000000 | |
[16:03:52.056] - Firmware is out/low_load_bl808_m0.bin | |
[16:03:52.056] - Device Tree is None | |
[16:03:52.056] - ================================================== | |
[16:03:52.056] - Default xtal is 40M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
# Copyright (C) 2021- BOUFFALO LAB (NANJING) CO., LTD. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# |
OlderNewer