mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-10 23:50:21 -04:00
Formatted code (#1007)
* Updated style * Updated files * fixed new line * Updated spacing * File fix WIP * Updated to clang 13 * updated comment style * Removed old comment code
This commit is contained in:
parent
7aca7ce74d
commit
033c4e9a5b
599 changed files with 70746 additions and 66896 deletions
|
@ -31,36 +31,36 @@
|
|||
namespace baseband {
|
||||
|
||||
class SGPIO {
|
||||
public:
|
||||
void init();
|
||||
public:
|
||||
void init();
|
||||
|
||||
void configure(const Direction direction);
|
||||
void configure(const Direction direction);
|
||||
|
||||
void streaming_enable() {
|
||||
/* TODO: Any reason not to control from general GPIO facility? */
|
||||
LPC_SGPIO->GPIO_OUTREG &= ~(1U << 10);
|
||||
}
|
||||
void streaming_enable() {
|
||||
/* TODO: Any reason not to control from general GPIO facility? */
|
||||
LPC_SGPIO->GPIO_OUTREG &= ~(1U << 10);
|
||||
}
|
||||
|
||||
void streaming_disable() {
|
||||
/* TODO: Any reason not to control from general GPIO facility? */
|
||||
LPC_SGPIO->GPIO_OUTREG |= (1U << 10);
|
||||
}
|
||||
void streaming_disable() {
|
||||
/* TODO: Any reason not to control from general GPIO facility? */
|
||||
LPC_SGPIO->GPIO_OUTREG |= (1U << 10);
|
||||
}
|
||||
|
||||
bool streaming_is_enabled() const {
|
||||
/* TODO: Any reason not to control from general GPIO facility? */
|
||||
return (LPC_SGPIO->GPIO_OUTREG >> 10) & 1;
|
||||
}
|
||||
bool streaming_is_enabled() const {
|
||||
/* TODO: Any reason not to control from general GPIO facility? */
|
||||
return (LPC_SGPIO->GPIO_OUTREG >> 10) & 1;
|
||||
}
|
||||
|
||||
private:
|
||||
void disable_all_slice_counters() {
|
||||
set_slice_counter_enables(0);
|
||||
}
|
||||
private:
|
||||
void disable_all_slice_counters() {
|
||||
set_slice_counter_enables(0);
|
||||
}
|
||||
|
||||
void set_slice_counter_enables(const uint16_t enable_mask) {
|
||||
LPC_SGPIO->CTRL_ENABLE = enable_mask;
|
||||
}
|
||||
void set_slice_counter_enables(const uint16_t enable_mask) {
|
||||
LPC_SGPIO->CTRL_ENABLE = enable_mask;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace baseband
|
||||
|
||||
#endif/*__BASEBAND_GPIO_H__*/
|
||||
#endif /*__BASEBAND_GPIO_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue