Index: firmware/App/Drivers/PAL.c =================================================================== diff -u -r090cfb22a7c0b4738299c3fb411ca77aaba8d968 -r5d682ef4b973ca85e67ac00cc2610e2f6c378b0c --- firmware/App/Drivers/PAL.c (.../PAL.c) (revision 090cfb22a7c0b4738299c3fb411ca77aaba8d968) +++ firmware/App/Drivers/PAL.c (.../PAL.c) (revision 5d682ef4b973ca85e67ac00cc2610e2f6c378b0c) @@ -7,13 +7,14 @@ * * @file PAL.c * -* @author (last) Sean +* @author (last) Vinayakam Mani * @date (last) 07-Aug-2024 * -* @author (original) Sean +* @author (original) Vinayakam Mani * @date (original) 07-Aug-2024 * ***************************************************************************/ + #include "mibspi.h" #include "reg_system.h" #include "reg_crc.h" @@ -26,11 +27,11 @@ */ // ********** private definitions ********** + #define SAFETY_SPI1_PORT_MASK 0x00000010 ///< Safety shutdown GPIO port mask (CS[4] - re-purposed as output GPIO). #define SET_SAFETY_SHUTDOWN() {mibspiREG1->PC3 |= SAFETY_SPI1_PORT_MASK;} ///< Set safety shutdown GPIO macro. #define CLR_SAFETY_SHUTDOWN() {mibspiREG1->PC3 &= ~SAFETY_SPI1_PORT_MASK;} ///< Clear safety shutdown GPIO macro. - /*********************************************************************//** * @brief * The setSystemREG1_SYSECR function sets the SYSECR register to a given value.