some comments and attribution

This commit is contained in:
Alessandro Mauri 2026-05-16 17:30:18 +02:00
parent 5688dfb8c5
commit a7d3ceaffe
4 changed files with 20 additions and 7 deletions

View File

@ -4,6 +4,10 @@
#include <stdint.h> #include <stdint.h>
#include <assert.h> #include <assert.h>
/*
* Minimal Fixed-Point math library implementation
*/
// This library depends on sign extension // This library depends on sign extension
static_assert(-4 >> 1 == -2, ">> doesn't do sign extension"); static_assert(-4 >> 1 == -2, ">> doesn't do sign extension");

View File

@ -1,10 +1,10 @@
#ifndef _LIB_I2C_H
#define _LIB_I2C_H
// MIT License // MIT License
// Copyright (c) 2025 UniTheCat // Copyright (c) 2025 UniTheCat
// Tested with Ch32X03x and CH32V30x // Tested with Ch32X03x and CH32V30x
#ifndef _LIB_I2C_H
#define _LIB_I2C_H
#include <ch32fun.h> #include <ch32fun.h>

View File

@ -1,3 +1,11 @@
/*
* Register functions for the SC7A20 accellerometer
* Original Author:
* Ralim
* Created on: 18 Sep. 2020
* https://github.com/Ralim/IronOS.git
*/
#include <ch32fun.h> #include <ch32fun.h>
#include "lib_i2c.h" #include "lib_i2c.h"

View File

@ -1,8 +1,9 @@
/* /*
* SC7A20_defines.h * Defines for the SC7A20 accellerometer
* * Original Author:
* Created on: 18 Sep. 2020 * Ralim
* Author: Ralim * Created on: 18 Sep. 2020
* https://github.com/Ralim/IronOS.git
*/ */
#ifndef _SC7A20_H_ #ifndef _SC7A20_H_