Re: [libopencm3-devel] scb.h

2013-07-17 Thread Karl P
ouch. I think SCB_SHPR(shpr_id) should be kept as is, but the comments are not helpful, and yes, the current definitions of SCB_SHPR1..3 are really the same as SCB_SHPR(1) and SCB_SHPR(3) which is not really what you'd expect. Further, I don't think the definitions of SCB_SHPR1_PRI_ are he

[libopencm3-devel] scb.h

2013-07-17 Thread Donald E Haselwood
I think there is a mistake in scb.h-- /* SHP: System Handler Priority Registers */ /* Note: 12 8bit registers */ #define SCB_SHPR(shpr_id) MMIO8(SCB_BASE + 0x18 + shpr_id) #define SCB_SHPR1 MMIO8(SCB_BASE + 0x18 + 1) #define SCB_SHPR2