Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 90331b6

Browse files
committedApr 4, 2017
Updated other platform files
1 parent df74bf1 commit 90331b6

28 files changed

+96
-2282
lines changed
 

‎AslFastPin/src/utility/arm/common/m0clockless.h‎

Lines changed: 0 additions & 318 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/d21/fastpin_sysdefs_arm_d21.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#define __INC_FASTPIN_SYSDEFS_ARM_D21_H
33

44

5-
#define FASTLED_ARM
6-
#define FASTLED_ARM_M0_PLUS
5+
#define FASTPIN_ARM
6+
#define FASTPIN_ARM_M0_PLUS
77

88

99
#endif // __INC_FASTPIN_SYSDEFS_ARM_D21_H

‎AslFastPin/src/utility/arm/k20/clockless_arm_k20.h‎

Lines changed: 0 additions & 124 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/k20/clockless_block_arm_k20.h‎

Lines changed: 0 additions & 330 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/k20/fastled_arm_k20.h‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/k20/fastpin_arm_k20.h‎ renamed to ‎AslFastPin/src/utility/arm/k20/fastpin_platform_arm_k20.h‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#ifndef __FASTPIN_ARM_K20_H
2-
#define __FASTPIN_ARM_K20_H
1+
#ifndef __INC_FASTPIN_PLATFORM_ARM_K20_H
2+
#define __INC_FASTPIN_PLATFORM_ARM_K20_H
33

4-
FASTLED_NAMESPACE_BEGIN
4+
FASTPIN_NAMESPACE_BEGIN
55

6-
#if defined(FASTLED_FORCE_SOFTWARE_PINS)
6+
#if defined(FASTPIN_FORCE_SOFTWARE_PINS)
77
#warning "Software pin support forced, pin access will be sloightly slower."
88
#define NO_HARDWARE_PIN_SUPPORT
99
#undef HAS_HARDWARE_PIN_SUPPORT
@@ -86,7 +86,7 @@ template<uint8_t PIN, int _BIT, typename _PDOR, typename _PSOR, typename _PCOR,
8686
_R(GPIO ## L ## _PTOR), _R(GPIO ## L ## _PDIR), _R(GPIO ## L ## _PDDR)> {};
8787

8888
// Actual pin definitions
89-
#if defined(FASTLED_TEENSY3) && defined(CORE_TEENSY)
89+
#if defined(FASTPIN_TEENSY3) && defined(CORE_TEENSY)
9090

9191
_IO32(A); _IO32(B); _IO32(C); _IO32(D); _IO32(E);
9292

@@ -108,13 +108,13 @@ _DEFPIN_ARM(32, 18, B); _DEFPIN_ARM(33, 4, A);
108108
#define SPI2_DATA 7
109109
#define SPI2_CLOCK 14
110110

111-
#define FASTLED_TEENSY3
111+
#define FASTPIN_TEENSY3
112112
#define ARM_HARDWARE_SPI
113113
#define HAS_HARDWARE_PIN_SUPPORT
114114
#endif
115115

116-
#endif // FASTLED_FORCE_SOFTWARE_PINS
116+
#endif // FASTPIN_FORCE_SOFTWARE_PINS
117117

118-
FASTLED_NAMESPACE_END
118+
FASTPIN_NAMESPACE_END
119119

120-
#endif // __INC_FASTPIN_ARM_K20
120+
#endif // __INC_FASTPIN_PLATFORM_ARM_K20_H
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#ifndef __INC_FASTPIN_SYSDEFS_ARM_K20_H
2+
#define __INC_FASTPIN_SYSDEFS_ARM_K20_H
3+
4+
#define FASTPIN_TEENSY3
5+
#define FASTPIN_ARM
6+
7+
#if (F_CPU == 96000000)
8+
#define CLK_DBL 1
9+
#endif
10+
11+
// Get some system include files
12+
#include <avr/io.h>
13+
#include <avr/interrupt.h> // for cli/se definitions
14+
15+
16+
#endif // __INC_FASTPIN_SYSDEFS_ARM_K20_H

‎AslFastPin/src/utility/arm/k20/fastspi_arm_k20.h‎

Lines changed: 0 additions & 456 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/k20/led_sysdefs_arm_k20.h‎

Lines changed: 0 additions & 46 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/k20/octows2811_controller.h‎

Lines changed: 0 additions & 66 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/k20/smartmatrix_t3.h‎

Lines changed: 0 additions & 55 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/kl26/clockless_arm_kl26.h‎

Lines changed: 0 additions & 62 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/kl26/fastled_arm_kl26.h‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/kl26/fastpin_arm_kl26.h‎ renamed to ‎AslFastPin/src/utility/arm/kl26/fastpin_platform_arm_kl26.h‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#ifndef __FASTPIN_ARM_KL26_H
2-
#define __FASTPIN_ARM_KL26_H
1+
#ifndef __INC_FASTPIN_ARM_KL26_H
2+
#define __INC_FASTPIN_ARM_KL26_H
33

4-
FASTLED_NAMESPACE_BEGIN
4+
FASTPIN_NAMESPACE_BEGIN
55

6-
#if defined(FASTLED_FORCE_SOFTWARE_PINS)
6+
#if defined(FASTPIN_FORCE_SOFTWARE_PINS)
77
#warning "Software pin support forced, pin access will be sloightly slower."
88
#define NO_HARDWARE_PIN_SUPPORT
99
#undef HAS_HARDWARE_PIN_SUPPORT
@@ -58,7 +58,7 @@ _R(GPIO ## L ## _PTOR), _R(FGPIO ## L ## _PDIR), _R(FGPIO ## L ## _PDDR)> {}; \
5858
_R(GPIO ## L ## _PTOR), _R(GPIO ## L ## _PDIR), _R(GPIO ## L ## _PDDR)> {}; */
5959

6060
// Actual pin definitions
61-
#if defined(FASTLED_TEENSYLC) && defined(CORE_TEENSY)
61+
#if defined(FASTPIN_TEENSYLC) && defined(CORE_TEENSY)
6262

6363
_IO32(A); _IO32(B); _IO32(C); _IO32(D); _IO32(E);
6464

@@ -81,8 +81,8 @@ _DEFPIN_ARM(24, 20, E); _DEFPIN_ARM(25, 21, E); _DEFPIN_ARM(26, 30, E);
8181
#define HAS_HARDWARE_PIN_SUPPORT
8282
#endif
8383

84-
#endif // FASTLED_FORCE_SOFTWARE_PINS
84+
#endif // FASTPIN_FORCE_SOFTWARE_PINS
8585

86-
FASTLED_NAMESPACE_END
86+
FASTPIN_NAMESPACE_END
8787

88-
#endif // __INC_FASTPIN_ARM_K20
88+
#endif // __INC_FASTPIN_ARM_KL26_H
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#ifndef __INC_FASTPIN_SYSDEFS_ARM_KL26_H
2+
#define __INC_FASTPIN_SYSDEFS_ARM_KL26_H
3+
4+
#define FASTPIN_TEENSYLC
5+
#define FASTPIN_ARM
6+
#define FASTPIN_ARM_M0_PLUS
7+
8+
#if (F_CPU == 96000000)
9+
#define CLK_DBL 1
10+
#endif
11+
12+
// Get some system include files
13+
#include <avr/io.h>
14+
#include <avr/interrupt.h> // for cli/se definitions
15+
16+
#endif // __INC_FASTPIN_SYSDEFS_ARM_KL26_H

‎AslFastPin/src/utility/arm/kl26/fastspi_arm_kl26.h‎

Lines changed: 0 additions & 252 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/kl26/led_sysdefs_arm_kl26.h‎

Lines changed: 0 additions & 47 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/nrf51/clockless_arm_nrf51.h‎

Lines changed: 0 additions & 83 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/nrf51/fastled_arm_nrf51.h‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/nrf51/fastpin_arm_nrf51.h‎ renamed to ‎AslFastPin/src/utility/arm/nrf51/fastpin_platform_arm_nrf51.h‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
#ifndef __FASTPIN_ARM_NRF51_H
2-
#define __FASTPIN_ARM_NRF51_H
1+
#ifndef __INC_FASTPIN_PLATFORM_ARM_NRF51_H
2+
#define __INC_FASTPIN_PLATFORM_ARM_NRF51_H
3+
4+
FASTPIN_NAMESPACE_BEGIN
35

46
#if defined(NRF51)
57
/// Template definition for teensy 3.0 style ARM pins, providing direct access to the various GPIO registers. Note that this
@@ -116,4 +118,6 @@ _DEFPIN_ARM(28); _DEFPIN_ARM(29); _DEFPIN_ARM(30); _DEFPIN_ARM(31);
116118

117119
#endif
118120

119-
#endif
121+
FASTPIN_NAMESPACE_END
122+
123+
#endif // __INC_FASTPIN_PLATFORM_ARM_NRF51_H
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#ifndef __INC_FASTPIN_SYSDEFS_ARM_NRF51
2+
#define __INC_FASTPIN_SYSDEFS_ARM_NRF51
3+
4+
#ifndef NRF51
5+
#define NRF51
6+
#endif
7+
8+
#define FASTPIN_ARM
9+
#define FASTPIN_ARM_M0
10+
11+
#ifndef F_CPU
12+
#define F_CPU 16000000
13+
#endif
14+
15+
#include <stdint.h>
16+
#include "nrf51.h"
17+
#include "core_cm0.h"
18+
19+
#endif // __INC_FASTPIN_SYSDEFS_ARM_NRF51

‎AslFastPin/src/utility/arm/nrf51/fastspi_arm_nrf51.h‎

Lines changed: 0 additions & 150 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/nrf51/led_sysdefs_arm_nrf51.h‎

Lines changed: 0 additions & 46 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/stm32/clockless_arm_stm32.h‎

Lines changed: 0 additions & 126 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/stm32/fastled_arm_stm32.h‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎AslFastPin/src/utility/arm/stm32/fastpin_arm_stm32.h‎ renamed to ‎AslFastPin/src/utility/arm/stm32/fastpin_platform_arm_stm32.h‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#ifndef __FASTPIN_ARM_STM32_H
2-
#define __FASTPIN_ARM_STM32_H
1+
#ifndef __INC_FASTPIN_PLATFORM_ARM_STM32_H
2+
#define __INC_FASTPIN_PLATFORM_ARM_STM32_H
33

4-
FASTLED_NAMESPACE_BEGIN
4+
FASTPIN_NAMESPACE_BEGIN
55

6-
#if defined(FASTLED_FORCE_SOFTWARE_PINS)
6+
#if defined(FASTPIN_FORCE_SOFTWARE_PINS)
77
#warning "Software pin support forced, pin access will be sloightly slower."
88
#define NO_HARDWARE_PIN_SUPPORT
99
#undef HAS_HARDWARE_PIN_SUPPORT
@@ -98,8 +98,8 @@ _DEFPIN_ARM(19, 2, A);
9898

9999
#endif
100100

101-
#endif // FASTLED_FORCE_SOFTWARE_PINS
101+
#endif // FASTPIN_FORCE_SOFTWARE_PINS
102102

103-
FASTLED_NAMESPACE_END
103+
FASTPIN_NAMESPACE_END
104104

105-
#endif // __INC_FASTPIN_ARM_STM32
105+
#endif // __INC_FASTPIN_PLATFORM_ARM_STM32_H
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#ifndef __INC_FASTPIN_SYSDEFS_ARM_SAM_H
2+
#define __INC_FASTPIN_SYSDEFS_ARM_SAM_H
3+
4+
#include "application.h"
5+
6+
#define FASTPIN_ARM
7+
8+
#define FASTPIN_NO_PINMAP
9+
10+
#define F_CPU 72000000
11+
12+
#endif // __INC_FASTPIN_SYSDEFS_ARM_SAM_H

‎AslFastPin/src/utility/arm/stm32/led_sysdefs_arm_stm32.h‎

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.