mdebug

cortex m series debugger
git clone http://frotz.net/git/mdebug.git
Log | Files | Refs | README | LICENSE

cc13xx-romapi.h (974B)


      1 
      2 #define ROM_API_TABLE           ((u32*) 0x10000180)
      3 #define ROM_API_FLASH_TABLE     ((u32*) (ROM_API_TABLE[10]))
      4 
      5 #define ROM_FlashPowerModeGet \
      6     ((u32 (*)(void)) \
      7     ROM_API_FLASH_TABLE[1])
      8 
      9 #define ROM_FlashProtectionSet \
     10     ((void (*)(u32 ui32SectorAddress, u32 ui32ProtectMode)) \
     11     ROM_API_FLASH_TABLE[2])
     12 
     13 #define ROM_FlashProtectionGet \
     14     ((u32 (*)(u32 ui32SectorAddress)) \
     15     ROM_API_FLASH_TABLE[3])
     16 
     17 #define ROM_FlashProtectionSave \
     18     ((u32 (*)(u32 ui32SectorAddress)) \
     19     ROM_API_FLASH_TABLE[4])
     20 
     21 #define ROM_FlashSectorErase \
     22     ((u32 (*)(u32 ui32SectorAddress)) \
     23     ROM_API_FLASH_TABLE[5])
     24 
     25 #define ROM_FlashProgram \
     26     ((u32 (*)(const void *pui8DataBuffer, u32 ui32Address, u32 ui32Count)) \
     27     ROM_API_FLASH_TABLE[6])
     28 
     29 #define ROM_FlashEfuseReadRow \
     30     ((u32 (*)(u32* pui32EfuseData, u32 ui32RowAddress)) \
     31     ROM_API_FLASH_TABLE[8])
     32 
     33 #define ROM_FlashDisableSectorsForWrite \
     34     ((void (*)(void)) \
     35     ROM_API_FLASH_TABLE[9])