While fupy has an include guard testing for the existence of ControlAndStatus, some boards may not include all of the components of the ControlAndStatus module. This PR improves the include guard to enable the stub read and write functions for boards lacking one or more components of ControlAndStatus. Prior to this commit, the fupy build would error out with an unresolved symbol for csr read/write functions during linking.
While fupy has an include guard testing for the existence of
ControlAndStatus
, some boards may not include all of the components of theControlAndStatus
module. This PR improves the include guard to enable the stub read and write functions for boards lacking one or more components ofControlAndStatus
. Prior to this commit, the fupy build would error out with an unresolved symbol for csr read/write functions during linking.