Commit Graph

7 Commits (649e68963d11b3c8d9803d6ce24b6ae97e54f6bf)

Author SHA1 Message Date
Yuri D'Elia 649e68963d Mock GPIO when building tests
Add some conditional statements in gpio.h so that we can mock the GPIO
registers when building tests.
2021-07-02 19:15:27 +02:00
Yuri D'Elia 300d86ca86 Change the pin definitions in order to be valid types
Remove the constructor from GPIO_pin so that we can use brace
initialization at compile time.

Rewrite the contents of pins.h to construct GPIO_pin types directly by
the use of a simple preprocessor macro.

Makes the code type-check and easier to read/extend.
2021-07-02 19:11:54 +02:00
D.R.racer 9226230fd5 Reformat sources to fit the new namespace formatting rules 2021-05-25 12:24:19 +02:00
Alex Voinea 041d75012d Add all possible ports to the AVR GPIO hal 2021-05-17 17:09:00 +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