Skip to content

Commit 40a2d08

Browse files
authored
2025.1 Release (Washago) (#28)
2 parents 189f9fd + 38b96c7 commit 40a2d08

File tree

9 files changed

+45
-35
lines changed

9 files changed

+45
-35
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: C Coding Style Check
2+
3+
# Runs on pushes to pull request
4+
on: pull_request
5+
6+
jobs:
7+
# Build job
8+
clang-format-style-check:
9+
name: C Coding Style Check (clang-format check)
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v4
14+
with:
15+
submodules: 'true'
16+
- name: Run formatting check
17+
uses: waterloo-rocketry/actions/clang-format-check@main
18+
with:
19+
clang-format-config-path: '.clang-format'
20+
c-source-files: 'include/*.h common/*.c pic18f26k83/*.c unit_tests/*.c'

.github/workflows/clang-format-test.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
# RocketLib
1+
# rocketlib
22

3-
Standardize embedded firmware.
3+
rocketlib is Waterloo Rocketry's common firmware library, it's used on a wide range of MCUs including PIC18 and STM32H7.
44

5+
## Common Library
6+
- clang-format configuration file
7+
- Common Error code definition
8+
- Assert macro
9+
- Low pass filter function
10+
11+
## PIC18F26K83 Drivers
12+
- Timer driver (provides millis function)
13+
- I2C Controller driver (master only)
14+
- SPI Controller driver
15+
- PWM(CCP) driver

doc/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88

99
project = 'Waterloo Rocketry Standard Embedded Firmware'
10-
copyright = '2024, Jason Xu - Waterloo Rocketry'
11-
author = 'Jason Xu - Waterloo Rocketry'
12-
release = '0.99'
10+
copyright = '2024, Waterloo Rocketry'
11+
author = 'Waterloo Rocketry'
12+
release = '2025.1'
1313

1414
# -- General configuration ---------------------------------------------------
1515
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

doc/i2c_driver.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
I2C Master Driver
2-
*****************
1+
I2C Master Driver (Not Working)
2+
*******************************
33

44
The driver only handles when the device is used as an I2C master, because it's unlikely the MCU is going to used as an I2C slave on the rocket. Functions for reading 8 and 16 bit registers are provided.
55

doc/low_pass_filter.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Low Pass Filter
2-
===============
2+
****************************
33

44
Inline Functions
55
================
@@ -106,4 +106,4 @@ Notes
106106
107107
References
108108
==========
109-
- `Low-Pass Filter <https://en.wikipedia.org/wiki/Low-pass_filter>`_
109+
- `Low-Pass Filter <https://en.wikipedia.org/wiki/Low-pass_filter>`_

doc/millis.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Timer Module Documentation
2-
===========================
1+
Timer Module (millis)
2+
=====================
33

44
Overview
55
--------

include/common.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#ifndef ROCKETLIB_COMMON_H
22
#define ROCKETLIB_COMMON_H
33

4+
#define ROCKETLIB_VERSION_MAJOR 2025
5+
#define ROCKETLIB_VERSION_MINOR 1
6+
47
typedef enum {
58
W_SUCCESS = 0,
69
W_FAILURE,

pic18f26k83/timer.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
#include "timer.h"
44

5-
#ifndef _PIC18F26K83_H_
6-
#warning "compiling pic18f26k83 hardware specific file on a different microcontroller, WTF?"
7-
#endif
8-
95
/*
106
* Magic numbers: timer is driven on a 500kHz clock and is 8 bits.
117
* Timer rolls over every 256 counts, or every 512 microseconds.

0 commit comments

Comments
 (0)