Commit Graph

847 Commits (063130726a861fe9df0fd92a32a20b0129851074)

Author SHA1 Message Date
DRracer 2c6ab48196
Merge pull request #13 from DRracer/leds
Add interface module for driving LEDs
2021-05-27 13:55:17 +02:00
D.R.racer bd335ec30d Unit test for LEDs interface + fixes 2021-05-26 11:39:24 +02:00
D.R.racer 004db59da0 Add shift register interface and improve LED integration with it 2021-05-26 09:29:32 +02:00
D.R.racer c377674aee Prepare unit tests for LEDs 2021-05-25 12:33:50 +02:00
D.R.racer 9226230fd5 Reformat sources to fit the new namespace formatting rules 2021-05-25 12:24:19 +02:00
D.R.racer acc33bfacb Do not indent namespaces 2021-05-25 12:23:29 +02:00
D.R.racer 6cb072ce79 Rebase onto main + clean up the code a bit 2021-05-25 11:55:28 +02:00
D.R.racer fce2195558 Interface module for driving LEDs
+ start shaping up main.cpp
+ make the usage of namespaces and class names more consistent throughout the whole project
+ refactor related unit tests accordingly
2021-05-25 11:00:30 +02:00
D.R.racer 7611b98830 Add more unit tests and optimize (saved 1 byte per button on the AVR) 2021-05-25 10:02:02 +02:00
D.R.racer 7ece1fb28d Add missing buttons.h 2021-05-25 10:02:02 +02:00
D.R.racer ba8eacfe33 Buttons module implementation
A module representing a model of the 3 buttons
Includes a unit test project (empty at this stage)
2021-05-25 10:02:02 +02:00
Alex Voinea 47528c3bca USART hal prototype 2021-05-24 12:32:10 +02:00
DRracer fc6fc5b2ca
Merge pull request #10 from DRracer/protocol-codec
Protocol implementation
2021-05-19 08:20:18 +02:00
D.R.racer 6ebb281eda Update CMakeFiles.txt and temporarily fix compilation of unit tests 2021-05-18 08:58:23 +02:00
D.R.racer fe0ac4f9f9 More unit tests for decoding of response messages
+ related changes in code
2021-05-18 08:18:11 +02:00
D.R.racer 30fbf6d870 Unit tests for decoding requests and responses
+errors on requests
2021-05-18 08:18:11 +02:00
D.R.racer 0633dea881 Protocol implementation
+ unit tests for encoding of messages

API still subject to minor changes
2021-05-18 08:18:11 +02:00
DRracer c51067f197
Merge pull request #11 from prusa3d/leptun/hal/spi
SPI hal
2021-05-18 07:53:34 +02:00
Alex Voinea c378e71018 SPI example 2021-05-17 19:11:35 +03:00
Alex Voinea 15c56f2a1c Add F_CPU 2021-05-17 19:09:49 +03:00
Alex Voinea 13ee425352 Configurable SPI CPHA and CPOL 2021-05-17 17:45:31 +03:00
Alex Voinea 57abb7ecc4 Example TMC2130 pinout 2021-05-17 17:10:02 +03:00
Alex Voinea 041d75012d Add all possible ports to the AVR GPIO hal 2021-05-17 17:09:00 +03:00
Alex Voinea 2cf1b8b523 __attribute__((always_inline)) comment 2021-05-17 12:08:20 +03:00
Alex Voinea d2d275da25 Explain why we set SS as output 2021-05-17 09:11:24 +03:00
Alex Voinea db98d0cf7b Add SPI TxRx function 2021-05-17 09:11:11 +03:00
Alex Voinea dc9528b4ea SPI hal: Winning combo 2021-05-17 09:01:22 +03:00
Alex Voinea ac4fdd30ad spi hal checkpoint 2021-05-17 08:42:21 +03:00
Alex Voinea 47400f16c6
GPIO hal prototype (#9)
* gpio hal prototype
* Example gpio hal usage
* Use uint8_t for GPIO enums
2021-05-14 15:42:41 +02:00
Alex Voinea 1887576429 Fix formatting with cmake-format 2021-05-13 17:38:21 +02:00
Alex Voinea 79d9fcbd5f Disassemble elf file after build 2021-05-13 17:38:21 +02:00
Alex Voinea 12527d0e53 add cpu hal to build 2021-05-13 17:38:21 +02:00
Alex Voinea 25ca5a19a3 Switch to the correct AVR MCU 2021-05-13 17:38:21 +02:00
D.R.racer 7eb346a54d Add first unit test
+proof of concept of Catch2 builds working in our repo
2021-05-13 17:35:08 +02:00
Alan Dragomirecký 23a8c9081a
git subrepo clone --branch=v2.x git@github.com:catchorg/Catch2.git lib/Catch2
subrepo:
  subdir:   "lib/Catch2"
  merged:   "5c88067b"
upstream:
  origin:   "git@github.com:catchorg/Catch2.git"
  branch:   "v2.x"
  commit:   "5c88067b"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2021-05-12 10:30:49 +02:00
D.R.racer 57bc5a802b Add cpu.h/cpp, avr subdir
The idea is to have a separate implementation of the HAL interface for each CPU. So far we only have the AVR.
2021-04-19 07:03:47 +02:00
D.R.racer 28130a93bb Update description of the build process 2021-04-19 07:03:47 +02:00
Alan Dragomirecký 174a9619a3 Fix clang format settings 2021-04-19 07:03:47 +02:00
Alan Dragomirecký 92b8b98c38 build.py: Switch to AnyAvrGcc.cmake 2021-04-19 07:03:47 +02:00
D.R.racer ec44ef5f23 Prepare main.cpp 2021-04-19 07:03:47 +02:00
D.R.racer e77ac1ecd3 Add basic building instructions 2021-04-19 07:03:47 +02:00
D.R.racer 9e489e4a57 Set correct MCU ID + output HEX files 2021-04-19 07:03:47 +02:00
D.R.racer f848c8d550 Create basic FW structure
- Design API's based on our discussion and block diagrams
- Set doxygen rules/preferred syntax
2021-04-19 07:03:47 +02:00
Alan Dragomirecký ac1dd05097 Initial support for AnyAvrGcc toolchain 2021-04-19 07:03:47 +02:00
D.R.racer 257d0ec340 Prepare parts of the build system
extracted and slightly modified from Buddy-FW, still doesn't work
2021-04-19 07:03:47 +02:00
vintagepc 3f7e32f6cf Create stale.yml 2021-04-15 13:14:16 +02:00
D.R.racer d3500a7e16 first commit 2021-04-12 07:08:45 +02:00