48 #include PLATFORM_HEADER
56 void halIrqAIsr(
void);
76 GPIO_INTCFGA = GPIO_INTCFGA_RESET;
77 GPIO_INTCFGA|=GPIO_INTFILT;
78 GPIO_INTCFGA|=(0x03 <<GPIO_INTMOD_BIT);
82 INT_CFGSET = INT_IRQA;
96 INT_GPIOFLAG = INT_IRQAFLAG;
98 if ((GPIO_PBIN & (1)) == 0){
114 return (GPIO_PBIN & (1));
119 configure(
int type,
int value)
122 case SENSORS_HW_INIT:
144 SENSORS_SENSOR(contact_sensor, CONTACT_SENSOR,
145 value, configure, status);
Contact magnetic sensor header file.
#define LEDS_RED
LED1 (Red) -> PC0.
#define PORTC_PIN(y)
Some registers and variables require indentifying GPIO by a single number instead of the port and pin...
#define LEDS_GREEN
LED3 (Green) -> PC2.
Generic set of HAL includes for all platforms.
Return codes for API functions and module definitions.
#define PORTB_PIN(y)
Some registers and variables require indentifying GPIO by a single number instead of the port and pin...
void halGpioConfig(uint32_t io, uint32_t config)
Configure an IO pin's operating mode.