some comments and attribution
This commit is contained in:
parent
5688dfb8c5
commit
a7d3ceaffe
@ -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");
|
||||||
|
|
||||||
|
|||||||
@ -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>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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"
|
||||||
|
|
||||||
|
|||||||
@ -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_
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user