Skip to content

ButterSus/CANSAT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CANSAT

February 2022 - July 2022

first AVR project. (feat. ThePetrovich & bear1ake)

Features

  • Project structure
  • .cpp structure

Color schematic

  • VCC
    • red
  • GND
    • black
  • UART
    • yellow
  • SPI
    • green
  • I2C
    • blue
  • 1-WIRE
    • brown

Project structure

  • main.c calls setup then update in loop.
  • RTOS files for better memory allocation and so more.
    • multithread multithread support.
  • Functions files: setup, update.
    • functions.h include setup and update.
    • setup.cpp setup.
    • update.cpp update.
  • Drivers (sensors) files for sensors' drivers.
    • ADXL345 & ADXL345.h ADXL345 support.
    • BMP280 & BMP280.h ADXL345 support.
    • DS18B20 & DS18B20.h DS18B20 support.
    • L3G4200D & L3G4200D.h L3G4200D support.
    • MMC5883MA & MMC5883MA.h MMC5883MA support.
  • Drivers (protocols) files for protocols' drivers.
    • I2C & I2C.h I2C support.
    • SPI & SPI.h SPI support.
    • UART & UART.h UART support.
    • WIRE1 & WIRE1.h 1-WIRE support.
  • Drivers (other) files for another tasks.
    • PORTS.cpp & PORTS.h library for linking avr/io.h ports.

.cpp structure

  • commentaries:

    • - author
          "ButterSus"
      - date
          "May 2022"
      - name
          "ADXL345"
  • including libraries:

    • - including standard libraries (in alphabetical order)
          #include <stdio.h>
      - including drivers (in alphabetical order)
          #include "SPI.h"
      - including another files (in alphabetical order)
          #include "settings.h"
  • defines and macros:

    • ISR(USART0_RX_vect){
          printf("%c",UDR0);
      }
  • global variables and constants:

    • jmp_buf MMC5883MA_jmpbuf;
  • and other things..:

    • int main(){
          setup();
          while(run){
              update();
          }
      }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published