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:
Jared Boone 2015-12-24 10:36:26 -08:00
parent 5ace32a1ee
commit b8726b6ecf

View File

@ -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