| 1 | #ifdef __AVR__ |
|---|
| 2 | ;-----------------------------------------------------------------------------; |
|---|
| 3 | ; Fixed-point FFT routines for megaAVRs (C)ChaN, 2005 |
|---|
| 4 | ;-----------------------------------------------------------------------------; |
|---|
| 5 | ; * This program is opened under license policy of following trems. |
|---|
| 6 | ; |
|---|
| 7 | ; Copyright (C) 2005, ChaN, all right reserved. |
|---|
| 8 | ; |
|---|
| 9 | ; * This program is a free software and there is NO WARRANTY. |
|---|
| 10 | ; * No restriction on use. You can use, modify and redistribute it for |
|---|
| 11 | ; personal, non-profit or commercial use UNDER YOUR RESPONSIBILITY. |
|---|
| 12 | ; * Redistributions of source code must retain the above copyright notice. |
|---|
| 13 | ; |
|---|
| 14 | ;-----------------------------------------------------------------------------; |
|---|
| 15 | ; |
|---|
| 16 | ; void fft_input (const int16_t *array_src, complex_t *array_bfly); |
|---|
| 17 | ; void fft_execute (complex_t *array_bfly); |
|---|
| 18 | ; void fft_output (complex_t *array_bfly, uint16_t *array_dst); |
|---|
| 19 | ; |
|---|
| 20 | ; <array_src>: Wave form to be processed. |
|---|
| 21 | ; <array_bfly>: Complex array for butterfly operations. |
|---|
| 22 | ; <array_dst>: Spectrum output buffer. |
|---|
| 23 | ; |
|---|
| 24 | ; These functions must be called in sequence to do a DFT in FFT algorithm. |
|---|
| 25 | ; fft_input() fills the complex array with a wave form to prepare butterfly |
|---|
| 26 | ; operations. A hamming window is applied at the same time. |
|---|
| 27 | ; fft_execute() executes the butterfly operations. |
|---|
| 28 | ; fft_output() re-orders the results, converts the complex spectrum into |
|---|
| 29 | ; scalar spectrum and output it in linear scale. |
|---|
| 30 | ; |
|---|
| 31 | ;----------------------------------------------------------------------------; |
|---|
| 32 | ; THIS CODE HAS BEEN MODIFIED FROM ITS ORIGINAL FORM - it is pared down |
|---|
| 33 | ; to handle 64 points only, for the Circuit Playground microphone library. |
|---|
| 34 | ; Original FFFT code can be found on GitHub. |
|---|
| 35 | ;----------------------------------------------------------------------------; |
|---|
| 36 | |
|---|
| 37 | .list |
|---|
| 38 | |
|---|
| 39 | #define FFT_N 64 |
|---|
| 40 | #define FFT_B 6 |
|---|
| 41 | |
|---|
| 42 | #define T0L r0 |
|---|
| 43 | #define T0H r1 |
|---|
| 44 | #define T2L r2 |
|---|
| 45 | #define T2H r3 |
|---|
| 46 | #define T4L r4 |
|---|
| 47 | #define T4H r5 |
|---|
| 48 | #define T6L r6 |
|---|
| 49 | #define T6H r7 |
|---|
| 50 | #define T8L r8 |
|---|
| 51 | #define T8H r9 |
|---|
| 52 | #define T10L r10 |
|---|
| 53 | #define T10H r11 |
|---|
| 54 | #define T12L r12 |
|---|
| 55 | #define T12H r13 |
|---|
| 56 | #define T14L r14 |
|---|
| 57 | #define T14H r15 |
|---|
| 58 | #define AL r16 |
|---|
| 59 | #define AH r17 |
|---|
| 60 | #define BL r18 |
|---|
| 61 | #define BH r19 |
|---|
| 62 | #define CL r20 |
|---|
| 63 | #define CH r21 |
|---|
| 64 | #define DL r22 |
|---|
| 65 | #define DH r23 |
|---|
| 66 | #define EL r24 |
|---|
| 67 | #define EH r25 |
|---|
| 68 | #define XL r26 |
|---|
| 69 | #define XH r27 |
|---|
| 70 | #define YL r28 |
|---|
| 71 | #define YH r29 |
|---|
| 72 | #define ZL r30 |
|---|
| 73 | #define ZH r31 |
|---|
| 74 | |
|---|
| 75 | .macro ldiw dh,dl, abs |
|---|
| 76 | ldi \dl, lo8(\abs) |
|---|
| 77 | ldi \dh, hi8(\abs) |
|---|
| 78 | .endm |
|---|
| 79 | |
|---|
| 80 | .macro subiw dh,dl, abs |
|---|
| 81 | subi \dl, lo8(\abs) |
|---|
| 82 | sbci \dh, hi8(\abs) |
|---|
| 83 | .endm |
|---|
| 84 | |
|---|
| 85 | .macro addw dh,dl, sh,sl |
|---|
| 86 | add \dl, \sl |
|---|
| 87 | adc \dh, \sh |
|---|
| 88 | .endm |
|---|
| 89 | |
|---|
| 90 | .macro addd d3,d2,d1,d0, s3,s2,s1,s0 |
|---|
| 91 | add \d0, \s0 |
|---|
| 92 | adc \d1, \s1 |
|---|
| 93 | adc \d2, \s2 |
|---|
| 94 | adc \d3, \s3 |
|---|
| 95 | .endm |
|---|
| 96 | |
|---|
| 97 | .macro subw dh,dl, sh,sl |
|---|
| 98 | sub \dl, \sl |
|---|
| 99 | sbc \dh, \sh |
|---|
| 100 | .endm |
|---|
| 101 | |
|---|
| 102 | .macro subd d3,d2,d1,d0, s3,s2,s1,s0 |
|---|
| 103 | sub \d0, \s0 |
|---|
| 104 | sbc \d1, \s1 |
|---|
| 105 | sbc \d2, \s2 |
|---|
| 106 | sbc \d3, \s3 |
|---|
| 107 | .endm |
|---|
| 108 | |
|---|
| 109 | .macro lddw dh,dl, src |
|---|
| 110 | ldd \dl, \src |
|---|
| 111 | ldd \dh, \src+1 |
|---|
| 112 | .endm |
|---|
| 113 | |
|---|
| 114 | .macro ldw dh,dl, src |
|---|
| 115 | ld \dl, \src |
|---|
| 116 | ld \dh, \src |
|---|
| 117 | .endm |
|---|
| 118 | |
|---|
| 119 | .macro stw dst, sh,sl |
|---|
| 120 | st \dst, \sl |
|---|
| 121 | st \dst, \sh |
|---|
| 122 | .endm |
|---|
| 123 | |
|---|
| 124 | .macro clrw dh, dl |
|---|
| 125 | clr \dh |
|---|
| 126 | clr \dl |
|---|
| 127 | .endm |
|---|
| 128 | |
|---|
| 129 | .macro lsrw dh, dl |
|---|
| 130 | lsr \dh |
|---|
| 131 | ror \dl |
|---|
| 132 | .endm |
|---|
| 133 | |
|---|
| 134 | .macro asrw dh, dl |
|---|
| 135 | asr \dh |
|---|
| 136 | ror \dl |
|---|
| 137 | .endm |
|---|
| 138 | |
|---|
| 139 | .macro lslw dh, dl |
|---|
| 140 | lsl \dl |
|---|
| 141 | rol \dh |
|---|
| 142 | .endm |
|---|
| 143 | |
|---|
| 144 | .macro pushw dh, dl |
|---|
| 145 | push \dh |
|---|
| 146 | push \dl |
|---|
| 147 | .endm |
|---|
| 148 | |
|---|
| 149 | .macro popw dh, dl |
|---|
| 150 | pop \dl |
|---|
| 151 | pop \dh |
|---|
| 152 | .endm |
|---|
| 153 | |
|---|
| 154 | .macro lpmw dh,dl, src |
|---|
| 155 | lpm \dl, \src |
|---|
| 156 | lpm \dh, \src |
|---|
| 157 | .endm |
|---|
| 158 | |
|---|
| 159 | .macro rjne lbl |
|---|
| 160 | breq 99f |
|---|
| 161 | rjmp \lbl |
|---|
| 162 | 99: |
|---|
| 163 | .endm |
|---|
| 164 | |
|---|
| 165 | .macro FMULS16 d3,d2,d1,d0 ,s1h,s1l, s2h,s2l ;Fractional Multiply (19clk) |
|---|
| 166 | fmuls \s1h, \s2h |
|---|
| 167 | movw \d2, T0L |
|---|
| 168 | fmul \s1l, \s2l |
|---|
| 169 | movw \d0, T0L |
|---|
| 170 | adc \d2, EH ;EH: zero reg. |
|---|
| 171 | fmulsu \s1h, \s2l |
|---|
| 172 | sbc \d3, EH |
|---|
| 173 | add \d1, T0L |
|---|
| 174 | adc \d2, T0H |
|---|
| 175 | adc \d3, EH |
|---|
| 176 | fmulsu \s2h, \s1l |
|---|
| 177 | sbc \d3, EH |
|---|
| 178 | add \d1, T0L |
|---|
| 179 | adc \d2, T0H |
|---|
| 180 | adc \d3, EH |
|---|
| 181 | .endm |
|---|
| 182 | |
|---|
| 183 | .macro SQRT32 ; 32bit square root (526..542clk) |
|---|
| 184 | clr T6L |
|---|
| 185 | clr T6H |
|---|
| 186 | clr T8L |
|---|
| 187 | clr T8H |
|---|
| 188 | ldi BL, 1 |
|---|
| 189 | ldi BH, 0 |
|---|
| 190 | clr CL |
|---|
| 191 | clr CH |
|---|
| 192 | ldi DH, 16 |
|---|
| 193 | 90: lsl T2L |
|---|
| 194 | rol T2H |
|---|
| 195 | rol T4L |
|---|
| 196 | rol T4H |
|---|
| 197 | rol T6L |
|---|
| 198 | rol T6H |
|---|
| 199 | rol T8L |
|---|
| 200 | rol T8H |
|---|
| 201 | lsl T2L |
|---|
| 202 | rol T2H |
|---|
| 203 | rol T4L |
|---|
| 204 | rol T4H |
|---|
| 205 | rol T6L |
|---|
| 206 | rol T6H |
|---|
| 207 | rol T8L |
|---|
| 208 | rol T8H |
|---|
| 209 | brpl 91f |
|---|
| 210 | add T6L, BL |
|---|
| 211 | adc T6H, BH |
|---|
| 212 | adc T8L, CL |
|---|
| 213 | adc T8H, CH |
|---|
| 214 | rjmp 92f |
|---|
| 215 | 91: sub T6L, BL |
|---|
| 216 | sbc T6H, BH |
|---|
| 217 | sbc T8L, CL |
|---|
| 218 | sbc T8H, CH |
|---|
| 219 | 92: lsl BL |
|---|
| 220 | rol BH |
|---|
| 221 | rol CL |
|---|
| 222 | andi BL, 0b11111000 |
|---|
| 223 | ori BL, 0b00000101 |
|---|
| 224 | sbrc T8H, 7 |
|---|
| 225 | subi BL, 2 |
|---|
| 226 | dec DH |
|---|
| 227 | brne 90b |
|---|
| 228 | lsr CL |
|---|
| 229 | ror BH |
|---|
| 230 | ror BL |
|---|
| 231 | lsr CL |
|---|
| 232 | ror BH |
|---|
| 233 | ror BL |
|---|
| 234 | .endm |
|---|
| 235 | |
|---|
| 236 | ;----------------------------------------------------------------------------; |
|---|
| 237 | ; Constant Tables |
|---|
| 238 | |
|---|
| 239 | .global tbl_window |
|---|
| 240 | tbl_window: ; tbl_window[] = ... (This is a Hamming window) |
|---|
| 241 | .dc.w 2621, 2693, 2910, 3270, 3768, 4401, 5161, 6042, 7036, 8132, 9320, 10588, 11926, 13318, 14753, 16216 |
|---|
| 242 | .dc.w 17694, 19171, 20634, 22069, 23462, 24799, 26068, 27256, 28352, 29345, 30226, 30987, 31619, 32117, 32477, 32694 |
|---|
| 243 | .dc.w 32766, 32694, 32477, 32117, 31619, 30987, 30226, 29345, 28352, 27256, 26068, 24799, 23462, 22069, 20634, 19171 |
|---|
| 244 | .dc.w 17694, 16216, 14753, 13318, 11926, 10588, 9320, 8132, 7036, 6042, 5161, 4401, 3768, 3270, 2910, 2693 |
|---|
| 245 | tbl_cos_sin: ; Table of {cos(x),sin(x)}, (0 <= x < pi, in FFT_N/2 steps) |
|---|
| 246 | .dc.w 32767, 0, 32609, 3211, 32137, 6392, 31356, 9511, 30272, 12539, 28897, 15446, 27244, 18204, 25329, 20787 |
|---|
| 247 | .dc.w 23169, 23169, 20787, 25329, 18204, 27244, 15446, 28897, 12539, 30272, 9511, 31356, 6392, 32137, 3211, 32609 |
|---|
| 248 | .dc.w 0, 32766, -3211, 32609, -6392, 32137, -9511, 31356, -12539, 30272, -15446, 28897, -18204, 27244, -20787, 25329 |
|---|
| 249 | .dc.w -23169, 23169, -25329, 20787, -27244, 18204, -28897, 15446, -30272, 12539, -31356, 9511, -32137, 6392, -32609, 3211 |
|---|
| 250 | tbl_bitrev: ; tbl_bitrev[] = ... |
|---|
| 251 | .dc.w 0*4, 32*4, 16*4, 48*4, 8*4, 40*4, 24*4, 56*4, 4*4, 36*4, 20*4, 52*4, 12*4, 44*4, 28*4, 60*4 |
|---|
| 252 | .dc.w 2*4, 34*4, 18*4, 50*4, 10*4, 42*4, 26*4, 58*4, 6*4, 38*4, 22*4, 54*4, 14*4, 46*4, 30*4, 62*4 |
|---|
| 253 | |
|---|
| 254 | ;----------------------------------------------------------------------------; |
|---|
| 255 | .global fft_input |
|---|
| 256 | .func fft_input |
|---|
| 257 | fft_input: |
|---|
| 258 | pushw T2H,T2L |
|---|
| 259 | pushw AH,AL |
|---|
| 260 | pushw YH,YL |
|---|
| 261 | |
|---|
| 262 | movw XL, EL ;X = array_src; |
|---|
| 263 | movw YL, DL ;Y = array_bfly; |
|---|
| 264 | clr EH ;Zero |
|---|
| 265 | ldiw ZH,ZL, tbl_window ;Z = &tbl_window[0]; |
|---|
| 266 | ldiw AH,AL, FFT_N ;A = FFT_N; |
|---|
| 267 | 1: lpmw BH,BL, Z+ ;B = *Z++; (window) |
|---|
| 268 | ldw CH,CL, X+ ;C = *X++; (I-axis) |
|---|
| 269 | FMULS16 DH,DL,T2H,T2L, BH,BL, CH,CL ;D = B * C; |
|---|
| 270 | stw Y+, DH,DL ;*Y++ = D; |
|---|
| 271 | stw Y+, DH,DL ;*Y++ = D; |
|---|
| 272 | subiw AH,AL, 1 ;while(--A) |
|---|
| 273 | brne 1b ;/ |
|---|
| 274 | |
|---|
| 275 | popw YH,YL |
|---|
| 276 | popw AH,AL |
|---|
| 277 | popw T2H,T2L |
|---|
| 278 | clr r1 |
|---|
| 279 | ret |
|---|
| 280 | .endfunc |
|---|
| 281 | |
|---|
| 282 | ;----------------------------------------------------------------------------; |
|---|
| 283 | .global fft_execute |
|---|
| 284 | .func fft_execute |
|---|
| 285 | fft_execute: |
|---|
| 286 | pushw T2H,T2L |
|---|
| 287 | pushw T4H,T4L |
|---|
| 288 | pushw T6H,T6L |
|---|
| 289 | pushw T8H,T8L |
|---|
| 290 | pushw T10H,T10L |
|---|
| 291 | pushw T12H,T12L |
|---|
| 292 | pushw T14H,T14L |
|---|
| 293 | pushw AH,AL |
|---|
| 294 | pushw YH,YL |
|---|
| 295 | |
|---|
| 296 | movw ZL, EL ;Z = array_bfly; |
|---|
| 297 | ldiw EH,EL, 1 ;E = 1; |
|---|
| 298 | ldiw XH,XL, FFT_N/2 ;X = FFT_N/2; |
|---|
| 299 | 1: ldi AL, 4 ;T12 = E; (angular speed) |
|---|
| 300 | mul EL, AL ; |
|---|
| 301 | movw T12L, T0L ; |
|---|
| 302 | mul EH, AL ; |
|---|
| 303 | add T12H, T0L ;/ |
|---|
| 304 | movw T14L, EL ;T14 = E; |
|---|
| 305 | pushw EH,EL |
|---|
| 306 | movw YL, ZL ;Z = &array_bfly[0]; |
|---|
| 307 | mul XL, AL ;Y = &array_bfly[X]; |
|---|
| 308 | addw YH,YL, T0H,T0L ; |
|---|
| 309 | mul XH, AL ; |
|---|
| 310 | add YH, T0L ;/ |
|---|
| 311 | pushw ZH,ZL |
|---|
| 312 | 2: clrw T10H,T10L ;T10 = 0 (angle) |
|---|
| 313 | clr EH ;Zero reg. |
|---|
| 314 | 3: lddw AH,AL, Z+0 ;A = *Z - *Y; *Z++ += *Y; |
|---|
| 315 | asrw AH,AL ; |
|---|
| 316 | lddw DH,DL, Y+0 ; |
|---|
| 317 | asrw DH,DL ; |
|---|
| 318 | movw CL, AL ; |
|---|
| 319 | subw AH,AL, DH,DL ; |
|---|
| 320 | addw CH,CL, DH,DL ; |
|---|
| 321 | stw Z+, CH,CL ;/ |
|---|
| 322 | lddw BH,BL, Z+0 ;B = *Z - *Y; *Z++ += *Y; |
|---|
| 323 | asrw BH,BL ; |
|---|
| 324 | lddw DH,DL, Y+2 ; |
|---|
| 325 | asrw DH,DL ; |
|---|
| 326 | movw CL, BL ; |
|---|
| 327 | subw BH,BL, DH,DL ; |
|---|
| 328 | addw CH,CL, DH,DL ; |
|---|
| 329 | stw Z+, CH,CL ;/ |
|---|
| 330 | movw T0L, ZL |
|---|
| 331 | ldiw ZH,ZL, tbl_cos_sin ;C = cos(T10); D = sin(T10); |
|---|
| 332 | addw ZH,ZL, T10H,T10L ; |
|---|
| 333 | lpmw CH,CL, Z+ ; |
|---|
| 334 | lpmw DH,DL, Z+ ;/ |
|---|
| 335 | movw ZL, T0L |
|---|
| 336 | FMULS16 T4H,T4L,T2H,T2L, AH,AL, CH,CL ;*Y++ = A * C + B * D; |
|---|
| 337 | FMULS16 T8H,T8L,T6H,T6L, BH,BL, DH,DL ; |
|---|
| 338 | addd T4H,T4L,T2H,T2L, T8H,T8L,T6H,T6L; |
|---|
| 339 | stw Y+, T4H,T4L ;/ |
|---|
| 340 | FMULS16 T4H,T4L,T2H,T2L, BH,BL, CH,CL ;*Y++ = B * C - A * D; |
|---|
| 341 | FMULS16 T8H,T8L,T6H,T6L, AH,AL, DH,DL ; |
|---|
| 342 | subd T4H,T4L,T2H,T2L, T8H,T8L,T6H,T6L; |
|---|
| 343 | stw Y+, T4H,T4L ;/ |
|---|
| 344 | addw T10H,T10L, T12H,T12L ;T10 += T12; (next angle) |
|---|
| 345 | #if FFT_N >= 128 |
|---|
| 346 | sbrs T10H, FFT_B - 7 ;while(T10 < pi) |
|---|
| 347 | #else |
|---|
| 348 | sbrs T10L, FFT_B + 1 |
|---|
| 349 | #endif |
|---|
| 350 | rjmp 3b ;/ |
|---|
| 351 | ldi AL, 4 ;Y += X; Z += X; (skip split segment) |
|---|
| 352 | mul XL, AL |
|---|
| 353 | addw YH,YL, T0H,T0L ; |
|---|
| 354 | addw ZH,ZL, T0H,T0L ; |
|---|
| 355 | mul XH, AL ; |
|---|
| 356 | add YH, T0L ; |
|---|
| 357 | add ZH, T0L ;/ |
|---|
| 358 | ldi EL, 1 ;while(--T14) |
|---|
| 359 | subw T14H,T14L, EH,EL ; |
|---|
| 360 | rjne 2b ;/ |
|---|
| 361 | popw ZH,ZL |
|---|
| 362 | popw EH,EL |
|---|
| 363 | lslw EH,EL ;E *= 2; |
|---|
| 364 | lsrw XH,XL ;while(X /= 2) |
|---|
| 365 | adiw XL, 0 ; |
|---|
| 366 | rjne 1b ;/ |
|---|
| 367 | |
|---|
| 368 | popw YH,YL |
|---|
| 369 | popw AH,AL |
|---|
| 370 | popw T14H,T14L |
|---|
| 371 | popw T12H,T12L |
|---|
| 372 | popw T10H,T10L |
|---|
| 373 | popw T8H,T8L |
|---|
| 374 | popw T6H,T6L |
|---|
| 375 | popw T4H,T4L |
|---|
| 376 | popw T2H,T2L |
|---|
| 377 | ; clr r1 |
|---|
| 378 | ret |
|---|
| 379 | .endfunc |
|---|
| 380 | |
|---|
| 381 | ;----------------------------------------------------------------------------; |
|---|
| 382 | .global fft_output |
|---|
| 383 | .func fft_output |
|---|
| 384 | fft_output: |
|---|
| 385 | pushw T2H,T2L |
|---|
| 386 | pushw T4H,T4L |
|---|
| 387 | pushw T6H,T6L |
|---|
| 388 | pushw T8H,T8L |
|---|
| 389 | pushw T10H,T10L |
|---|
| 390 | pushw AH,AL |
|---|
| 391 | pushw YH,YL |
|---|
| 392 | |
|---|
| 393 | movw T10L, EL ;T10 = array_bfly; |
|---|
| 394 | movw YL, DL ;Y = array_output; |
|---|
| 395 | ldiw ZH,ZL, tbl_bitrev ;Z = tbl_bitrev; |
|---|
| 396 | clr EH ;Zero |
|---|
| 397 | ldiw AH,AL, FFT_N / 2 ;A = FFT_N / 2; (plus only) |
|---|
| 398 | 1: lpmw XH,XL, Z+ ;X = *Z++; |
|---|
| 399 | addw XH,XL, T10H,T10L ;X += array_bfly; |
|---|
| 400 | ldw BH,BL, X+ ;B = *X++; |
|---|
| 401 | ldw CH,CL, X+ ;C = *X++; |
|---|
| 402 | FMULS16 T4H,T4L,T2H,T2L, BH,BL, BH,BL ;T4:T2 = B * B; |
|---|
| 403 | FMULS16 T8H,T8L,T6H,T6L, CH,CL, CH,CL ;T8:T6 = C * C; |
|---|
| 404 | addd T4H,T4L,T2H,T2L, T8H,T8L,T6H,T6L;T4:T2 += T8:T6; |
|---|
| 405 | SQRT32 ;B = sqrt(T4:T2); |
|---|
| 406 | stw Y+, BH,BL ;*Y++ = B; |
|---|
| 407 | subiw AH,AL, 1 ;while(--A) |
|---|
| 408 | rjne 1b ;/ |
|---|
| 409 | |
|---|
| 410 | popw YH,YL |
|---|
| 411 | popw AH,AL |
|---|
| 412 | popw T10H,T10L |
|---|
| 413 | popw T8H,T8L |
|---|
| 414 | popw T6H,T6L |
|---|
| 415 | popw T4H,T4L |
|---|
| 416 | popw T2H,T2L |
|---|
| 417 | clr r1 |
|---|
| 418 | ret |
|---|
| 419 | .endfunc |
|---|
| 420 | |
|---|
| 421 | ;----------------------------------------------------------------------------; |
|---|
| 422 | .global fmuls_f |
|---|
| 423 | .func fmuls_f |
|---|
| 424 | fmuls_f: |
|---|
| 425 | movw CL, EL ;C = E; |
|---|
| 426 | clr EH ;Zero |
|---|
| 427 | FMULS16 ZH,ZL,XH,XL, CH,CL, DH,DL ;Z:X = C * D; |
|---|
| 428 | movw EL, ZL |
|---|
| 429 | clr r1 |
|---|
| 430 | ret |
|---|
| 431 | .endfunc |
|---|
| 432 | |
|---|
| 433 | #endif // __AVR__ |
|---|
| 434 | |
|---|
| 435 | #ifdef __SAMD21G18A__ |
|---|
| 436 | .cpu cortex-m0plus |
|---|
| 437 | .fpu softvfp |
|---|
| 438 | #endif |
|---|