Merge pull request #183 from gsmcmullin/volatile_crtlstat

adiv5_dp_init: make ctrlstat volatile to supress warning.
This commit is contained in:
Gareth McMullin 2017-01-09 09:30:03 +13:00 committed by GitHub
commit ad552dbe3b
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,7 @@ ADIv5_AP_t *adiv5_new_ap(ADIv5_DP_t *dp, uint8_t apsel)
void adiv5_dp_init(ADIv5_DP_t *dp)
{
uint32_t ctrlstat = 0;
volatile uint32_t ctrlstat = 0;
adiv5_dp_ref(dp);