30 #define SEG_A_ON PA2=0 31 #define SEG_B_ON PA3=0 32 #define SEG_C_ON PA4=0 33 #define SEG_D_ON PA5=0 34 #define SEG_E_ON PA6=0 35 #define SEG_F_ON PA7=0 36 #define SEG_G_ON PD6=0 37 #define SEG_H_ON PD7=0 38 #define SEG_CONTROL1_ON PD14=1 39 #define SEG_CONTROL2_ON PD15=1 41 #define SEG_A_OFF PA2=1 42 #define SEG_B_OFF PA3=1 43 #define SEG_C_OFF PA4=1 44 #define SEG_D_OFF PA5=1 45 #define SEG_E_OFF PA6=1 46 #define SEG_F_OFF PA7=1 47 #define SEG_G_OFF PD6=1 48 #define SEG_H_OFF PD7=1 49 #define SEG_CONTROL1_OFF PD14=0 50 #define SEG_CONTROL2_OFF PD15=0 56 void Initial_SEG_GPIO(void)
#define BIT5
Bit 5 mask of an 32 bit integer.
#define PD
Pointer to GPIO port D register structure.
void Show_Seven_Segment(unsigned char no, unsigned char number)
This function turn on 7_Segment LED to show numbers.
#define BIT7
Bit 7 mask of an 32 bit integer.
#define BIT6
Bit 6 mask of an 32 bit integer.
#define BIT4
Bit 4 mask of an 32 bit integer.
Nano100 series peripheral access layer header file. This file contains all the peripheral register's ...
NuEdu-Basic01 7_Segment LED driver header file for NuEdu-SDK-Nano130.
#define BIT2
Bit 2 mask of an 32 bit integer.
#define PA
Pointer to GPIO port A register structure.
void Close_Seven_Segment(void)
This function turn off 7_Segment LED.
#define BIT3
Bit 3 mask of an 32 bit integer.
void Initial_SEG_GPIO(void)
Set 7_Segment LED GPIO to output mode.
#define BIT15
Bit 15 mask of an 32 bit integer.
void Open_Seven_Segment(void)
This function turn on 7_Segment LED.
#define BIT14
Bit 14 mask of an 32 bit integer.
void GPIO_SetMode(GPIO_T *gpio, uint32_t u32PinMask, uint32_t u32Mode)
Set GPIO operation mode.