BalanceDAP icon indicating copy to clipboard operation
BalanceDAP copied to clipboard

【记录】 移植到 gcc 的注意事项。

Open balanceTWK opened this issue 5 years ago • 1 comments

编号 原本 修改后 备注
1 __weak __WEAK
2 __packed struct __PACKED_STRUCT
3 __forceinline __STATIC_FORCEINLINE
4
5
6
7

例如:

  1. __weak BOOL USBD_EndPoint0_Setup_CDC_ReqToIF(void) -> __WEAK BOOL USBD_EndPoint0_Setup_CDC_ReqToIF(void)

  2. typedef __packed struct _CDC_HEADER_DESCRIPTOR { -> typedef __PACKED_STRUCT _CDC_HEADER_DESCRIPTOR {

  3. static __forceinline uint32_t PIN_SWCLK_TCK_IN(void) -> __STATIC_FORCEINLINE uint32_t PIN_SWCLK_TCK_IN(void))

  4. ->

  5. ->

  6. ->

  7. ->

  8. ->

  9. ->

  10. ->

balanceTWK avatar Nov 24 '19 03:11 balanceTWK

ARM 官方参考:

https://github.com/ARMmbed/DAPLink/pull/678

https://github.com/ARMmbed/DAPLink/issues/197#issuecomment-557828486

balanceTWK avatar Nov 24 '19 03:11 balanceTWK