aboutsummaryrefslogtreecommitdiffstats
path: root/src/lpc176x/gpio.c
Commit message (Collapse)AuthorAgeFilesLines
* lpc176x: Use FIOPIN to set start value on gpio_out_reset()Kevin O'Connor2019-09-291-4/+1
| | | | | | | | The FIOSET and FIOCLR registers may not set an initial value if the pin is not in an output mode. So, use FIOPIN to set the initial value. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Update code to use armcm_boot mechanismKevin O'Connor2019-08-221-1/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Use enumerations for pin mappingsKevin O'Connor2019-03-171-0/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pins: Add support for pull down resistorsKevin O'Connor2019-02-271-3/+3
| | | | | | | Add initial support for selecting pull down resistors (for micro-controllers that support it). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Pass gpio id to gpio_peripheral()Kevin O'Connor2019-01-041-9/+9
| | | | | | | Pass the gpio id instead of the bank/pin to gpio_peripheral(). This is in keeping with other ARM ports. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Move enable_peripheral_clock to main.cKevin O'Connor2019-01-041-14/+0
| | | | | | | Move and rename function to enable_pclock() - in keeping with other ARM ports. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Move ADC code to new adc.c fileKevin O'Connor2019-01-041-94/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Add an enable_peripheral_clock() helper functionKevin O'Connor2018-11-211-3/+16
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Add support for gpio_x_reset()Kevin O'Connor2018-08-271-15/+42
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Add ADC supportKevin O'Connor2018-05-251-0/+91
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Add support for GPIO pinsKevin O'Connor2018-05-251-1/+92
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Add initial support for LPC176x processorsKevin O'Connor2018-05-251-0/+28
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>