31 #define LED1_ON PB0=0 //control LED1 on 32 #define LED2_ON PB1=0 //control LED2 on 33 #define LED3_ON PE9=0 //control LED3 on 34 #define LED4_ON PE10=0 //control LED4 on 35 #define LED5_ON PE11=0 //control LED5 on 36 #define LED6_ON PD8=0 //control LED6 on 37 #define LED7_ON PD9=0 //control LED7 on 38 #define LED8_ON PC7=0 //control LED8 on 40 #define LED1_OFF PB0=1 //control LED1 off 41 #define LED2_OFF PB1=1 //control LED2 off 42 #define LED3_OFF PE9=1 //control LED3 off 43 #define LED4_OFF PE10=1 //control LED4 off 44 #define LED5_OFF PE11=1 //control LED5 off 45 #define LED6_OFF PD8=1 //control LED6 off 46 #define LED7_OFF PD9=1 //control LED7 off 47 #define LED8_OFF PC7=1 //control LED8 off #define PD
Pointer to GPIO port D register structure.
#define BIT7
Bit 7 mask of an 32 bit integer.
Nano100 series peripheral access layer header file. This file contains all the peripheral register's ...
#define BIT0
Bit 0 mask of an 32 bit integer.
#define BIT11
Bit 11 mask of an 32 bit integer.
Nano100 series Basic01 board LED driver header file.
void initial_close(void)
Set LED GPIO to input mode.
void initial_led(void)
Set LED GPIO to output mode.
#define BIT8
Bit 8 mask of an 32 bit integer.
#define BIT1
Bit 1 mask of an 32 bit integer.
void LED_on(unsigned int temp)
This function turn on LED numbers to open or close.
#define PC
Pointer to GPIO port C register structure.
#define BIT9
Bit 9 mask of an 32 bit integer.
#define PE
Pointer to GPIO port E register structure.
#define PB
Pointer to GPIO port B register structure.
void GPIO_SetMode(GPIO_T *gpio, uint32_t u32PinMask, uint32_t u32Mode)
Set GPIO operation mode.
#define BIT10
Bit 10 mask of an 32 bit integer.