Instantly share code, notes, and snippets.

View landscape.patch
diff --git a/firmware/export/config/sansafuzeplus.h b/firmware/export/config/sansafuzeplus.h
index 2a57619b06..e637a148a3 100644
--- a/firmware/export/config/sansafuzeplus.h
+++ b/firmware/export/config/sansafuzeplus.h
@@ -99,8 +99,8 @@
#define CONFIG_CODEC SWCODEC
/* LCD dimensions */
-#define LCD_WIDTH 240
-#define LCD_HEIGHT 320
View pcm-alsa-threaded.c
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
*
* Copyright (C) 2010 Thomas Martitz
* Copyright (C) 2018 Amaury Pouly
View mips_lib.S
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
*
* Copyright (C) 2015 by Marcin Bukat
* Copyright (C) 2017 by Amaury Pouly
View run_rbclient.sh
#!/bin/bash
# check if rbclient screen is already running
if screen -S rbclient -X select .
then
#echo "rbclient already running"
exit 0
fi
echo "Starting rbclient..."
screen -dS rbclient -m bash -i -c "cd project/rockbox/myrockbox/; ./runclient.sh" &
View fuzep_rds_problem.txt
PS[0/0]=RE (tmo 0 0)
PS[0/1]=RE (tmo 1014 0)
PS[0/1]=RE (tmo 1014 0)
PS[1/1]=VI (tmo 1014 0)
PS[1/2]=VI (tmo 1022 0)
PS[1/0]=VI (tmo 1022 0)
PS[2/0]=EN (tmo 1022 0)
PS[2/0]=EN (tmo 1022 0)
PS[2/0]=EN (tmo 1022 0)
PS[3/0]=T (tmo 1022 0)
View fuzep_freq_experiment.txt
test_mem figures: read/write/memset/memcpy in MB/s
NOTE: I modified the code so that the DRAM buffer has size 2^16*4 = 256 KiB
AUTO-SLOW ON, unboosted: 44 / 158 / 139 / 33
AUTO-SLOW ON, boosted: 115 / 336 / 328 / 66
AUTO-SLOW OFF, unboosted: 58 / 160 / 139 / 35
AUTO-SLOW OFF, boosted: 140 / 336 / 336 / 74
AUTO-SLOW OFF, HBUS@200Mhz, boosted: 147 / 355 / 345 / 75
View impossible_mips.c
extern int rand(void);
typedef long int32_t;
typedef unsigned long uint32_t;
typedef int32_t mad_fixed64hi_t;
typedef uint32_t mad_fixed64lo_t;
typedef int32_t mad_fixed_t;
int main()
{
View clang_arm.patch
diff --git a/apps/plugins/SUBDIRS b/apps/plugins/SUBDIRS
index c22977f..ed75631a 100644
--- a/apps/plugins/SUBDIRS
+++ b/apps/plugins/SUBDIRS
@@ -31,7 +31,7 @@ fft
#endif
chessbox
-fractals
+//fractals
View dump_sonynwz_info.bat
@echo off
set /p device= "Enter device drive (typically E: or F:) "
echo Device is %device%
set ofile= sonynwz_result.txt
scsitool-nwz-v19 %device% help_us > %ofile%
scsitool-nwz-v19 %device% get_dhp > %ofile%
scsitool-nwz-v19 %device% get_dnk_nvp_multi kas shp sps fmp pcd mid ctr fpi fur fvi ins lyr nvr prk rbt she sku ums ups clv pwd clg fni rnd mac >> %ofile%
echo Result has been written to %ofile%
View asm_thread_mips32.diff
diff --git a/firmware/asm/mips/thread-mips32.c b/firmware/asm/mips/thread-mips32.c
index e754df7e29..664375d4e5 100644
--- a/firmware/asm/mips/thread-mips32.c
+++ b/firmware/asm/mips/thread-mips32.c
@@ -26,20 +26,20 @@
*---------------------------------------------------------------------------
*/
-void start_thread(void); /* Provide C access to ASM label */
-static void USED_ATTR _start_thread(void)