xdebug

next generation of mdebug (work in progress)
git clone http://frotz.net/git/xdebug.git
Log | Files | Refs | README

cc13xx-romapi.h (1059B)


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