Skip to content

Instantly share code, notes, and snippets.

@tako0910
tako0910 / pvd.c
Created September 7, 2025 02:26
CH32V003 PVD test
#include "ch32fun.h"
// Pin definitions
#define PMOS_GATE_PIN PC0
// Battery voltage thresholds
// PLS[2:0] are located at bits 7-5 of the PWR_CTLR register
#define BATTERY_CUTOFF_VOLTAGE ( 0x00 << 5 ) // PLS=000: 2.85V/2.7V (cutoff)
#define BATTERY_RESUME_VOLTAGE ( 0x02 << 5 ) // PLS=010: 3.3V/3.15V (resume)
@tako0910
tako0910 / RaccoonWallet-MyIssueList
Last active June 6, 2018 14:07
僕が把握してる限りのやーつ
今後はこっちで。
https://github.com/SasakiYuki/RaccoonWallet/issues/8
<manifest>
<project path="device/htc/dlxj" name="kbc-developers/android_device_htc_dlxj" revision="cm-14.1"/>
<project path="device/htc/valentewx" name="kbc-developers/android_device_htc_valentewx" revision="cm-13.0"/>
<project path="device/htc/s4-common" name="kbc-developers/android_device_htc_s4-common" revision="cm-13.0"/>
<project path="device/htc/m7wlj" name="kbc-developers/android_device_htc_m7wlj" revision="cm-14.1"/>
<project path="device/htc/m7-common" name="kbc-developers/android_device_htc_m7-common" revision="cm-14.1"/>
<project path="kernel/htc/m7wlj" name="kbc-developers/android_kernel_htc_m7wlj" revision="cm-14.1"/>
<project path="kernel/htc/msm8960" name="kbc-developers/android_kernel_htc_msm8960" revision="cm-14.1"/>
<project path="device/htc/msm8960-common" name="kbc-developers/android_device_htc_msm8960-common" revision="cm-14.1"/>
<project path="vendor/htc" name="kbc-developers/proprietary_vendor_htc" revision="cm-14.1"/>
diff --git a/init/service.cpp b/init/service.cpp
index 76e0bc8..406f47b 100644
--- a/init/service.cpp
+++ b/init/service.cpp
@@ -371,12 +371,14 @@ bool Service::Start() {
scon = ret_scon;
free(ret_scon);
}
+/*
if (rc == 0 && scon == mycon) {
diff --git a/drivers/video/msm/mdss/mdss_fb.c b/drivers/video/msm/mdss/mdss_fb.c
index f72952a..eb5e3b9 100644
--- a/drivers/video/msm/mdss/mdss_fb.c
+++ b/drivers/video/msm/mdss/mdss_fb.c
@@ -281,6 +281,10 @@ static ssize_t mdss_set_rgb(struct device *dev,
struct mdp_pcc_cfg_data pcc_cfg;
u32 copyback = 0;
+ struct fb_info *fbi = dev_get_drvdata(dev);
+ struct msm_fb_data_type *mfd = (struct msm_fb_data_type *)fbi->par;
# Android fstab file.
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
#TODO: Add 'check' as fs_mgr_flags with data partition.
# Currently we dont have e2fsck compiled. So fs check would failed.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
/dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1 wait,verify
/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc,discard,errors=panic wait,check,formattable,forceencrypt=/dev/block/bootdevice/by-name/extra
/*
* This file contains device specific hooks.
* Always enclose hooks to #if MR_DEVICE_HOOKS >= ver
* with corresponding hook version!
*/
#include <stdio.h>
#include <unistd.h>
#include <dirent.h>
#include <ctype.h>
# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := MSM8996
TARGET_NO_BOOTLOADER := true
# Platform
TARGET_BOARD_PLATFORM := msm8996
TARGET_BOARD_PLATFORM_GPU := qcom-adreno530
# Architecture
TARGET_ARCH := arm64
@tako0910
tako0910 / convert.pl
Created March 20, 2016 14:48
HTL21convert_20140525
#!/usr/bin/perl
use strict;
use warnings;
use Archive::Zip;
use File::Basename;
use File::Copy;
use File::Path qw(rmtree);
use Term::ReadKey;
use Time::HiRes;
@tako0910
tako0910 / local_manifest.xml
Last active June 13, 2016 14:39
local_manifest.xml Ver.20160613
<project path="device/htc/dlxj" name="kbc-developers/android_device_htc_dlxj" revision="cm-13.0"/>
<project path="device/htc/valentewx" name="kbc-developers/android_device_htc_valentewx" revision="cm-13.0"/>
<project path="device/htc/s4-common" name="kbc-developers/android_device_htc_s4-common" revision="cm-13.0"/>
<project path="device/htc/m7wlj" name="kbc-developers/android_device_htc_m7wlj" revision="cm-13.0"/>
<project path="device/htc/m7-common" name="kbc-developers/android_device_htc_m7-common" revision="cm-13.0"/>
<project path="kernel/htc/m7wlj" name="kbc-developers/android_kernel_htc_m7wlj" revision="cm-13.0"/>
<project path="kernel/htc/msm8960" name="kbc-developers/android_kernel_htc_msm8960" revision="cm-13.0"/>
<project path="device/htc/msm8960-common" name="kbc-developers/android_device_htc_msm8960-common" revision="cm-13.0"/>
<project path="vendor/htc/" name="tako0910/proprietary_vendor_htc" revision="cm-13.0"/>