ATY_LIB V2_102_230218
ATY_LIB for general devices or ALGO
 
Loading...
Searching...
No Matches
blink_stc8g1k08a.c File Reference
#include "fw_hal.h"

Go to the source code of this file.

Functions

void GPIO_Init (void)
 
int main (void)
 

Function Documentation

◆ GPIO_Init()

void GPIO_Init ( void  )

Definition at line 32 of file blink_stc8g1k08a.c.

33{
34 // P3.2, P3.3
36}
#define GPIO_P3_SetMode(__PINS__, __MODE__)
Definition: fw_gpio.h:89
@ GPIO_Pin_2
Definition: fw_gpio.h:47
@ GPIO_Pin_3
Definition: fw_gpio.h:48
@ GPIO_Mode_Output_PP
Definition: fw_gpio.h:24

◆ main()

int main ( void  )

Or set by byte P3 = P3 & 0xF3 | 0x08;

Or set by byte P3 = P3 & 0xF3 | 0x04;

Definition at line 38 of file blink_stc8g1k08a.c.

39{
40 GPIO_Init();
41
42 while(1)
43 {
44 /* Set by bit, P32 outputs high and P33 outputs low */
45 P32 = SET;
46 P33 = RESET;
51 SYS_Delay(500);
52
53 /* Set by bit, P32 outputs low and P33 outputs high */
54 P32 = RESET;
55 P33 = SET;
60 SYS_Delay(500);
61 }
62}
void SYS_Delay(uint16_t t)
Definition: fw_sys.c:65
@ RESET
Definition: fw_types.h:84
@ SET
Definition: fw_types.h:85