common:
    target:
        - m485sidae
    core:
        - Cortex-M4F
    macros:
        - INTERFACE_M48SSIDAE
        - DAPLINK_HIC_ID=0x97969921  # DAPLINK_HIC_ID_M48SSIDAE
        - OS_CLOCK=192000000
        - DAPLINK_IF
    includes:
        - source/hic_hal/nuvoton/m48ssidae
        - source/hic_hal/nuvoton/m48ssidae/CMSIS/Include
        - source/hic_hal/nuvoton/m48ssidae/Device/Nuvoton/M480/Include
        - source/hic_hal/nuvoton/m48ssidae/StdDriver/inc
    sources:
        hic_hal:
            - source/hic_hal/nuvoton/m48ssidae
            - source/hic_hal/nuvoton/m48ssidae/Device/Nuvoton/M480/Source
            - source/hic_hal/nuvoton/m48ssidae/Device/Nuvoton/M480/Source/ARM
            - source/hic_hal/nuvoton/m48ssidae/StdDriver/src

tool_specific:
    uvision:
        misc:
            ld_flags:
                - --predefine="-I..\..\..\source\hic_hal\nuvoton\m48ssidae"
            c_flags:
                - --no_unaligned_access
            cxx_flags:
                - --no_unaligned_access
            asm_flags:
                - --no_unaligned_access
    make_armcc:
        misc:
            ld_flags:
                - --predefine="-Isource\hic_hal\nuvoton\m48ssidae"
            c_flags:
                - --no_unaligned_access
            cxx_flags:
                - --no_unaligned_access
            asm_flags:
                - --no_unaligned_access
