Then, on the platforms where we provide a flash, we also define one-argument begin() function; it just calls the two-arg begin() with the right CS pin.
On platforms where the SPI pin is not defined, we can still provide the two-arg begin(), but leave the one-arg begin() undefined.
The header file has a default on the chip select pin:
https://github.com/mcci-catena/Catena-Arduino-Platform/blob/68563243a50a74b7265caa337e23d55d854ba06d/src/Catena_Mx25v8035f.h#L137
But this only makes sense on Catena 46xx platforms.
The right thing to do is not to have a default but have two overloads.
Then, on the platforms where we provide a flash, we also define one-argument
begin()
function; it just calls the two-argbegin()
with the right CS pin.On platforms where the SPI pin is not defined, we can still provide the two-arg
begin()
, but leave the one-argbegin()
undefined.