diff options
author | Nao Pross <naopross@thearcway.org> | 2018-05-04 00:16:36 +0200 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-05-04 00:16:36 +0200 |
commit | c3767ac0c6bcb9a1aed1e7b666061f829a371e1f (patch) | |
tree | 36d1339fb999c066f424b8f03707e9a996aff02a /hal/pin.hpp | |
parent | Defined Heap size (diff) | |
download | SAMLiquidSmoke-c3767ac0c6bcb9a1aed1e7b666061f829a371e1f.tar.gz SAMLiquidSmoke-c3767ac0c6bcb9a1aed1e7b666061f829a371e1f.zip |
Start own HAL implementation based on MCC's generated files
Other changes:
- Undo conversion of MCC files to C++
- Delete old Led implementation
Diffstat (limited to '')
-rw-r--r-- | hal/pin.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/hal/pin.hpp b/hal/pin.hpp new file mode 100644 index 0000000..9df22d4 --- /dev/null +++ b/hal/pin.hpp @@ -0,0 +1,23 @@ +/* + * File: pin.hpp + * Author: naopross + * + * Created on May 3, 2018, 8:02 PM + */ + +#ifndef PIN_HPP +#define PIN_HPP + +template<typename reg, unsigned bit> +class pin { +public: + pin(reg *r); + virtual ~pin(); + + void set(bool v); + +private: + reg *_register; +}; + +#endif /* PIN_HPP */
\ No newline at end of file |