Skip to content

Commit

Permalink
V1.3.0
Browse files Browse the repository at this point in the history
The Status LED(PA_07) of  WIZ750SR_1xx is modified.
Turning on an LED and making it blink once per second.
  • Loading branch information
irina committed Nov 18, 2019
1 parent 25ecd9e commit 55a33bf
Show file tree
Hide file tree
Showing 11 changed files with 2,186 additions and 2,168 deletions.
26 changes: 13 additions & 13 deletions Projects/S2E_App/W7500x_S2E.uvgui.irina

Large diffs are not rendered by default.

Binary file modified Projects/S2E_App/bin/W7500x_S2E_App.bin
Binary file not shown.
2,120 changes: 1,060 additions & 1,060 deletions Projects/S2E_App/bin/W7500x_S2E_App.hex

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Projects/S2E_App/src/PlatformHandler/timerHandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ void Timer_IRQ_Handler(void)
DNS_time_handler(); // Time counter for DNS timeout

devtime_sec++; // device time counter, Can be updated this counter value by time protocol like NTP.
LED_Toggle(LED3) ;
}

/* Minute Process */
Expand Down
21 changes: 15 additions & 6 deletions Projects/S2E_App/src/W7500x_board.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,17 @@ extern void delay(__IO uint32_t nCount);

static void PHY_Init(void);
//static void delay_ms(uint32_t ms);

GPIO_TypeDef* LED_PORT[LEDn] = {LED1_GPIO_PORT, LED2_GPIO_PORT};
const uint16_t LED_PIN[LEDn] = {LED1_PIN, LED2_PIN};
PAD_Type LED_PAD[LEDn] = {LED1_GPIO_PAD, LED2_GPIO_PAD};
PAD_AF_TypeDef LED_PAD_AF[LEDn] = {LED1_GPIO_PAD_AF, LED2_GPIO_PAD_AF};

#if (LEDn == 2)
GPIO_TypeDef* LED_PORT[LEDn] = {LED1_GPIO_PORT, LED2_GPIO_PORT};
const uint16_t LED_PIN[LEDn] = {LED1_PIN, LED2_PIN};
PAD_Type LED_PAD[LEDn] = {LED1_GPIO_PAD, LED2_GPIO_PAD};
PAD_AF_TypeDef LED_PAD_AF[LEDn] = {LED1_GPIO_PAD_AF, LED2_GPIO_PAD_AF};
#else
GPIO_TypeDef* LED_PORT[LEDn] = {LED1_GPIO_PORT, LED2_GPIO_PORT, LED3_GPIO_PORT};
const uint16_t LED_PIN[LEDn] = {LED1_PIN, LED2_PIN, LED3_PIN};
PAD_Type LED_PAD[LEDn] = {LED1_GPIO_PAD, LED2_GPIO_PAD, LED3_GPIO_PAD};
PAD_AF_TypeDef LED_PAD_AF[LEDn] = {LED1_GPIO_PAD_AF, LED2_GPIO_PAD_AF, LED3_GPIO_PAD_AF};
#endif
volatile uint16_t phylink_check_time_msec = 0;
uint8_t flag_check_phylink = 0;
uint8_t flag_hw_trig_enable = 0;
Expand Down Expand Up @@ -52,8 +57,12 @@ void W7500x_Board_Init(void)
#endif
// STATUS #1 : PHY link status (LED1)
// STATUS #2 : TCP connection status (LED2)
// STATUS #3 : Blink
LED_Init(LED1);
LED_Init(LED2);
#if (DEVICE_BOARD_NAME == WIZ750SR_1xx)
LED_Init(LED3);
#endif
}

void Supervisory_IC_Init(void)
Expand Down
12 changes: 10 additions & 2 deletions Projects/S2E_App/src/W7500x_board.h
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@
#define LED2_GPIO_PORT GPIOA
#define LED2_GPIO_PAD PAD_PA
#define LED2_GPIO_PAD_AF PAD_AF1


#else // WIZwiki-W7500 board

Expand Down Expand Up @@ -380,7 +381,7 @@
} Led_TypeDef;
*/
#endif

#if ((DEVICE_BOARD_NAME == WIZ750SR) || (DEVICE_BOARD_NAME == W7500P_S2E) ||(DEVICE_BOARD_NAME == WIZ750SR_1xx))
// LED
#define LEDn 3
typedef enum
Expand All @@ -389,7 +390,14 @@
LED2 = 1, // blink
LED3 = 2 // TCP connection status
} Led_TypeDef;

#else
#define LEDn 2
typedef enum
{
LED1 = 0, // PHY link status
LED2 = 1 // blink
} Led_TypeDef;
#endif
extern volatile uint16_t phylink_check_time_msec;
extern uint8_t flag_check_phylink;
extern uint8_t flag_hw_trig_enable;
Expand Down
46 changes: 23 additions & 23 deletions Projects/S2E_Boot/W7500x_S2E.uvgui.irina

Large diffs are not rendered by default.

Binary file modified Projects/S2E_Boot/bin/W7500x_S2E_Boot.bin
Binary file not shown.
4 changes: 2 additions & 2 deletions Projects/S2E_Boot/bin/W7500x_S2E_Boot.hex
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,7 @@
:105F1000361A121A680AF5054019012A02DB70BD0B
:105F2000002070BDC036300AC00770BD1B0E440291
:105F300001D1FF2B00D1024870BD002AF0D070BD06
:105F40000000C07F040008000000303132333435D7
:105F40000000C07F040008000001303132333435D6
:105F500036373839414243444546403058003031A5
:105F600032333435363738396162636465664030C0
:105F7000780004000008000000000000000200019A
Expand Down Expand Up @@ -1596,7 +1596,7 @@
:1063A0005F33CC6033BC6033D46033B460334C6053
:1063B00033B86033806033DC5F33C45F33086033ED
:1063C000306033D05F33E45F0317886033E46003E9
:1063D00014D86066010100010142439243000000AD
:1063D00014D8605701010201010142434243524473
:020000040001F9
:10FD000010B5E2F717FE10BD0000000010B5E2F7D5
:10FD100013FE10BD10B5E2F710FE10BD10B5E2F7EE
Expand Down
Binary file modified Projects/W7500x_S2E_Production.bin
Binary file not shown.
Loading

0 comments on commit 55a33bf

Please sign in to comment.