mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Un-bitfield PinConfig, GCC 5 didn't like it.
And GCC 4.9 was very touchy about it. Attempts to fix by other means broke MAX2837 register readback (but not writing?). It suggests there might be a deeper issue -- setup/hold timing?
This commit is contained in:
parent
5ace32a1ee
commit
b8726b6ecf
@ -28,12 +28,12 @@
|
|||||||
#include "hal.h"
|
#include "hal.h"
|
||||||
|
|
||||||
struct PinConfig {
|
struct PinConfig {
|
||||||
const uint32_t mode : 3;
|
const uint32_t mode;
|
||||||
const uint32_t pd : 1;
|
const uint32_t pd;
|
||||||
const uint32_t pu : 1;
|
const uint32_t pu;
|
||||||
const uint32_t fast : 1;
|
const uint32_t fast;
|
||||||
const uint32_t input : 1;
|
const uint32_t input;
|
||||||
const uint32_t ifilt : 1;
|
const uint32_t ifilt;
|
||||||
|
|
||||||
constexpr operator uint16_t() {
|
constexpr operator uint16_t() {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user