File tree Expand file tree Collapse file tree 5 files changed +19
-11
lines changed
Expand file tree Collapse file tree 5 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 1+ #ifndef KLIB_ATSAM3X8E_POWER_HPP
2+ #define KLIB_ATSAM3X8E_POWER_HPP
3+
4+ #include < targets/core/atmel/atsamxx/power.hpp>
5+
6+ namespace klib ::atsam3x8e::io {
7+ using power_control = klib::core::atsamxx::io::power_control;
8+ }
9+
10+ #endif
Original file line number Diff line number Diff line change 33
44#include < cstdint>
55
6- #include < atsam3x8e.hpp>
7-
86#include < targets/core/atmel/atsamxx/watchdog.hpp>
97
108namespace klib ::atsam3x8e::io::periph {
Original file line number Diff line number Diff line change 11#ifndef KLIB_ATSAM4S2B_POWER_HPP
22#define KLIB_ATSAM4S2B_POWER_HPP
33
4- #include < targets/core/atmel/atsam4s /power.hpp>
4+ #include < targets/core/atmel/atsamxx /power.hpp>
55
66namespace klib ::atsam4s2b::io {
7- using power_control = klib::core::atsam4s ::io::power_control;
7+ using power_control = klib::core::atsamxx ::io::power_control;
88}
99
1010#endif
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ namespace klib::core::atsam4s::io {
2727 template <id Ids>
2828 static void enable () {
2929 // disable the write protect
30- power_control::write_protect<false >();
30+ target::io:: power_control::write_protect<false >();
3131
3232 // set the bit to enable the clock on the peripheral
3333 PMC->PMC_SCER = (0x1 << static_cast <uint8_t >(Ids));
3434
3535 // enable the write protect again
36- power_control::write_protect<true >();
36+ target::io:: power_control::write_protect<true >();
3737 }
3838
3939 /* *
@@ -44,13 +44,13 @@ namespace klib::core::atsam4s::io {
4444 template <id Ids>
4545 static void disable () {
4646 // disable the write protect
47- power_control::write_protect<false >();
47+ target::io:: power_control::write_protect<false >();
4848
4949 // set the bit to enable the clock on the peripheral
5050 PMC->PMC_SCDR = (0x1 << static_cast <uint8_t >(Ids));
5151
5252 // enable the write protect again
53- power_control::write_protect<true >();
53+ target::io:: power_control::write_protect<true >();
5454 }
5555
5656 /* *
Original file line number Diff line number Diff line change 1- #ifndef KLIB_ATMEL_ATSAM4S_POWER_CONTROL_HPP
2- #define KLIB_ATMEL_ATSAM4S_POWER_CONTROL_HPP
1+ #ifndef KLIB_ATMEL_ATSAMXX_POWER_CONTROL_HPP
2+ #define KLIB_ATMEL_ATSAMXX_POWER_CONTROL_HPP
33
44#include < klib/klib.hpp>
55
6- namespace klib ::core::atsam4s ::io {
6+ namespace klib ::core::atsamxx ::io {
77 class power_control {
88 public:
99 /* *
You can’t perform that action at this time.
0 commit comments