This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0C1104: MCPM0 SDK missing BOR_THRESHOLD_LEVEL_* definitions

Part Number: MSPM0C1104
Other Parts Discussed in Thread: SYSCONFIG,

I wanted to use the BOR interrupt on the MSPM0C1104 MCU for detecting a low battery level (lithium is pretty much empty below 3V) so I investigated setting the BOR to level 3. 
The device has 4 diferent levels that can be set based on the datasheet, however the dl_sysctl_mspm0c110x.h file with BOR abstraction definitions levels is missing levels 1/2/3.

The sysconfig tool does not allow the BOR level to be adjusted.

To allow me to adjust the BOR level I added 3 lines to the file dl_sysctl_mspm0c110x.h starting at line 493:

    DL_SYSCTL_BOR_THRESHOLD_LEVEL_1 = SYSCTL_BORTHRESHOLD_LEVEL_BORLEVEL1,
    DL_SYSCTL_BOR_THRESHOLD_LEVEL_2 = SYSCTL_BORTHRESHOLD_LEVEL_BORLEVEL2,
    DL_SYSCTL_BOR_THRESHOLD_LEVEL_3 = SYSCTL_BORTHRESHOLD_LEVEL_BORLEVEL3,
 
This allowed me to call the following in my main.c just after SYSCFG_DL_init();:
    DL_SYSCTL_setBORThreshold(DL_SYSCTL_BOR_THRESHOLD_LEVEL_3);
    DL_SYSCTL_activateBORThreshold();
 
I now have everything working as I wanted, device triggers an interrupt and I can trigger my mcu to go to sleep.
It seems to me that the missing lines in dl_sysctl_mspm0c110x.h is an oversight, perhaps it is related to the sysconfig having the BOR level options greyed out?

For future reference this is my interrupt handler code:
// NMI (Non-Maskable Interrupt) Handler for BOR
// BOR interrupts are NMIs and don't go through NVIC
void NMI_Handler(void) {
    switch (DL_SYSCTL_getPendingNonMaskableInterrupt()) {
        case DL_SYSCTL_NMI_IIDX_BORLVL:
            // BOR threshold triggered - battery voltage dropped below 3V
            // Hardware automatically switches BOR threshold back to BOR0 when this occurs
            // The BOR3 threshold will be restored when device wakes from sleep
            // Request sleep to conserve remaining battery
            gSleepRequested = 1;
            break;
        default:
            break;
    }
}

CCS Version: 20.3.0.14__1.9.0
MSPM0 Feature Support version: 1.16.0