File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
source/hic_hal/nxp/lpc4322 Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -440,6 +440,11 @@ It is recommended to provide the following LEDs for status indication:
440
440
*/
441
441
__STATIC_INLINE void LED_CONNECTED_OUT (uint32_t bit )
442
442
{
443
+ if (bit ) {
444
+ X_SET (LED_CONNECTED );
445
+ } else {
446
+ X_CLR (LED_CONNECTED );
447
+ }
443
448
}
444
449
445
450
/** Debug Unit: Set status Target Running LED.
Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_LPC4322);
67
67
#define PIN_ISPCTRL_IN_BIT 11
68
68
#define PIN_ISPCTRL (1<<PIN_ISPCTRL_IN_BIT)
69
69
70
+ // Connected LED P1_1: GPIO0[8]
71
+ #define PORT_LED_CONNECTED 0
72
+ #define PIN_LED_CONNECTED_IN_BIT 8
73
+ #define PIN_LED_CONNECTED (1<<PIN_LED_CONNECTED_IN_BIT)
74
+
70
75
// Power Enable P3_1: GPIO5[8]
71
76
#define PORT_POWER_EN 5
72
77
#define PIN_POWER_EN_BIT 8
Original file line number Diff line number Diff line change 29
29
30
30
bool gpio_reset_pin_is_input = true;
31
31
32
- // Connected LED P1_1: GPIO0[8]
33
- #define LED_CONNECTED_PORT 0
34
- #define LED_CONNECTED_BIT 8
35
32
36
33
// LPC43xx peripheral register bit masks (used by macros)
37
34
#define CCU_CLK_CFG_RUN (1UL << 0)
You can’t perform that action at this time.
0 commit comments