mirror of
https://github.com/Utyff/Zintercom.git
synced 2026-01-12 09:17:41 +03:00
some work on ring and btn events
This commit is contained in:
@@ -61,26 +61,26 @@
|
||||
#define HAL_LED_BLINK_DELAY() st( { volatile uint32 i; for (i=0; i<0x5800; i++) { }; } )
|
||||
|
||||
#if defined(HAL_BOARD_TARGET)
|
||||
//blue
|
||||
//led
|
||||
#define LED1_BV BV(4)
|
||||
#define LED1_SBIT P1_4
|
||||
#define LED1_DDR P1DIR
|
||||
#define LED1_POLARITY ACTIVE_LOW
|
||||
//green
|
||||
#define LED1_SBIT P0_4
|
||||
#define LED1_DDR P0DIR
|
||||
#define LED1_POLARITY ACTIVE_HIGH
|
||||
//catch
|
||||
#define LED2_BV BV(1)
|
||||
#define LED2_SBIT P1_1
|
||||
#define LED2_DDR P1DIR
|
||||
#define LED2_POLARITY ACTIVE_LOW
|
||||
//red
|
||||
#define LED3_BV BV(0)
|
||||
#define LED3_SBIT P1_0
|
||||
#define LED3_DDR P1DIR
|
||||
#define LED3_POLARITY ACTIVE_LOW
|
||||
//ex
|
||||
#define LED4_BV BV(4)
|
||||
#define LED4_SBIT P1_5
|
||||
#define LED4_DDR P1DIR
|
||||
#define LED4_POLARITY ACTIVE_LOW
|
||||
#define LED2_SBIT P0_1
|
||||
#define LED2_DDR P0DIR
|
||||
#define LED2_POLARITY ACTIVE_HIGH
|
||||
//answer
|
||||
#define LED3_BV BV(2)
|
||||
#define LED3_SBIT P0_2
|
||||
#define LED3_DDR P0DIR
|
||||
#define LED3_POLARITY ACTIVE_HIGH
|
||||
//open
|
||||
#define LED4_BV BV(3)
|
||||
#define LED4_SBIT P0_3
|
||||
#define LED4_DDR P0DIR
|
||||
#define LED4_POLARITY ACTIVE_HIGH
|
||||
|
||||
|
||||
#elif defined(HAL_BOARD_CHDTECH_DEV)
|
||||
|
||||
Reference in New Issue
Block a user