Skip to content

Commit

Permalink
Nxp Gpio update to use a standard interface and enable interrupts (#1511
Browse files Browse the repository at this point in the history
)

* Nxp Gpio update to use a standard interface and enable interrupts

* Missing calls to Gpio initialize/uninitialize

* Configure and enable interrupt for pins

* make IRQHandlers have "C" linkage
NOTE: GPIO2_Compined_16_31_IRQHandler is used to SDCard detect - needs refactor

* InterruptFlags are for whole 32-bit port, we need only 16 bits

* Fix bug in getting pin

* Fix usage of xTimerChangePeriodFromISR function

* It's not allowed to create timers in ISR -> move to EnableInputPin

* Second EnableInput function call caused a change of the pin configuration to the wrong one (in the method SetDriveMode) - fixed
  • Loading branch information
AdrianSoundy authored Nov 27, 2019
1 parent 5c4d88c commit bf33916
Show file tree
Hide file tree
Showing 6 changed files with 772 additions and 235 deletions.
10 changes: 10 additions & 0 deletions targets/FreeRTOS/NXP/include/TargetPAL.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// Copyright (c) 2017 The nanoFramework project contributors
// See LICENSE file in the project root for full license information.
//

#ifndef _TARGETPAL_H_
#define _TARGETPAL_H_


#endif // _TARGETPAL_H_
Loading

0 comments on commit bf33916

Please sign in to comment.